Has anyone found a way to be able to change the SMTP port on codeunit 400? The internet ISP changed their SMTP port from the default 25 to 587, now the mail will not send.
The other option is some port forwarding at router or windows setting, but I don't know
Hmm... That's a good idea! Let me try it out.
use an simple machine as relaying smtp server.you should install IIS with SMTP. set "smart host" in this machine as your real smtp server. as outbound security configuration, you can define all details.
in this configurtaion, nav sends emails to your simple SMTP machine, then it forwards emails to your real SMPTP server. i like this configuration. no error on NAV screen, no freezing NAV..
Ok, it turns out there's a typo on the KB article.
The automation is suppose to be 'Microsoft Dynamics NAV Mail Helper', instead of Microsoft.Navision.Mail. However, even when I use the proper automation, I get an error that the automation is not loaded properly.
As the KB suggested, I'm using regasm to register it.
The automation name is not important for it to work.
What is important is the guids and the version; indicating the component, type library and version.
Have you tried registering the component with codebase?
I have selected 'Microsoft Dynamics NAV Mail Helper', instead of Microsoft.Navision.Mail in the C/AL Global Window, though I am facing an error message at the time of execution of the Codeunit 400. ](*,) ](*,)
I'm facing below error message at the time of sending smtp mail (smtp.gmail.com) thru Codeunit 400.
The SMTP mail system returned the folloeing error message: The SMTP server requires a secure connection or the client was not Authenticated. The server response was:5.7.0 Must issue a STARTTLS command first. b11sm2417142rvf.10
What is the reason behind it ??
Is there required any IIS configuration ??
Comments
For example
127.0.0.1:587
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
But it doesn't work...
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
The other option is some port forwarding at router or windows setting, but I don't know
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Hmm... That's a good idea! Let me try it out.
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
use an simple machine as relaying smtp server.you should install IIS with SMTP. set "smart host" in this machine as your real smtp server. as outbound security configuration, you can define all details.
in this configurtaion, nav sends emails to your simple SMTP machine, then it forwards emails to your real SMPTP server. i like this configuration. no error on NAV screen, no freezing NAV..
hope this helps.
However, for the life of me I cannot get it to work. When I use the regasm, I get a compilation error on codeunit 400 of Cannot Load Library type.
Anyone else gotten this to work? ](*,)
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
If allready have done this, how are you registering it?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
The automation is suppose to be 'Microsoft Dynamics NAV Mail Helper', instead of Microsoft.Navision.Mail. However, even when I use the proper automation, I get an error that the automation is not loaded properly.
As the KB suggested, I'm using regasm to register it.
Have you gotten it to work by any chance?
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
What is important is the guids and the version; indicating the component, type library and version.
Have you tried registering the component with codebase?
regasm /codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll
/TList
/*** Perhaps this can help you verify the registration. Replace %INSTALLPATH% with the path to the dll ***/
What is the reason behind that ??
Please help me to solve this issue.
Even though I do this, I'm still unable to get this thing to work...
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
I have selected 'Microsoft Dynamics NAV Mail Helper', instead of Microsoft.Navision.Mail in the C/AL Global Window, though I am facing an error message at the time of execution of the Codeunit 400. ](*,) ](*,)
I'm facing below error message at the time of sending smtp mail (smtp.gmail.com) thru Codeunit 400.
The SMTP mail system returned the folloeing error message: The SMTP server requires a secure connection or the client was not Authenticated. The server response was:5.7.0 Must issue a STARTTLS command first. b11sm2417142rvf.10
What is the reason behind it ??
Is there required any IIS configuration ??
Kindly reply ...
How did you get pass that error message for the C/AL error?
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
I have faced the above error message & then I have to reselect the global variables as below screen shown :
I have solve this issue in this way.
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
I have just updated the download, as it did not call the register function correctly.
In NAV im using this automation variable:
Name DataType Subtype Length
Mail Automation 'Microsoft Dynamics NAV Mail Helper'.SmtpMessage
Soren
http://gotcal.com
I have just updated it, as it did not register itself in the previous download. I have tested it on Windows 7, XP and Win2003.
The name of the automation is:
Name DataType Subtype Length
Mail Automation 'Microsoft Dynamics NAV Mail Helper'.SmtpMessage
Soren
http://gotcal.com
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
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
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
The authentification data is ok, because it works with other automation servers.