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


Reply via email to