mail()函数发送两封电子邮件 [英] mail() function sending two emails
问题描述
这是我的代码:
$ today = getdate();
$ to = 所以***** @ somewhere.com ;
$ subject =" New Application:" 。$用户数据["用户名"]。" -
"。$ today [''mon'']。" /"。$ today [''mday'']。" /"。$ today [''year ''];
$ message_header =" New Application:"。$ userdata [" username"];
$ message = $ message_header。 \ n
你好,这有用吗?;
邮件($ to,$ subject,$ message);
它不在一个循环中,所以我不明白它为什么会向接收者发送2封电子邮件
?
>
任何想法都是?
Here''s my code:
$today = getdate();
$to = so*****@somewhere.com;
$subject = "New Application: ".$userdata["username"]." -
".$today[''mon'']."/".$today[''mday'']."/".$today[''year''];
$message_header = "New Application: ".$userdata["username"];
$message = $message_header."\n
Hello, is this working?";
mail($to, $subject, $message);
It''s not located in a loop, so I don''t understand why it would send 2 emails
to the reciever?
Any idea''s?
推荐答案
今天= getdate();
today = getdate();
to = so*****@somewhere.com ;
>
subject =" New Application:"。
subject = "New Application: ".
这篇关于mail()函数发送两封电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!