Search code examples
djangogmail

Use gmail SMTP server for my another email, in django


I have two emails, [email protected] and [email protected]. I want to send email to users of my django app, from [email protected]. I am using mydomain email, from my gmail account, using the add another account settings. But when I try to send email with the server as smtp.gmail.com, I get SMTPAuthentication error. Is there any way I can use the gmail server? I cannot use smtp.mydomain.com , as there is no such host error, when I try telnet. What do I do now?


Solution

  • You can try sending an email as '[email protected]' after you log into google with '[email protected]' If your account has an alias for '[email protected]' it should work. If that still fails you will need to use a service like mailchimp or sendgrid, or set up your own smtp server at smtp.mydomain.com.