Hi All,
I am getting an error while running a report which sends a mail with SMTP Setup in NAV 5.0 SP1 mentioned below :
SMTP Server : smtp.gmail.com
Authentication : Basic
UserID : specified the user id.
Password : specified the password.
The error which i m getting is given below :
Microsoft Dynamics NAV
The SMTP mail system returned the following error: (0x8004020E): The server rejected the sender address. The server response was: 530 5.7.0 Must issue a STARTTLS command first. c63sm399533yhe.60
OK
I have confirmed the UserID & Password.So, doesn't seems to be a problem with them.Is there any issue regarding the SMTP.
Please reply if someone has a solution to this problem and also if some more inputs are required from my side.
Thanks & Regards,
Sherry
0
Comments
Check the possibility to switch SSL with SMTP in NAV or change Gmail-server to someone else.
Follow my blog at http://x-dynamics.blogspot.com
Hi.
At last I could send mail, from smtp.gmail.com, with Basic authentication!
Just, i had to use e new version of automation "Microsoft Navision Mail". You can download it, from:
https://mbs2.microsoft.com/Knowledgebas ... us;2499881
To register the Microsoft.Navision.Mail.dll assembly, follow these steps:
1. Copy the files that you extracted from the hotfix files to the following folder:
%ProgramFiles%\Common Files\Microsoft Dynamics NAV\Mail
2. Search an copy regasm.exe from %Windows\Microsoft.NET\Framework64\v2.0.50727 to %ProgramFiles%\Common Files\Microsoft Dynamics NAV\Mail
3. Register the new Microsoft.Navision.Mail.dll assembly through the Assembly Registration tool (Regasm.exe) by using the following command:
regasm /codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll
In NAV, you have to assing the new automation version to the MAIL variable, and use the news parameters in Mail.send function…
for example:
rec_smtp_setup.GET;
Resultado:=Mail.Send(rec_smtp_setup."SMTP Server",25,TRUE,rec_smtp_setup."User ID",rec_smtp_setup.Password,TRUE);
//[BSTR Send :=] Mail.Send(BSTR server, LONG serverPort, BOOL authentication, BSTR userName, BSTR password, BOOL enableSsl)
good luck.