vitorfs / colossus

Self-hosted email marketing solution
https://colossus.readthedocs.io
MIT License
503 stars 128 forks source link

SMTP configuration #20

Closed Akonibrahim closed 5 years ago

Akonibrahim commented 5 years ago

Hi vitor I luv u r blog, I'm new to Django.I tried to configure the SMTP credentials with my gmail account but it shows the following error

(534, b'5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbs7\n5.7.14 2l5c6kcSl2yytD4zgorjL0Q3EqDTiRku3-j6FOCGculTKd372DUbmphw_zMwXbIvycvOle\n5.7.14 8z9GVcLkfz9Sfi9Q-fsnISUFCMcIOFT0yKbkjXBM-0toUMDt0euYHmR7rwjudOiHHlIRA0\n5.7.14 szcgbeIXK37nI0cRVWGpumhvG5Bgrmn16zPldm85u9M0wxG-jUl72NidIOZhwM-WLjvQ7j\n5.7.14 hzI-cSmW-29QoAY4uGjl_TJcTlVQW1abkeSqfJQO-Go06vynYi> Please log in via\n5.7.14 your web browser and then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 b21-v6sm10353954pfm.97 - gsmtp')

image

And also I got a mail from gmail saying Sign In attempt was blocked So I think gmail won't allow me to use their service for bulk mailing or Any suggestions .. Thank you in advance

rbrtjns90 commented 5 years ago

You have to log into your gmail account from your browser. This happens with Gmail when you enable smtp/imap and don’t use Oauth to send the email due to it not being as insecure as Oauth.

vitorfs commented 5 years ago

Gmail is not suitable for bulk mailing, if I'm not mistaken, they also have some daily send limits for personal accounts

For test purpose I guess it's fine to use it, but I think you need first to do some minor configuration on your Gmail account so to allow sending emails via smtp

Also for the time being you should add your smtp credentials to the settings file:

https://github.com/vitorfs/colossus/blob/master/colossus/settings.py#L149

This custom smtp configuration per mailing list is not ready yet

Akonibrahim commented 5 years ago

Thanks rbrtjns90

Akonibrahim commented 5 years ago

Thanks vitor keep doing great things