Changing SMTP port on Codeunit 400

Alex_Chow
Member Posts: 5,063
Hi,
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.
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.
Confessions of a Dynamics NAV Consultant = my blog
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
0
Comments
-
Have you tried In setup where you specify the SMTP server to put a colon and then the port number?
For example
127.0.0.1:5870 -
Yep, sure did. Doing a search on the forum, it was one of the suggestions.
But it doesn't work...Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
I guess you have to contact MS or use JMAIL com object.
The other option is some port forwarding at router or windows setting, but I don't know0 -
ara3n wrote: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.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:ara3n wrote: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..
hope this helps.0 -
So Microsoft has released a fix for this under KB 981354. This KB now allow you to change the SMTP port on codeunit 400.
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? ](*,)Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
You probably have to reselect the global variables.
If allready have done this, how are you registering it?0 -
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.
Have you gotten it to work by any chance?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
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?
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 ***/[HKEY_CLASSES_ROOT\Microsoft.Navision.Mail.SmtpMessage] @="Microsoft.Navision.Mail.SmtpMessage" [HKEY_CLASSES_ROOT\Microsoft.Navision.Mail.SmtpMessage\CLSID] @="{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}] @="Microsoft.Navision.Mail.SmtpMessage" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\InprocServer32] @="mscoree.dll" "ThreadingModel"="Both" "Class"="Microsoft.Navision.Mail.SmtpMessage" "Assembly"="Microsoft.Navision.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" "RuntimeVersion"="v2.0.50727" "CodeBase"="file:///%INSTALLPATH%/Microsoft.Navision.Mail.dll" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\InprocServer32\7.0.0.0] "Class"="Microsoft.Navision.Mail.SmtpMessage" "Assembly"="Microsoft.Navision.Mail, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" "RuntimeVersion"="v2.0.50727" "CodeBase"="file:///%INSTALLPATH%/Microsoft.Navision.Mail.dll" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\ProgId] @="Microsoft.Navision.Mail.SmtpMessage" [HKEY_CLASSES_ROOT\CLSID\{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}\Implemented Categories\{62C8FE65-4EBB-45E7-B440-6E39B2CDBF29}]
0 -
I have registered the components (dll,tlb) successfully thru regasm but can't see in the Automation List.. :-k
What is the reason behind that ??
Please help me to solve this issue.Now or Never0 -
The automation is suppose to be 'Microsoft Dynamics NAV Mail Helper', instead of Microsoft.Navision.Mail.
Even though I do this, I'm still unable to get this thing to work...Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Dear all,
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 ...Now or Never0 -
You got further than I did! \:D/
How did you get pass that error message for the C/AL error?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Navuser1, you're a genius!!!! \:D/Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
I have successfully installed it with the standalone installer here: http://gotcal.com/index.php/2010/06/smt ... 5-version/
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'.SmtpMessage0 -
Try this installer from this blog: http://gotcal.com/index.php/2010/06/smt ... 5-version/
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'.SmtpMessage0 -
The knowledge base article is full of typos, much like my blog...Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Can anyone bring up the KB article again? Everytime I search on Microsoft, it comes back a cannot find error message.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
FYI, the files can be downloaded using KB2280492.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
when i use this mail helper i get the error messge: "no Connection to the remote Server".
The authentification data is ok, because it works with other automation servers.Rallnus (Yamaha FJ1200 - '89 / 25th anniversary was great!)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