tdevries Posted November 21, 2023 Share 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 Quote Link to comment Share on other sites More sharing options...
wolstech Posted November 21, 2023 Share 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.. Quote Link to comment Share on other sites More sharing options...
tdevries Posted November 21, 2023 Author Share 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? Quote Link to comment Share on other sites More sharing options...
wolstech Posted November 21, 2023 Share 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... Quote Link to comment Share on other sites More sharing options...
tdevries Posted November 21, 2023 Author Share Posted November 21, 2023 Yes this solved it! thank you for the help! Quote Link to comment Share on other sites More sharing options...
wolstech Posted November 21, 2023 Share Posted November 21, 2023 Great to hear. Let us know if you need anything else. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.