开发者

PHP using GMAIL SMTP on IIS

开发者 https://www.devze.com 2023-03-24 09:11 出处:网络
I have the following function: <?php ini_set(\'SMTP\',\'ssl://smtp.gmail.com\'); $to = \'test@yobilab.com\';

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 pas开发者_运维问答sword etc..

Do you know how?

0

精彩评论

暂无评论...
验证码 换一张
取 消