Error While sending mail through SMTP(G-Mail)

sherry
Member Posts: 20
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
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
-
This error told us that mail.Gmail.com works under SSL only.
Check the possibility to switch SSL with SMTP in NAV or change Gmail-server to someone else.Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0 -
NAV 5 sp1
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions