Mail acceptUnsecureConnection

Mac OS Mojave, 4D v18

Hello,

Using the Mail commands/methods, I don’t understand the transporter property acceptUnsecureConnection. 4D docs say it’s “read only”, with a default value set to “False”, but how can it be modified and by whom (4D, Mail server ?)

Thanks for your help

Where have you read “read only” :?:

It’s the result object from the command https://doc.4d.com/4Dv18/4D/18/SMTP-New-transporter.301-4505973.en.htmlSMTP New transporter> which is a read only object, but it up to you to create the parameter objet you pass to this command.

I’m going to try, but see

https://doc.4d.com/4Dv18/4D/18/transporteracceptUnsecureConnection.303-4505976.en.html

I think it is just to declare IF you accept that the connection established with the mail server CAN be unencrypted.

IF the MAIL server don’t accept unencrypted connection AND the encrypted connexion don’t work then there is an error returned.

IF the MAIL server don’t accept encrypted connection (really not encouraging :-?) AND that you don’t accept this type of connection (unsecured) then an error is returned.

By default, the connection try to be encrypted.

OK, I had misunderstood.
As you said, If I do this below, I can set the property acceptUnsecureConnection

Ex.
$server.host:=“my_host”""
$server.port:=my_port ( >10000, not SSL)
$server.user:=“my_name”
$server.password:=“my_pass”

$server.acceptUnsecureConnection:=True
$smtpTransporter:=SMTP Create transporter($server)

$bool:=False
$bool:=OB Lire($smtpTransporter;“acceptUnsecureConnection”)
ALERT(String($bool)) => returns True

Then it is set to True


I thought the problem I had came from acceptUnsecureConnection.

However, as I said above, the server connexion is not encrypted (very bad, but I have no choice for the time being)
Whether acceptUnsecureConnection is set to True or False, I get the following error

2020-02-28 10:46:25 15 Process_Param Erreur n° -1 dans méthode Mail_N_send : ligne 88
$status:=$smtpTransporter.send($email)

Erreur 49:srvr, Erreur interne SSL : error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
Erreur 43:srvr, Echec d’écriture SSL
Erreur 42:srvr, Echec de lecture SSL
Erreur 42:srvr, Echec de lecture SSL
Erreur 43:srvr, Echec d’écriture SSL
Erreur 42:srvr, Echec de lecture SSL
Erreur 42:srvr, Echec de lecture SSL
Erreur 2:SMTP, La connexion au Serveur SMTP a échouée.

If I use an another server account (ie gmail) with the right secure port, password, etc, it works perfectly

Does transporter.send() always requests SSL ?

You should read this: job has been done :slight_smile:
http://forums.4d.com/Post/FR/33813129/2/33962396#33813130
http://forums.4d.com/Post/FR/33813129/2/33962396#33813130>

Thanks

Reading the thread, I understand that I had troubles. If I understand well, it has to do with TLS 1.2 ?
In my case however, I want no TLS.

Anyway, I’ll try

Other topic : I did a search on “acceptUnsecureConnection” in the Forum, and the only result I got was
http://forums.4d.com/Post/FR/32457669/1/32457995#32457995

I find the search engine of the Forum not very easy to handle

: Dominique POULAIN

In my case however, I want no TLS.

In this case you should open connection on unsecured port (25) and set .acceptUnsecuredConnection=true but I don’t think it a great idea :roll:

My 2 cts

: Yannick TRINH

In this case you should open connection on unsecured port (25) and
set .acceptUnsecuredConnection=true

Something remains unclear since I can send thru Free this way and it works

[]34093640;“Your comment here…”[/]

If you use Free as our internet provider (your line is a Free one). Free use the 25 port for herself only and allow the unsecured connection because you are consider as a customer.

Each provider permit to connect unsecured with the port 25 on her self network. Each provider reserve the usage of 25 port for herself.