Hi.. Please check *Santosh Ramamurthy`s* blog . Hit this link... http://sangi1983.spaces.live.com/blog/cns!264A0056CBCBB1D3!203.entry He has given a simple example about quick email. Check if this works with Ax3.0.
Also, try the following job . I tried with MAPI class in Ax 2009. I m not sure if it would work in 3.0. Please check. static void MapiExample(Args _args) { #Mapi Mapi mapi = new Mapi(); MapiMessage mapiMessage = new MapiMessage(); MapiRecipDesc mapiReceip = new MapiRecipDesc(); str msgid; container c,c1; ; Mapi.logon("","",#Mapi_Use_Default); MapiReceip.name("ani...@sant.com"); // Enter the Recepients address MapiMessage.text("Test Mail using Mapi"); // Body MapiMessage.subject("Hello"); // Subject MapiReceip.recipClass(#Mapi_To); MapiMessage.setRecipNo(1,mapiReceip); mapi.sendMail(mapiMessage,#Mapi_Dialog); msgid = mapi.findNext(); mapi.readMail(msgid,#MAPI_SUPPRESS_ATTACH); mapi.logoff(); } Hope this helps. Regards, Anitha On Fri, Jul 31, 2009 at 3:04 PM, sameerak6 <sameer...@yahoo.com> wrote: > > > hi all; > > im using axapta 3.0. > i wanted to send a mail via da axapta. > i used sysmailer class and following job. > > static void mail_send(Args _args) > { > > SysMailer mailer = new SysMailer(); > mailer.body(" "); > mailer.subject(" "); > mailer.fromAddress("[EMAIL PROTECTED]"); > mailer.fromName(" "); > mailer.tos().add([EMAIL PROTECTED]); > mailer.sendMail(); > print 'done'; > pause; > ) > > when i vs executing the job flowing error occurred. > " Method 'Send Mail' in Com Object of the class "Dudans.mailer" returned > error code. Hello command failed. > > plz help me, to be sorted this problem. > is there any method to send a mail instead of using SysMailer class?. > > Thank You > Sami > > >