I copied the send email example code from SysMailer help file and
put it in a job. It goes like this:
SysMailer mailer = new SysMailer();
mailer.body("This is the body of the mail");
mailer.subject("Eureka! Axapta generated and email");
mailer.fromAddress("[EMAIL PROTECTED]");
mailer.fromName("Joe Smith");
mailer.tos().add("[EMAIL PROTECTED]");
//mailer.attachments().add("c:\\gylle.log");
mailer.sendMail();
print 'done';
pause;
The job executes fine but it is extremly slow. At least 15-20
seconds for an email with a single receipient (mailer.sendMail() is
where it chugs). Does anyone have a clue why that could be and if
so how to fix it?
SPONSORED LINKS
Computer part | Programming languages | Microsoft axapta |
Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.