Is it possible to send mail in core php via gmail smtp without using any external class?
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: