PHP mail()函数问题 [英] PHP mail() function problem

查看:67
本文介绍了PHP mail()函数问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我想使用php mail()函数发送邮件,我的网络服务器是

apache on linux我只是添加这一行到我的代码

ini_set(''sendmail_from'',''u****@must.edu.eg'');


i'我正在向同一个域的用户发送电子邮件.... @ must.edu.eg但是

没有发送邮件也没有给出任何错误


但是我确定邮件服务器正在工作,因为当我试图通过Outlook将

邮件发送到同一个域时它运行良好。


i尝试发送到hotmail它只发送一封邮件,但是当我再次尝试

时,同样没有发送邮件而没有错误。


你认为问题在哪里????

Hi all,

I want to send mails using php mail() function, my web server is
apache on linux i just add this line to my code
ini_set(''sendmail_from'', ''u****@must.edu.eg'');

i''m sending emails to users at the same domain ....@must.edu.eg but it
didn''t send mail also it don''t give any errors

but i''m sure that mail server is working coz when i''m trying to send
mails to the same domain through outlook it works well.

i tried to send to hotmail it sends just one mail but when i tried
again the same happened no mails sent with no error.

where do u think the problem????

推荐答案

noha khalifa写道:
noha khalifa wrote:

大家好,


我想用php mail()函数发送邮件,我的web服务器是/ b
apache on linux我只是将这一行添加到我的代码中

ini_set(''sendmail_from'',''u****@must.edu.eg'');


我正在向同一个域的用户发送电子邮件.... @ must.edu.eg但是

没有发送邮件也没有给出任何错误


但是我确定邮件服务器正在工作,当我试图通过Outlook将

邮件发送到同一个域时效果很好。


i尝试发送到hotmail它只发送一封邮件,但是当我再次尝试

时,同样的情况发送没有邮件发送没有错误。


你认为这个问题在哪里????
Hi all,

I want to send mails using php mail() function, my web server is
apache on linux i just add this line to my code
ini_set(''sendmail_from'', ''u****@must.edu.eg'');

i''m sending emails to users at the same domain ....@must.edu.eg but it
didn''t send mail also it don''t give any errors

but i''m sure that mail server is working coz when i''m trying to send
mails to the same domain through outlook it works well.

i tried to send to hotmail it sends just one mail but when i tried
again the same happened no mails sent with no error.

where do u think the problem????



你没有显示你的代码,所以这是不可能的。


你不应该''使用ini_set作为''sendmail_from'' - 这只是一个

的默认值。相反,你应该使用

mail()命令中的From:标题来设置它的来源。


如果你能得到一个发送到hotmail的电子邮件,然后你就能够连接到MTA
。但是这个MTA是否设置为限制在一段时间内发送的电子邮件数量?


另外,你怎么知道电子邮件没有'不会被送到?如果你要检查是否已收到它,那就不准确了。例如,接收电子邮件系统可以将垃圾邮件系统作为垃圾邮件转储。


您正在使用的代码对帮助有用你的问题。


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================

You didn''t show your code, so it''s impossible to tell.

You shouldn''t be using ini_set for ''sendmail_from'' - that''s just a
default value. Rather, you should be using the From: header in your
mail() command to set who it is from.

If you were able to get one email sent to hotmail, then you are able to
connect to an MTA. But is this MTA set up to limit the number of emails
sent in a certain period of time?

Additionally, how do you know the email didn''t get sent? If you''re
checking to see if it has been received, that''s not accurate. It could
have been dumped by the receiving email system as spam, for instance.

The code you''re using would be a big help in helping with your problem.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这是我的代码

This is my code


EMail =" nk ****** @ must.edu.eg" ;

EMail="nk******@must.edu.eg";


这篇关于PHP mail()函数问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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