Chinaunix
标题:
[邮件] 通过PHP发送邮件的问题!!!!
[打印本页]
作者:
okchina
时间:
2005-09-21 16:28
标题:
[邮件] 通过PHP发送邮件的问题!!!!
语句:
mail($reciever_name . " <" . $reciever_email . ">;", $subject, $message, $headers);
问题如下:
1)不能发送CC,&BCC的邮件,地址肯定没有问题
2)Sender没有办法认证, 这样就有可能冒名发送,有什么办法?
3)只能输入文本内容,不知道能不能发送HTML内容的邮件.
谢谢赐教!!!
作者:
HonestQiao
时间:
2005-09-21 17:15
标题:
[邮件] 通过PHP发送邮件的问题!!!!
http://bbs.chinaunix.net/forum/viewtopic.php?t=358954
作者:
macaronl
时间:
2006-05-02 14:16
标题:
请教pear::send发送邮件问题
我下了最新版本的pear:mail,我写的程序如下。
<?php
include('Mail.php');
$recipients = '
qiangxiao_cn@163.com
';
$headers['From'] = '
qiangxiao_cn@yahoo.com.cn
';
$headers['To'] = '
qiangxiao_cn@163.com
';
$headers['Subject'] = 'Test message';
$body = 'Test message';
$params["host"] ="smtp.yahoo.com.cn";
$params["port"]="25";
$params["auth"] =true;
$params["username"] ="qiangxiao_cn";
$params["password"] ="*********"; //不能告诉你
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);
$mail_object->send($recipients, $headers, $body);
?>
我觉得没有什么错,运行也没有错,就是邮箱里什么也没有,为什么阿
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2