View Full Version : Getting Through Hotmail
atomicnuke
03-15-2006, 03:27 PM
Has anyone used phpmailer I'm trying to figure how to set it up. Not sure how to change the php.ini file for it.
atomicnuke
03-20-2006, 09:21 PM
Just a bump, because I'd really like to learn how to set it up and use it.
areidmtm
03-21-2006, 07:27 AM
see http://phpmailer.sourceforge.net/ I use it, and I didn't have to change my php.ini file
atomicnuke
03-21-2006, 11:33 AM
Guess it was this I saw in the installation "Copy class.phpmailer.php into your php.ini include_path." But didn't see the ini_set command that could do the same thing.
atomicnuke
03-21-2006, 07:02 PM
see http://phpmailer.sourceforge.net/ I use it, and I didn't have to change my php.ini file
How did you set it up? I'm still showing as spam to hotmail, do you use smtp in the phpmailer?
areidmtm
03-21-2006, 07:44 PM
The phpmailer.php and smtp.php I left the same. As for sending the email.... $mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $domain;
$mail->SMTPAuth = true;
$mail->Username = $emailUsername;
$mail->Password = $emailPassword;
$mail->From = $fromEmail;
$mail->FromName = $fromName;
$mail->AddAddress($webmasterEmail, $webmasterName);
$mail->WordWrap = 50;
$mail->IsHTML(true);
$mail->Subject = "New Website Suggestion / Comment";
$mail->Body = "New Website Suggestion / Comment!<p>";
$mail->Body .= "Suggestion / Comment below:<br>";
$mail->Body .= "<b>Name:</b> " . $_GET['name'] . "<br>";
$mail->Body .= "<b>Email:</b> " . $_GET['email'] . "<br>";
$mail->Body .= "<b>Suggestion / Comment:</b><br>";
$mail->Body .= $_GET['sugcom'] . "<br>";
if(!$mail->Send()) {
echo "Message could not be sent. <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
Although, I have never tested it out with hotmail
atomicnuke
03-21-2006, 07:58 PM
$mail->IsSMTP();
$mail->Host = $domain;
$mail->SMTPAuth = true;
$mail->Username = $emailUsername;
$mail->Password = $emailPassword;
This is the part I'm interested in, can you give me an example of what goes there instead of variables?
areidmtm
03-21-2006, 08:12 PM
$mail->IsSMTP();
$mail->Host = "mail.yourdomain.com";
$mail->SMTPAuth = true;
$mail->Username = "username@yourdomain.com";
$mail->Password = "Email Password Here";
Also, I just tested this out with hotmail, and sure enough, it ended up in the junkmail....hummm, you might want to try the other sending methods. Such as
$mail->IsMail();
$mail->IsSendmail();
$mail->IsQmail();
And try using $mail->SMTPAuth = false; See if those do anything
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.