using core php mail() to send via gmail SMTP

gmail, php, smtp

Solution

I don't think it is possible because you need to perform an authentification. Also, you need to connect via an SSL socket, I don't know if the stock `mail()` function support this.

If you are willing to use the Pear Mail package, you might want to take a look at this:

Send email using the GMail SMTP server from a PHP page

Problem

Is it possible to send mail in core php via gmail smtp without using any external class?

Original source

Related problems