0

I have the following function:

<?php
ini_set('SMTP','ssl://smtp.gmail.com'); 


$to = 'test@yobilab.com';
$subject = 'Example subject';
$body = 'With an example body…'; 

mail($to, $subject , $body);
?>

How do I modify it to use Gmail SMPT?

I will propably need to specify a port, a username, a password etc..

Do you know how?

DiegoP.
  • 45,177
  • 34
  • 89
  • 107

0 Answers0