Re: phpmailer and spam




noone wrote:
julian_m wrote:
I'm using phpmailer class (http://phpmailer.sourceforge.net) to send
mails from my site, but i can't figure out why those mails are seen as
spam by yahoo and hotmail. Gmail seems to look them better and allows
them to stay in "inbox" folder.
Are there any thing I can do about that?

sdos - jm



mine works... how do you have your mail_inc.php configured?

class my_phpmailer extends phpmailer {
// Set default variables for all new objects
var $From = "myaddress@xxxxxxxxxxxx";
var $FromName = "My Name";
var $Host = "smtp.myISP.com";
var $Port = 25;
var $Mailer = "smtp"; // Alternative to IsSMTP()
var $SMTPAuth = true;
var $Username = "myispusername";



require("class.phpmailer.php");

$mail = new PHPMailer();


$mail->IsSMTP();
$mail->Host = "localhost";
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "my user"; // SMTP username
$mail->Password = "my pass"; // SMTP password

$mail->From = "my email";
$mail->FromName = "my name";
$mail->AddAddress("whatever@mail", "name");
$mail->AddReplyTo("myemail");

$mail->WordWrap = 50; // set word wrap
to 50 characters
$mail->IsHTML(true); // set email
format to HTML

$mail->Subject = "Here is the subject";
$mail->Body = "This is the HTML message body <b>in bold!</b>";
$mail->AltBody = "This is the body in plain text for non-HTML mail
clients";

if(!$mail->Send())
{
echo "Message could not be sent. <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}

echo "Message has been sent";
?>

I'm not sure what do you mean with -"mail_inc.php". I don't have any
file like that...

regards - jm

.



Relevant Pages

  • Re: sending & receiving message to hotmailgmail problem
    ... I have now solved the problem of sending mails to yahoo, hotmail, gmail. ...
    (microsoft.public.exchange.admin)
  • Re: Using Web mail (hotmail, gmail, yahoo, etc) for Business mails
    ... Using Web mail (hotmail, gmail, yahoo, etc) for Business mails ...
    (Security-Basics)
  • Re: mails are not going to yahooo domain
    ... > i have PTR records in my DNS, where as my mails are going to hotmail and ... >gmail where as today i get an error is " This is an automatically generated ... >my msgs are being delayed why it is happening where the mails are stucking ... >in the network where as mails are going to hotmail and gmail plzzz help me ...
    (microsoft.public.exchange.admin)
  • Re: Checked checkboxes
    ... As I mentioned in other mails ... during the ride, I am not so familiar with Javasript, that I can decide ... var e = document.getElementsByName; // Following Dave's advice ... without even the implied warranty of merchantability ...
    (microsoft.public.scripting.jscript)
  • Re: phpmailer and spam
    ... mails from my site, but i can't figure out why those mails are seen as ... Gmail seems to look them better and allows ... var $SMTPAuth = true; ... I require the password at email compose time to reduce the possibility of my site being used to forge emails to others.. ...
    (comp.lang.php)