phpmailer and spam

This is a discussion on phpmailer and spam within the PHP Language forums, part of the PHP Programming Forums category; I'm using phpmailer class (http://phpmailer.sourceforge.net) to send mails from my site, but i can't figure ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-04-2006
julian_m
 
Posts: n/a
Default phpmailer and spam

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

Reply With Quote
  #2 (permalink)  
Old 03-05-2006
noone
 
Posts: n/a
Default Re: phpmailer and spam

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@mydomain.com";
var $FromName = "My Name";
var $Host = "smtp.myISP.com";
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....
Reply With Quote
  #3 (permalink)  
Old 03-05-2006
julian_m
 
Posts: n/a
Default 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@mydomain.com";
> 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

Reply With Quote
  #4 (permalink)  
Old 03-05-2006
noone
 
Posts: n/a
Default Re: phpmailer and spam

julian_m wrote:
> 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?


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


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.

>
> regards - jm
>


Okay...

Unless
A) you are using your ISP's SMTP {authenticated} server to send the mail

OR

B) {you have a registered domain name
AND
you have a static IP
AND
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.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0