ok
Direktori : /proc/self/root/home2/selectio/www/mm-tailor-billing/hrm/mail/ |
Current File : //proc/self/root/home2/selectio/www/mm-tailor-billing/hrm/mail/mail.php |
<?php if($_GET['action']=='email') { echo ('Working<br>'); //echo "Email send successfully!!"; //error_reporting(E_ALL ^ E_DEPRECATED); include_once('PHPMailer/class.phpmailer.php'); require('PHPMailer/PHPMailerAutoload.php'); $body='gueufguyref'; $send_email="musthafa.md727@gmail.com"; $mail = new PHPMailer; $mail->CharSet = 'UTF-8'; $mail->IsMAIL(); $mail->IsSMTP(); $mail->SMTPAutoTLS = true; /*godaddy $mail->Host = 'localhost'; $mail->SMTPAuth = false; $mail->SMTPAutoTLS = false; $mail->Port = 25; */ $mail->Host = "ssl://smtp.gmail.com"; $mail->SMTPAuth = true; $mail->Username = "lagtechpro@gmail.com"; // SMTP username $mail->Password = ""; $email="lagtechpro@gmail.com"; // Recipients email ID $name="My Name"; $mail->Port = 465; $mail->Subject = "Asubjecttment"; $mail->From = "lagtechpro@gmail.com"; $mail->FromName = "Ptestcontact foamt"; $mail->IsHTML(true); $mail->AddAddress($send_email); // To mail id //$mail->AddCC('info.shinerweb@gmail.com'); // Cc mail id $mail->AddBCC('musthafa.md127@gmail.com'); // Bcc mail id $mail->SMTPDebug = SMTP::DEBUG_SERVER; //$mail->AddAttachment($file_location.$file_name); $mail->MsgHTML ($body); $mail->WordWrap = 50; $mail->Send(); $mail->SmtpClose(); if($mail->IsError()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent!"; header("location: index send.php"); }; }?>