开发者

PHP using GMAIL SMTP on IIS

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜