Send email using an iCloud custom domain

Posted on Wed 24 May 2023 in tech

Send email using an iCloud Custom Domain

I recently required a script to send email using an Apple iCloud Custom Domain. I found that the SMTP script I used before did not work because it attempted to login with my email address. The fix is to login with your apple id account name.

Discussion here: How to use SMTP with Apple iCloud Custom Domain

Here is a quick gist: