vendredi 6 avril 2012

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();
}

Aucun commentaire:

Enregistrer un commentaire