hello eveyone;
i was wondering if somebody has already tried to use phpmailer locally with wamp server . i am trying to this all i could reach is to use the phpmailer without using the smtp functionalities.
// mostly the same variables as before
// ($to_name & $from_name are new, $headers was omitted)
$to_name = "Recipient Name";
$to = "tomail@provider.com";
$subject = "Mail de test at ";
$message = "This is a test.";
$message = wordwrap($message,70);
$from_name = "Sender Name";
$from = "frommail@providerl.com";
this works pretty much good though it send the mail to the spam for hotmail.
but when i add this
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 2; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail
$mail->Host = 'smtp.gmail.com'; // i am trying to use my gmail as an smtp
$mail->Port = 465;
$mail->Username = "mygmail@gmail.com";
$mail->Password = "mygmailpassword";
the truth is that i don't understand a lot in emailing so if anyone could give me some good tutto on smtp's how they work ... and how to configure those values for the phpmailer ,i would really appreciate it.
thanks advanced.
Bookmarks