Hi all,
Could u tell me how to use SysMailer?

I has written code like below :
SysMailer  smsMail;  
;
smsMail = new SysMailer();
smsMail.SMTPRelayServers().add('smtp.xxx.com',
25,'xxx.xxx.xxx.xxx','xxx','xxx');
smsMail.body('SMS test');
smsMail.subject('Just Testing');
smsMail.fromAddress('your Mail address');
smsMail.tos().add('[EMAIL PROTECTED]');
smsMail.sendmail();
}

But I got error message :
Method 'SendMail' in COM object of class
'Dundas.mailer' returned error code 0x80004005
(E_FAIL) which means: The socket connection failed.

What is the cause of that error? And what is the right
code to use SysMailer?

Thx u.. :D

Cheers,



Pieter M


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/kGEolB/TM
--------------------------------------------------------------------~-> 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to