Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Incoming Mail Domain With Google App Engine

Tags:

I have set up a custom domain for my google app engine application, which accepts incoming email. While this works great if you want to use an email address like [email protected], I would like to use a custom domain like [email protected]. Is it possible to do this?

A solution that will not work, is to simply use Google Apps to forward emails to the appspotmail address. This is because I accept emails to any number of email addresses at my domain, and I would need to set up this forwarding for each one - simply not doable.

Thanks for any help! Devon

like image 794
devongovett Avatar asked Nov 09 '09 02:11

devongovett


People also ask

How do I add my own domain to Google App Engine?

In the Google Cloud console, go to the Custom Domains tab of the App Engine Settings page. Click Add a custom domain. If your domain is already verified, the domain appears in the Select the domain you want to use section. Select the domain from the drop-down menu and click Continue.

What email does Google App Engine use?

The mail API provides two ways to send an email message: the mail. send_mail() function and the EmailMessage class. This page describes how to use the legacy bundled services and APIs. This API can only run in first-generation runtimes in the App Engine standard environment.

What does App Engine manage domains?

By default, when you map a domain to your app, App Engine issues a managed certificate for SSL for HTTPS connections. For more information on using SSL with your custom domain, including how to use your own SSL certificates, see Securing your custom domains with SSL.

How do I send an email from the App Engine?

php require_once 'google/appengine/api/mail/Message. php'; use google\appengine\api\mail\Message; $message_body = 'Hello. This is the body of the message. '; $mail_options = [ 'sender' => '[email protected]', 'to' => '[email protected]', 'subject' => 'Your account has been activated.


1 Answers

App Engine doesn't currently support receiving email on custom domains. You'd need to point your MX records to a service that supports mail redirection, and have it redirect all addresses to your appspotmail subdomain.

like image 154
Nick Johnson Avatar answered Sep 29 '22 02:09

Nick Johnson