回首页

后一页
前一页
用linux下的php3发E-MAIL

必须先配制sendmail,然后可以用以下两种方法:
1.直接用mail函数
2.调用sendmail
exec("/usr/lib/sendmail -t << END
From: xxx@xxx.com
To: xxx@xx.com
Cc: ...,...,...,...
Bcc: ...,...,...,...
Subject: xxxxx
xxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
xxxxxxxx
.
END
");

(linger于1999-08-09上载)

后一页
前一页

回首页