PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Send email using in house email server
Send email using in house email server
Iniciado por PETR_K, 12,abr. 2016 19:46 - No hay respuesta
Miembro registrado
71 mensajes
Publicado el 12,abril 2016 - 19:46
Hello,

please do you have any experience with sending emails using in house email server?

I can send email without problems when I use external SMTP server address, like "smtp.company.com" or similar but when I try to use in house email server it does not work.

This is the command where I receive error.

EmailStartSMTPSession(gclLoginData.EmailLogin, gclLoginData.EmailPassword, ...
sSMTPserverAddress, 465, False, optionSSL)

- if sSMTPserverAddress=<DNS name of server> I get timeout error

- if sSMTPServerAddress=<IP address of server> I get error IMMEDIATELLY
"SMTP Session: connection failed. No server response. Security errors detected while implementing the communication."
Error code: 100042
System error mesasage: Target main name is not correct.

it happens in ClientHandshakeLoop in wd200com.dll

I find it strange that if I change address of email server from DNS name to IP address I get different behaviour and different errors.

Outlook works fine with IP address (192.168.1.6) and it does not work with DNS name either so there is probably some LAN limitation regarding DNS name. DNS name is just LAN DNS name of PC, like MAIL_SERVER_1.



I will appreciate any hints.

Thank you

Petr