![]() ![]() So how can I use my custom domain address with Apple's iCloud+ service with Python's SMTP? ![]() Server.starttls(context=context) # Secure the connection This was taken from this question: SMTP_SSL SSLError: unknown protocol (_ssl.c:590) try: Only when I changed the last part to use TLS instead would it connect and give me an authentication error. However, this was still giving me a connection error. ndmail(sender_email, receiver_email, message) With smtplib.SMTP_SSL(smtp_server, port, context=context) as server: """.format(to=receiver_email, sender=sender_email) Password = "some,password" # app specific password from Apple ID settings Receiver_email = # Enter receiver address This led me to the following code: import smtplib, ssl Additionally, they want you to generate an "app-specific password" for outside applications. I will always either get "Mailbox does not exist" or "Authentication failed".įrom the Apple support pages it seems like you need to use SSL over port 587. ![]() However, I can't get logged into the SMTP servers. I would like to use Python's SMTP to send automated emails with a custom domain iCloud+ email address. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |