使用php从外部提供商发送邮件

时间:2019-07-20 17:14:46

标签: php email

我想通过php发送邮件。我知道有很多教程都以这样的脚本结尾:

<?php
$to      = "nobody@example.com";
$subject = "the subject";
$message = "hello";
$headers = "From: me@example.de" . "\r\n" .
           "Reply-To: me@example.com" . "\r\n" .
           "X-Mailer: PHP/" . phpversion();

mail($to, $subject, $message, $headers);
?> 

但是如何从外部电子邮件提供商的帐户发送邮件?微软与@ outlook.de

因为上面的脚本不会要求输入我的邮件的密码,所以现在就不要输入它是我的邮件还是其他任何邮件...

现在有人怎么做吗?

谢谢!

0 个答案:

没有答案