HI to all,
I downloaded the Php Mailer Function, I embedded it to my Feedback page, It is not giving any error, But the mail is not going, I don't no where i gone wrong...Please help me in this..
If not check it in this link..
I downloaded the Php Mailer Function, I embedded it to my Feedback page, It is not giving any error, But the mail is not going, I don't no where i gone wrong...Please help me in this..
Code:
require_once('class.phpmailer.php');
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
$mail_date = date("d-m-Y");
$body = file_get_contents('contents.html');
$body = eregi_replace("[\]",'',$body);
$mail = new PHPMailer(); // defaults to using php "mail()"
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.bizmail.yahoo.com"; // sets GMAIL as the SMTP server
$mail->Port = 465;
$mail->Username = "username";
$mail->Password = "password";
$mail->IsHTML(true);
$mail->SetFrom($Email, $Name);
$address = "swd@eitech.in";
$mail->AddAddress($address, "vivek");
$mail->Subject = "PHPMailer Test Subject via mail(), basic";
//$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->MsgHTML($body);
echo "<br/><center><style='font-size:1.2em;color:#0557A9;'>Thank You For Sending The Feedback To Us,<br/>We Will Get Back To You With A solution To Your Query.</center><br/>";
Comment