用linux下的php3发E-MAIL
技巧管理员(2000-12-23 09:18)
〖返回〗〖转发〗
必须先配制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
");