Question about email sending with Google Apps

55 views
Skip to first unread message

Chen Xu

unread,
Aug 19, 2014, 8:13:21 AM8/19/14
to django...@googlegroups.com
Hi Everyone,
I just setup google apps to use gmail with my own domain "example.com", and I want to use django send_mail to send emails from sup...@example.com, which might be for registration message, something like that. However, when I create the group in google apps, sup...@example.com will not have a password, but send_mail function requires an authentication. I wonder how this is usually done.


Thanks



--
⚡ Chen Xu

monoBOT

unread,
Aug 19, 2014, 9:26:23 AM8/19/14
to django...@googlegroups.com
Dont know how thats usually done, i can tell you how we do it.

We have an "out of repository" file where that important data is stored, like mail passwords, database name, user and pass, django SECRET_KEY, etc...
And in settings.py you simply import it


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACac-qbQL2PMNV-pRZ4Sq5N3MnrvZg4s%3DFcxYRX9L9fo7sykKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
monoBOT
Visite mi sitio(Visit my site): monobotsoft.es/blog/

Mario Gudelj

unread,
Aug 19, 2014, 10:38:08 AM8/19/14
to django...@googlegroups.com

Every email account will have a username and password. Unless it's an alias, in which case you can't use it. Sounds like you've set up an alias here. You can still use it as a from email address, but can't use it to authenticate with smtp

--

Chen Xu

unread,
Aug 19, 2014, 10:43:05 AM8/19/14
to django...@googlegroups.com
So does that mean when I see my registration confirmation email sent from no-r...@exmaple.com or sup...@example.com, they literally created the  user no-reply or support for the type of purpose?

Thanks



For more options, visit https://groups.google.com/d/optout.



--
⚡ Chen Xu

Mario Gudelj

unread,
Aug 19, 2014, 10:50:22 AM8/19/14
to django...@googlegroups.com

Most likely. In a lot of cases someone will be scaning those even if it's a no-reply address. At least that's been a case in companies I worked for, but it depends how big you are and how much you like your customers. You simply forward the mail to one or more people and filter it as it cook need in them look over it occasionally

Chen Xu

unread,
Aug 19, 2014, 9:16:18 PM8/19/14
to django...@googlegroups.com
I think  my expected behavior of an no-reply email is a "Delivery Failure" when people try to reply. Can google apps do it if I create no reply user.



For more options, visit https://groups.google.com/d/optout.



--
⚡ Chen Xu

Mario Gudelj

unread,
Aug 19, 2014, 10:09:39 PM8/19/14
to django...@googlegroups.com

Using an email address as from address, which doesn't exist, may hurt your deliverability. You can set it up and enable an auto responder which informs the user that the inbox isn't monitored. But if you want the delivery to fail then simply don't create it and use it as from email.

Reply all
Reply to author
Forward
0 new messages