![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
[php] <?php require_once "Mail/sendmail.php"; $params=array('host'=>'smtp.nightsailer.com','auth'=true, 'username'=>'night','password'=>'123456'); $sendmail = new Mail_sendmail($params); $header = array('Subject'=>'Hello','BCC'=>'test2@hotmail.com'); $body = 'This is a test message from nightsailer.com'; $result = $sendmail->send('test@nightsailer.com', $header, $body); if ( PEAR::isError($result) ){ echo "
发送失败
原因:".$result->getMessage()."
"; }else { echo "
恭喜!发送成功!
"; } ?> [/php] 说是第3句出错 请高手指教 smtp设置已用相关参数代替. apache for win +php5+pear
提问者:小晖 08-17 15:03
答复

