SMTP AUTHENTICATION

KimKim Member Posts: 85
Hi guyz,
I have been using an OCX i downloaded from this forum to sent mails from NAV.
However my client has introduced a mandatory authentication for all SMTP mails.
How can i be able to do authentication from NAV because all mails are currently
being blocked Error 10035.
This is the Code am using


SMTPMail.NewMessage(HrSetup."Sender Address",HrSetup."Email Subject" );
SMTPMail.SetWorkMode();
SMTPMail.ClearAttachments();
SMTPMail.ClearAllRecipients();
SMTPMail.SetDebugMode();
SMTPMail.SetFromAdress(HrSetup."Sender Address");
SMTPMail.SetHost(HrSetup."Outgoing Mail Server");//Outgoing Server
SMTPMail.SetUserID(HrSetup."Sender User ID");
SMTPMail.AddLine(HrSetup."Email Text");
SMTPMail.AddAttachment(HrSetup."Template Location");
SMTPMail.SetToAdress(HrEmp."Company E-Mail");
SMTPMail.Send;

Thanks
Kim
](*,)

Comments

Sign In or Register to comment.