发送邮件
1 void sendMail(){
2 SysMailer mailer = new SysMailer();
3 ;
4 mailer.body("This is the body of the mail");
5 mailer.subject("The message subject");
6 mailer.fromAddress("Axapta_header@navision.com");
7 mailer.fromName("Sell Axapta contract");
8 mailer.tos().add("Dave@Microsoft.com");
9 mailer.tos().add("Bill@Microsoft.com");
10 mailer.attachments().add("c:\\YouOrder.xls");
11 mailer.sendMail();
12 }
页:
[1]