PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Sending email via port 465
Sending email via port 465
Iniciado por guest, 23,may. 2018 08:49 - 3 respuestas
Publicado el 23,mayo 2018 - 08:49
I have a program that sends mails via port 465

// Start a SMTP session MySession is EmailSMTPSession MySession..ServerAddress = "mail.myserveraddress" MySession..Port = "465" MySession..Password = "MyPassword" MySession..Name = cSender MySession..Option = optionSSL

It work at all the clients except one.
It is a client who has also security camera's. All the ports on the router are closed.
So I told him to open port 25 and 465.
But it still does not work.

Someone an idea. Are there other ports that have to be opened.

Thanks.
Willy Hermans.
Publicado el 23,mayo 2018 - 11:34
In some situations like using self-signed certificates in the SMTP server you will have errors sending emails.

Try using EmailConfigure(emailParameterMode, 1) before the EmailStartSMTPSession
Publicado el 24,mayo 2018 - 16:16
I am working with WD 20
Emailconfigure does not exist.in WD20.

The code works perfect at all clients exept this one.
This client has a firewall and security cams.
So almost all the ports are closed.

The IT man of that client has opened port 465 and port 25.

So I thinks the solution is to open the correct port.

Anybody an idea.

Thanks,
Willy Hermans
Publicado el 24,mayo 2018 - 18:47
Did you try using the same smtp server with another program like outlook or mozilla just to test the smtp configuration?