Thứ Ba, 17 tháng 6, 2014

Mail fix cho tất cả các mail

** upload classes
../classes/class.phpmailer.php
../classes/class.pop3.php
../classes/class.smtp.php
** upload includes / functions / mainfile.php
function.txt  ---- đưa vào file mainfile.php
function send_mail_test($me="",$you="",$title="",$content=""){
}
** action vào file muốn sử dụng
 ## trứoc tiên include 2 file cần sử dụng
include("classes/class.phpmailer.php");
include("includes/data/mail_config.php");

## truyền biến và ứng dụng gởi mail
 send_mail_test($from_email,$mail_email,$subject,$body);
  send_mail_test("tên người gởi","tên admin nhận mail","tiêu đề","thông tin gởi");

links downloadtại đây

**** kiểm tra mail gửi được không && gởi ngựợc lại cho khách hàng  
           
 require("".INCLUDE_PATH."classes/class.phpmailer.php");
 require("".INCLUDE_PATH."includes/data/mail_config.php");

  $body= $subject.'<br />'.$message.'<br /><br />Name: '.$from_name.'<br />Company: '.$sender_company.'<br />Email: '.$from_email.'<br />Phone: '.$phone.'<br />Adress: '.$address.'<br /><br /><br /><br />'.$content.'<br /><br /><br /><br />Notes:'.$nukeurl;
    if(send_mail_test($from_email,$mail_email,$subject,$body)
&&send_mail_test($from_email,$mail_email,$subject,$body)){
                echo "done";
            }else{   
                echo "error";          

}
   echo $from_email,$mail_email,$subject,$body;
            die;
    include ("header.php");
        echo "<center><b>"._MSG_OK."</b></center>";
    include("footer.php")

links website:ruvistar.com --- dathang

Không có nhận xét nào:

Đăng nhận xét