phpmailer and spam

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm using phpmailer class ( ) 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

Re: phpmailer and spam

julian_m wrote:
Quoted text here. Click to load it

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     = "";
     var $FromName = "My Name";
     var $Host     = "";
     var $Port     = 25;
     var $Mailer   = "smtp";      // Alternative to IsSMTP()
     var $SMTPAuth = true;
     var $Username = "myispusername";

I require the password at email compose time to reduce the possibility  
of my site being used to forge emails to others.. not entirely secure  
but much better....

Re: phpmailer and spam

noone wrote:
Quoted text here. Click to load it


$mail = new PHPMailer();

$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->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

   echo "Message could not be sent. <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;

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

Re: phpmailer and spam

julian_m wrote:
Quoted text here. Click to load it

<stuff snipped>
Quoted text here. Click to load it

When I downloaded phpmailer this was how it was configured and if I  
wanted to use authenticated then these variables were defined in this file.

Quoted text here. Click to load it


A) you are using your ISP's SMTP server to send the mail


B) {you have a registered domain name
     you have a static IP
     your Reverse-IP lookup translates to your domain
     name/host (not your ISP's DSL/Cable IP address pool)

then the receiving server **assumes** you are a spammer and either  
rejects the email out-right (as best I can tell, AOL does this) or
marks it as JUNK/SPAM etc...

I use ZONEEDIT as a dynamic DNS provider and I have this problem -that  
is why my authenticated server points to my ISP's smtp server.  But I am  
not in the spam/newsletter/mass-mailing business so that is okay.

Site Timeline