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
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With