为什么不发送PHP邮件 [英] Why PHP Mail Not Sent

查看:62
本文介绍了为什么不发送PHP邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


有没有办法确定为什么不发送PHP邮件?我有一个特定的用户没有从我的PHP应用程序接收邮件和

我不知道为什么,它只是完全消失了。使用以下测试确实

也不起作用。

$ to =''g*****@herwebsite.com'';

$ subject =''Wakeup Gladys!';

$ message =''< b> yo< / b> ;, whassup?'';

$ header =来自: vi*@mywebsite.com \\\\ n" 。

''X-Mailer:PHP /''。 phpversion()。 " \r\\\
" 。

" MIME-Version:1.0 \\ nn" 。

" Content-Type:text / html;字符集= UTF-8\r\\\
" 。

" Content-Transfer-Encoding:8bit \\\\\ nn ;;

感谢您的任何帮助!


Vic

Hello,

Is there any way to determine why a PHP mail message is not delivered? I
have a particular user who is not receiving mail from my PHP application and
I don''t know why, it just totally disappears. Using the following test did
not work either.
$to = ''g*****@herwebsite.com'';
$subject = ''Wakeup Gladys!'';
$message = ''<b>yo</b>, whassup?'';
$headers = "From: vi*@mywebsite.com\r\n" .
''X-Mailer: PHP/'' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
Thanks for any help received!

Vic

推荐答案

to =''g ***** @ herwebsite.com'';
to = ''g*****@herwebsite.com'';


subject =''Wakeup Gladys!'';
subject = ''Wakeup Gladys!'';


message =''< b> yo< / b> ,whassup?'';
message = ''<b>yo</b>, whassup?'';


这篇关于为什么不发送PHP邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆