SMTP Mail Problems
Grant
Member Posts: 30
I am using the "SmtpMailXControl1.ocx" control dated 10/08/02. We have other customers who are using this OCX control with no problem. However, one customer is getting the following error and we just can't seem to get around it:
This message is for C/AL programmers:
The call to member Send failed. SmtpMailXControl1.SmtpMailX returned the following message:
Die Authentifizierung ist fehlgeschlagen
I have created a simple form to test the SMTP send capability. On my system this works great, but our customer still gets the error.
Some steps we have taken to debug are:
1. Verify the SMTP Server Name and Server ID. Used telnet to connect directly to the SMTP server and trigger an email to himself from that address. I realize this does not involve the SMTP OCX control, but it verifies that these parameters are correct.
2. Have tried both the fully resolved server name "exchange1.1234c.local" as well as the abbreviated name "exchange1". Same problem.
3. Have verified that the license file "SmtpMailXControl1.lic" is in the installation directory.
I'm running out of ideas, any help would be appreciated.
This message is for C/AL programmers:
The call to member Send failed. SmtpMailXControl1.SmtpMailX returned the following message:
Die Authentifizierung ist fehlgeschlagen
I have created a simple form to test the SMTP send capability. On my system this works great, but our customer still gets the error.
IF ToRecipient = '' THEN BEGIN
MESSAGE('Please enter valid email recipient.');
EXIT(FALSE);
END;
IF SMTPServerName = '' THEN BEGIN
MESSAGE('Please enter valid SMTP Server Name.');
EXIT(FALSE);
END;
IF SMTPServerUserID = '' THEN BEGIN
MESSAGE('Please enter valid SMTP Server User ID.');
EXIT(FALSE);
END;
CLEAR(SMTPMail);
SMTPMail.NewMessage(FromEmailAddress,Subject);
SMTPMail.SetWorkMode();
SMTPMail.SetHost(SMTPServerName);
SMTPMail.SetUserID(SMTPServerUserID);
SMTPMail.AddLine(BodyLine1);
SMTPMail.AddLine(BodyLine2);
SMTPMail.AddLine(' ');
SMTPMail.AddLine('Testing SMTP Notifications');
SMTPMail.AddLine(' ');
SMTPMail.AddLine('TEST: SMTP ServerName, SMTP User ID');
SMTPMail.AddLine(SMTPServerName + ', ' + SMTPServerUserID);
SMTPMail.SetToAdress(ToRecipient);
SMTPMail.SetFromAdress(FromEmailAddress);
SMTPMail.Send;
IF NOT SMTPMail.WasSuccessful THEN BEGIN
MESSAGE(SMTPMail.LastError);
EXIT(FALSE);
END ELSE
EXIT(TRUE);
Some steps we have taken to debug are:
1. Verify the SMTP Server Name and Server ID. Used telnet to connect directly to the SMTP server and trigger an email to himself from that address. I realize this does not involve the SMTP OCX control, but it verifies that these parameters are correct.
2. Have tried both the fully resolved server name "exchange1.1234c.local" as well as the abbreviated name "exchange1". Same problem.
3. Have verified that the license file "SmtpMailXControl1.lic" is in the installation directory.
I'm running out of ideas, any help would be appreciated.
0
Comments
-
tell to ur client that install the ocx then use it .i think that then it will work smoothly.please mail me personally on my id vikram7_dabas@yahoo.co.if it is not working and when u find the right solution.Vikram Dabas
Navision Technical Consultant0 -
It was solved, thanks for the offer to help.
Turns out that the "SMTP User Id" setting was the problem. They never actually did try setting this to "userid" instead of "userid@hotmail.com". I assumed they had already tried this and that it didn't help.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions