Setting up Craft's registration e-mails to be sent through GMail I have a question regarding how to set up Craft 3 RC8 to send e-mails through a corporate GMail account.


My website's MX records are pointed at GMail through Cloudflare
I tried setting this up when my website was on Craft 2.6. I set that up and my e-mail got blocked. I unblocked it through GSuite admin account and switched back to php.
When sending through PHP mail, my e-mails get sent into spam.


So I need help on whether how to get my e-mails sent through GMail without my account getting banned, or how to make the e-mails sent through PHP not go into spam.
I'm not sure how your email address got blocked, but Craft 3 uses the same SMTP smtp.gmail.com server and settings that Craft 2 uses when you choose to send email via "Gmail"

https://github.com/craftcms/cms/blob/develop/src/mail/transportadapters/Gmail.php#L91-L97

Sending email through PHPMail/sendmail is notoriously unreliable and I wouldn't recommend it on production.

https://craftcms.com/support/troubleshooting-email-errors#dealing-with-email-delivery-issues

And there are quite a few steps you can take to help ensure your email doesn't get treated as SPAM: https://blog.codinghorror.com/so-youd-like-to-send-some-email-through-code/