Hi pieter
Use following code and try to send mail.
 
SysINetMail             mail = new SysINetMail();
mail.sendmail('[EMAIL PROTECTED]',  'Just Testing' ,'SMS test',true);
wbr
chaminda

 


 
On 11/24/05, pieter m <[EMAIL PROTECTED]> wrote:
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


Sharing the knowledge on Axapta.



YAHOO! GROUPS LINKS






Sharing the knowledge on Axapta.



SPONSORED LINKS
Business finance course Business to business finance Small business finance
Business finance consultant Business finance magazine Business finance schools


YAHOO! GROUPS LINKS




Reply via email to