欧美日韩1234-岳两女共夫互换观看视频-日本不卡一区二区-gogogo高清国语完整-国产区在线-狠久久-男男互操视频-另类国产-欧美人与禽猛交乱配视频-欧美另类一区-久久成人在线视频-国产一级片av-青青草视频播放-欧美三级黄-日日射天天射-在线国产欧美-日韩永久-国产黄色成人-伊人三区-国产午夜精品理论片-999精彩视频-免费看av软件-欧美xxxx喷水-国产蜜臀-美女四肢被绑在床扒衣-日本公妇乱淫-99久久久国产精品无码性

027-81331413

windows下xampp發(fā)郵件的配置方法

發(fā)布時(shí)間:2013-01-24 瀏覽:3903

1  php.ini

SMTP =smtp.126.com
smtp_prot =25
sendmail_from = xxxx@126.com
sendmail_path = "D:\xampp\sendmail\sendmail.exe -t"

2  D:\xampp\sendmail\sendmail.ini

smtp_server=smtp.126.com
error_logfile=error.log
debug_logfile=debug.log

auth_username=xxxx@126.com
auth_password=mailpassworld
force_sender=xxxx@126.com

<?php
$txt = "First line of text\nSecond line of text";
$txt = wordwrap($txt,70);
//$v = mail("subject",$txt);
//var_dump($v);

$from_name = "Justrealized";
$from_email = "";
$headers = "From: $from_name <$from_email>";
$body = "Hi, \nThis is a test mail from $from_name <$from_email>.";
$subject = "Test mail from Justrealized";
$to = "";

if (mail($to, $subject, $body, $headers)) {
  echo "success!";
} else {
  echo "fail…";
}

?>