code to send email directly

Sysmailer mailer;


;
mailer = new sysmailer();

mailer.fromAddress("abc@yahoo.com","abc");

mailer.tos().appendAddress("acx@rediffmail.com","acx");

mailer.subject("Hi");

mailer.htmlBody("Hi");

//mailer.SMTPRelayServer("smtp.gmail.com");

//mailer.attachments().add(@"D:\sd\dfdt.txt");

mailer.sendMail();
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.