[英]Failed to connect to mailserver at “localhost” port 25
我有一點問題。
當我點擊發送到我的聯系表單時,我收到以下警告:
Warning: mail() [function.mail]:
Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
我使用64位Win7,但我不知道我應該設置什么才能使這項工作。
在php.ini文件中,您可以配置要使用的郵件服務器:
[mail function]
SMTP = mymailserver.example.com
或者,您可以按照此處所述安裝本地郵件服務器: http : //www.php.net/manual/en/ref.mail.php#77499
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.