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
](*,)
0
Comments
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book