Created
December 17, 2015 12:42
-
-
Save TheOpenDevProject/ebc4ba04ca82475e0e88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace My.Application{ | |
public class MySMTPDetails{ | |
public string server {get;set} | |
public int port {get;set} | |
} | |
public class EmailModel{ | |
public string sender {get;set} | |
public string message {get;set} | |
} | |
public class NotifiyMe{ | |
private EmailModel _email {get;set} | |
private MySMTPDetails _server {get;set} | |
public NotifiyMe(EmailModel m_Email,MySMTPDetails smtpDetails){ | |
this._email = m_Email; | |
this._server = smtpDetails | |
} | |
public void Notify(){ | |
//DO Emailing here | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment