Is it possible to send mail in core php via gmail smtp without using any external class?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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