tdevries Posted November 21, 2023 Posted November 21, 2023 Hi, I am trying to set up an automatic email function in Django, I added an email account in plesk and entered the values provided in Django settings.py: EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST='tdevries.helioho.st' EMAIL_PORT=465 EMAIL_HOST_USER='test@tdevries.helioho.st' EMAIL_HOST_PASSWORD=***** EMAIL_USE_SSL=True I disabled incoming mail and Plesk login for this mailaddress. I merely want to use it to send a confirmation mail. I made sure that the passwords match on Plesk and Django, however, I am getting an authentication error. Am I overlooking something? Kind regards, tdevries
wolstech Posted November 21, 2023 Posted November 21, 2023 Try setting the host to either localhost or to johnny.heliohost.org. Use port 25, ssl false. The mail server is running on the same box as the software..
tdevries Posted November 21, 2023 Author Posted November 21, 2023 I changed the host, port and ssl settings as you described. I am still getting the authentication error. Do I perhaps have to check the box that says: "Can be used to log in to Plesk (username: test@tdevries.helioho.st)" to use the smtp mail?
wolstech Posted November 21, 2023 Posted November 21, 2023 Shouldn't need to. Try giving the account a mailbox if it doesn't have one, even though it's for outbound mail. I'm not sure if it'll work to send mail if it lacks a mailbox...
tdevries Posted November 21, 2023 Author Posted November 21, 2023 Yes this solved it! thank you for the help!
wolstech Posted November 21, 2023 Posted November 21, 2023 Great to hear. Let us know if you need anything else.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now