Skip to content

Instantly share code, notes, and snippets.

@TheOpenDevProject
Created December 17, 2015 12:42
Show Gist options
  • Save TheOpenDevProject/ebc4ba04ca82475e0e88 to your computer and use it in GitHub Desktop.
Save TheOpenDevProject/ebc4ba04ca82475e0e88 to your computer and use it in GitHub Desktop.
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