{
SysMailer mailer = new
SysMailer();
mailer.body("This is the body of the
mail");
mailer.subject("The message
subject");
mailer.fromAddress("Axapta_header@navision.com");
mailer.fromName("Sell Axapta
contract");
mailer.tos().add("Dave@Microsoft.com");
mailer.tos().add("Bill@Microsoft.com");
mailer.attachments().add("c:\\YouOrder.xls");
mailer.sendMail();
pause;
}
No comments:
Post a Comment