简体   繁体   English

发送邮件的问题

[英]problems with sending mail

I use local server, and there are some problems with sending mail! 我使用本地服务器,并且发送邮件时出现一些问题!

I think i must change something in my php.ini file. 我认为我必须在php.ini文件中更改某些内容。 can somebody help me? 有人可以帮我吗?

The whole problem in this!!! 整个问题就在这里!!! It doesn't return any error! 它不会返回任何错误! That is why,I'm not able to understand where i wrong?. 这就是为什么,我不明白我在哪里错?

Vague question, vague answer: Use SwiftMailer . 含糊的问题,含糊的答案:使用SwiftMailer

You can find the description of the ini parameters directly influencing php's mail() function at http://php.net/manual/en/mail.configuration.php 您可以在http://php.net/manual/en/mail.configuration.php上找到直接影响php的mail()函数的ini参数的描述。

The problems sending mail fom PHP can be various and many. 从PHP发送邮件的问题可能多种多样。 Maybe you could try to give us a better description of how sending mail fails (eg do you get an error response from calling the mail function within php; is mail not delivered; are you even running a local mailserver or some equivalent library that enables sending off email from the machine). 也许您可以尝试更好地说明发送邮件失败的方式(例如,您是否通过调用php中的mail函数收到错误响应;是否未发送邮件;您是否正在运行本地邮件服务器或启用发送功能的等效库?关闭来自机器的电子邮件)。 Then, it's easier to solve a potential problem at hand. 然后,更容易解决眼前的潜在问题。

Check if sendmail can actually send emails from your local server 检查sendmail是否可以实际从本地服务器发送电子邮件

if not probably it is a problem of firewall. 如果不是,那可能是防火墙的问题。

if sendmail works, then the problems is with php, but in my experience the problem is always with the server. 如果sendmail有效,则问题出在php,但以我的经验,问题始终出在服务器上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM