Codeunit SMTP Mail with port 2525

JEytonJEyton Member Posts: 33
I am using codeunit 400 "SMTP Mail" to send an pdf document.

The problem is that I get the following error message when I try to send the mail:

"The transport failed to connect to the server"

I have tried to connect to the smtp server using telnet on port 2525 and have no problem with this. So I have connection with the smtp server.

Is it possible to send mail using codeunit "SMTP Mail" with port 2525? As I understand the standard port is 25.

Comments

  • ara3nara3n Member Posts: 9,256
    Yes the smtp setup and the smtp COM object do not have a port.

    You could try to put ip:Port in the smtp server field in the smtp mail setup table.

    The other option is to use Jmail.dll or smtp ocx that is in download folder.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • JEytonJEyton Member Posts: 33
    I tried to put the port after the ip to the server but that didnt work.

    I go for the Jmail.dll instead.

    Thanks for your reply
  • ara3nara3n Member Posts: 9,256
    No Problem.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.