Jump to content

Recommended Posts

Posted

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

 

Posted

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..

Posted

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?

Posted

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...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...