"how to configure wamp (localhost) to send email using gmail?" Code Answer

2

gmail servers use smtp authentication under ssl or tls. i think that there is no way to use the mail() function under that circumstances, so you might want to check these alternatives:

  • pear::mail
  • phpmailer
  • nettemail

they all support smtp auth under ssl.

you'll need to enable the php_openssl extension in your php.ini.

additional resources:

  • how to send email from a php script using smtp authentication (using pear::mail)
  • send email using php with gmail (using phpmailer)
  • mailing using nettemail
By emeksedarc1-85339b449b37 on July 18 2022

Answers related to “how to configure wamp (localhost) to send email using gmail?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.