Email -ASAP

How to use sysmailer Class for sending a mail from AX2012?please suggest some example for that.

Hi Kalpna,

See this it will helpful to you.

http://technet.microsoft.com/en-us/library/aa834347.aspx

thanx for reply…I have checked that,I need to know how it can be done through classes

Hi Kalpna,

See quickSend method in SysMailer class and best way to understand , debug the class ,

See this also is can be helpful to you.

http://msdn.microsoft.com/en-us/library/sysmailer.quicksend.aspx

Hi Kalpna,

Try this also ,

Static Void TestSendEmail(Args _args)

{

SysMailer mail;

;

mail = new SysMailer();

mail.smtpRelayServer(“mail.contoso.com.au”,25);

mail.fromAddress(“Workflowadmin@contoso.com”);

mail.tos().appenedAddress(“test@ax2012.com.au”);

mail.htmlBody(strfmt(“Hello Ax 2012 world”));

mail.subject(strfmt(“Ax2012”));

mail.sendMail();

info(“Send successfully”);

}