Beispiel #1
0
 public static bool Send(string mail, string subject, string body)
 {
     ReceiverObject receiver = new ReceiverObject();
     receiver.MailAddress = mail;
     receiver.Subject = subject;
     receiver.Body = body;
     return Send(new MailObject() { Receiver = receiver });
 }
Beispiel #2
0
 public static bool Send(ReceiverObject receiver)
 {
     return Send(new MailObject() { Receiver = receiver });
 }
Beispiel #3
0
 private void InitMailAccess(string mailAddress, string mailPassword, string hostName, int portNumber, bool enableSsl, bool useDefaultCredentials, bool isBodyHtml)
 {
     this.mailAddress = mailAddress;
     this.mailPassword = mailPassword;
     this.hostName = hostName;
     this.portNumber = portNumber;
     this.enableSsl = enableSsl;
     this.useDefaultCredentials = useDefaultCredentials;
     this.isBodyHtml = isBodyHtml;
     this.receiver = new ReceiverObject();
 }