如何使用Windows XP上的邮件功能发送电子邮件? [英] How to send email using the mail function on Windows XP?

查看:155
本文介绍了如何使用Windows XP上的邮件功能发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



您好


我使用邮件功能发送这样的邮件:


$ b = mail(" my ******************* @ gmail.com",Hello from PHP,

" Hi ,最后成功发送了一封电子邮件);


但它失败了。你可以指导我让它运作吗?


问候

沃伦

解决方案

< blockquote> b = mail(" my ******************* @ gmail.com"," Hello from PHP",

" ;最后成功发送了一封电子邮件;


但它失败了。你可以指导我让它运作吗?


问候

Warren


WarrenTangescribió:


我使用mail函数发送这样的邮件:


b = mail(" my ******************* @ gmail.com"," Hello from PHP",

"最后成功发送了一封电子邮件);


但它失败了。你可以指导我让它运作吗?



在php.ini文件中找到这些行:


[邮件功能]

;仅适用于Win32。

SMTP = localhost

smtp_port = 25


;仅适用于Win32。

; sendmail_from = me@example.com


您需要安装/启用本地邮件服务器(我相信某些版本

的Windows XP有一个)或替换localhost使用

外部邮件服务器的地址,该服务器可以接受来自您机器的邮件(也许是您的ISP服务器的
)。

- -

- http://alvaro.es - álvaroG。 Vicario - 西班牙布尔戈斯

- Mi sitiosobreprogramaciónweb: http:/ /bits.demogracia.com

- Mi web de humor al ba?oMaría: http://www.demogracia.com

-



Hi

I am using the mail function to send a mail like this:

$b = mail("my*******************@gmail.com", "Hello from PHP",
"Hi, finally sent an email successfully");

But it failed. Could you guide me to get it work?

Regards
Warren

解决方案

b = mail("my*******************@gmail.com", "Hello from PHP",
"Hi, finally sent an email successfully");

But it failed. Could you guide me to get it work?

Regards
Warren


Warren Tang escribió:

I am using the mail function to send a mail like this:


b = mail("my*******************@gmail.com", "Hello from PHP",
"Hi, finally sent an email successfully");

But it failed. Could you guide me to get it work?


Find these lines in your php.ini file:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

You need to install/enable a local mail server (I believe some versions
of Windows XP have one) or replace "localhost" with the address of an
external mail server that would accept mail from your machine (perhaps
your ISP''s server).
--
-- http://alvaro.es - álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al ba?o María: http://www.demogracia.com
--


这篇关于如何使用Windows XP上的邮件功能发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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