In nav 2009, SMTP Error

Dear friends

I am using Nav 2009, I wanted to use SMTP objects to send email.

sample ode
ToAddresses:='krishna@jitsystems.net';
kSubject:='PO for '+FORMAT(Amount);
kBody:='PO Document '+"No."+' '+"Pay-to Name"+' for your approval';

CLEAR(kmail);
kmail.CreateMessage(smtp."User ID",ToAddresses,ToAddresses,kSubject,kBody,TRUE);
kmail.Send;

Can anybody help me>>>

Warm Regards
Kmk

Answers

Sign In or Register to comment.