为什么下列代码无法实现发送邮件?

sangdy 2003-12-31 02:56:36
<?
mail("xx@sina.com","hello","welcome");
?>
*******************
[mail function]
; For Win32 only.
SMTP = SMTP.CITIZ.NET

; For Win32 only.
sendmail_from = FROM:xxx@citiz.net
...全文
93 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sangdy 2003-12-31
  • 打赏
  • 举报
回复
<?
mail(xxxx@sina.com,"hello","welcome");
?>
**********
运行上述代码,出现下列错误提示:
Parse error: parse error, unexpected '@' in C:\httpd\mail.php on line 2
xuzuning 2003-12-31
  • 打赏
  • 举报
回复
sendmail_from = xxx@citiz.net
多菜鸟 2003-12-31
  • 打赏
  • 举报
回复
mail函数在linux下使用的,不能在win下使用。

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧