Example #1
0
 public static SMTP getInstance()
 {
     if (Instance == null)
     {
         Instance = new SMTP();
     }
     return(Instance);
 }
Example #2
0
 /// <summary>
 /// Sends an email
 /// </summary>
 /// <param name="Destination">The destination email</param>
 /// <param name="Subject">The subject of the message</param>
 /// <param name="Body">The body of the message</param>
 public void SendEmail(string Destination, string Subject, string Body)
 {
     SMTP.getInstance().SendMessage(m_Provider.getSMTP, m_Provider.getPort, m_Email, m_Password, Destination, Subject, Body);
     MessageBox.Show("Your Email has successfully been sent", "Email Sent");
 }