SysEmailBatch 邮件

SysEmailBatch

The SysEmailBatch class is used for sending emails from Axapta.

SysEmailBatch mailer;   mailer = SysEMailBatch::construct();
mailer.parmPriority(emailPriority::Normal);
mailer.parmSenderAddr("Sender@mail.com");
mailer.parmSendername("Your name");
mailer.parmEmailAddr("receiver@mail.com");
mailer.parmEmailName("Receiver name");
mailer.parmSubject(subject);
mailer.parmMessageBody(msgBody);   mailer.run();

[edit]Security

The Administration Daily security key (AdminDaily) must be set to at least Read Only. There is no need to give access to the sub-keys.

posted @ 2012-02-15 12:56  perock  阅读(258)  评论(0编辑  收藏  举报