Would it be possible to also add outlook.office365.com to the whitelist for free users, please?
The mail api is documented here: https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations
cheers,
paddy
Would it be possible to also add outlook.office365.com to the whitelist for free users, please?
The mail api is documented here: https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations
cheers,
paddy
No problem, that's done.
Brilliant, thank you.
I didn't send mail with Office365 Smtp on pythonanywhere ? What can i do ?
It throws that error:
Expection value : [Errno 101] Network is unreachable
in my settings.py like that:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.office365.com'
EMAIL_HOST_USER = 'xyz@domainname.com'
EMAIL_HOST_PASSWORD = '########'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'xyz@domainname.com'
SERVER_EMAIL = 'xyz@domainname.com'
Free accounts on PythonAnywhere can only connect to the whitelisted external servers using HTTP or HTTPS; you're trying to connect using SMTP, which is a different protocol. If you want to send email from a free account, you need to either use GMail, or use an HTTPS-based email solution like MailGun or SendGrid. Alternatively, you could upgrade to a paid account, which would allow you to use SMTP to other servers.
There's more information on this PythonAnywhere help page.