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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...