Email send from AX2009

Hello friends,

When Item is received then automatically send email to another person from AX 2009.

How it is possible. Please guide me …

Thanks

Darshana

Hi Darshana,

this is the code for sending a mail …

static void c_SendQuickMail(Args _args)

{

//str ToAddress = “chaitanya.k@dhanushinfotech.net”;

str FromAddress = “chaitanya.k@dhanushinfotech.net”;

str Subject = “New2”;

str Body = “Hi”;

str FileToAttach = “D:\fn.pdf”;

SysMailer mailer = new SysMailer();

;

mailer.ccs().appendAddress(“chaitanya.k@dhanushinfotech.net;ramakrishna.k@dhanushinfotech.com”);

mailer.quickSend(fromaddress,"chaitanya.k@dhanushinfotech.net",subject,body,“”,FileToAttach);

}

write this code in purchformletter_packingslip → updatenow() method …

Hi Darshana,

This has already been discussed several times on this forum, please go through this url:

http://dynamicsuser.net/forums/t/61263.aspx