Send mail using iCloud account?

Has anyone been able to successfully send e-mail messages from an Apple account (@icloud.com, @me.com… addresses) using 4D? Old (4D internet commands) or new (transporter
I can’t get the right connection settings because I’m consistently getting authorization errors (err 61 and err 10113), whatever combination I’m trying.

Thanks for any insights,
Koen

Hello,

I just test authentication successfully using SMTPTransporter.checkConnection() and the following SMTP settings:

<code 4D>
C_OBJECT($options;$status;$smtp)

$options:=New object
$options.host:=“smtp.mail.me.com
$options.port:=587 // 587 by default
$options.user:="user@icloud.com"
$options.password:=“password”

$smtp:=SMTP New transporter($options)
$status:=$smtp.checkConnection()
ASSERT($status.success)

</code 4D>

I think you just have to generate an “app-specific” password.
See here: https://support.apple.com/en-us/HT204397

Regards

: Yannick TRINH

I think you just have to generate an “app-specific” password.
See here: https://support.apple.com/en-us/HT204397

It works fine, thank you for the tip

Apple’s smtp is a bit slower. BTW do you know limitation for it?

Hi Yannick,

Generating an app specific password did the trick.
Thanks for your input! :smiley:

Koen