I’m trying to set-up a business website using App Engine. Previously, I had prototyped the site using my personal gmail account, but now I’ve purchased a domain name and have set-up google apps. So far, the only hitch I’ve encountered is getting my contact form to properly email people who try to contact me. Originally, I was using this code:
from google.appengine.api import mail
sender_email = "Admin <admin@example.appspotmail.com>"
mail.send_mail(sender_email, contact_email, subject, body)
I’d like to change sender_email to guru@example.com where guru is a “nickname” for my email account on Google Apps.
When I try to add guru@example.com I can receive an invitation email but can’t add the nickname as a separate account.
Is there any way to do this without adding a new mailbox to my Google Apps account?
You will need to add a new mailbox.
I spent some time researching this issue and found no work arounds. Outside of possibly using Python E-Mail library and my initial look into it seemed more effort than it was worth for my applications. You will also need to host an email server somewhere and configure your mail exchange records in DNS properly.
If you do write your own email sending function and you’re changing the sender your message will likely be flagged as spam.
Also if you plan on processing or receiving mail using your App Engine app it will need to be addressed to user@myapp.appspotmail.com as well. Thus negating all that extra effort to keep from using appspotmail.com