Django mail failed to send mail to icloud mail id

195 views Asked by At

I used the below code

from django.core.mail import EmailMessage
email = EmailMessage('Hello', 'World', to=['[email protected]'])
email.send()

the message is sent when I used any other mail except icloud, the code says the message has been sent but I didn't receive any message. Is this Django issue or some policies of icloud is blocking it?

1

There are 1 answers

0
ohlr On

If it works with other mails, than it's most likely an ICloud thing. Gmail for example considers the SMPT Api as less secure than their G-Mail Api. In order be able to use it you need to grant access for less secure apps maybe there's a similar thing in ICloud.

Stupid question: Have you looked in your spam folder?