Renjitha22
Renjitha22

Reputation: 213

Can't send email using email function in Google Cloud Platform

We have G Suite account with our domain name. And our server is Google Cloud Platform. We are using PHP for our development, we trying different code for sending mails, but cant receive any mails using mail functions, and we contact G Suite account they said all the settings are working perfectly... This issue is regarding Google Cloud Platform, cloud reject the mails.

Is any additional settings needed to implement on Google Cloud Platform to establish a connection with G suite account?

Should we have an App Engine account for sending email via code?

Any ideas on what might be happening here or what to test next?

Upvotes: 1

Views: 18817

Answers (1)

Misha Brukman
Misha Brukman

Reputation: 13424

Disclosure: I am a product manager on Google Cloud Platform (though not the products discussed here specifically).

Note that outgoing connections on port 25 (SMTP) are disabled, so you cannot use that for sending email programmatically. This is probably the issue that you're running into.

Here are some alternatives, depending on what server product you are using:

Upvotes: 9

Related Questions