D
D
Dmitry2015-01-29 11:50:10
PHP
Dmitry, 2015-01-29 11:50:10

How to send emails through php so that they reach "Gmail for domain"?

There was such a problem. We are using google api to work with mail on our domain. Letters have been successfully coming from the site to the post office for several years. Letters were generated by a php script, the mail function.
But in December last year, the letters stopped coming. I have no idea what to do. We haven't changed anything on the site. Whether any requirements of Google have changed is also unclear, I did not find any information about this.
Can someone suggest what to do?
It is worth noting that ordinary letters (not from the site) come to the mail and everything works well.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2015-01-29
@battrack

Set up sending mail via SMTP.

N
Nikita Souvel, 2015-01-29
@Souvel1

Something has changed on the site/server. Because this still works today (the mail function without any SMTP). Just look in your spam folder...

B
Boris Kravchenko, 2015-01-29
@kruff

It seems to me that Souvel1 is right. Something has changed on the server, namely the mailer thinks that it sends letters to itself and processes them locally. Who administers the server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question