Alright so here is the deal... I am coding a site that is going to require an email sent to the user after they have completed their membership payment. This email is going to give them their 'activation link' within it. So I decided to try and plugin class.phpmailer.php Im definitely having some troubles with it and need to address them. Ive been working on this for a couple of hours and it's only getting me more and more frustrated because I can't seem to get it to work right. The problem I am having is the email is usually doing one of two things: 1.) Being tagged as spam 2.) Being tagged as spam and being delayed So in my call to use phpmailer I have this: $mail = new PHPMailer(); $mail->IsMail(); // telling the class to use SMTP $mail->Host = "XXXX.com"; // SMTP server $mail->From = "accounts@XXXXX.com"; $mail->AddAddress("{$_SESSION['user_email']}"); $mail->Subject = "[Activation Required] XXXX.com"; $mail->Body = "Below you will find your link to activate your account.\n\n"; $mail->Body .= "The are details of your account:\n"; $mail->Body .= "-----------------------------------------\n"; $mail->Body .= "Registration Name: " . $_SESSION['login'] . "\n"; $mail->Body .= "Registration E-mail: " . $_SESSION['user_email'] . "\n"; $mail->Body .= "-----------------------------------------\n\n"; $mail->Body .= "Your activation link:\n"; $mail->Body .= "----------------------------\n"; $mail->Body .= "http://www.XXXX.com/activate.php?do=" . $maxid . "&y=" . $e_user; $mail->Body .= "\n"; $mail->Body .= "-----------------------------------------------\n\n"; $mail->Body .= "\nUser's IP Address: " . $_SERVER['REMOTE_ADDR']; $mail->WordWrap = 110; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } } else { echo 'something went wrong!'; } PHP: The results Im getting are something like this: (see notes throughout this) X-Priority: 3 X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="iso-8859-1" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.XXXX.com <---- these two are different X-AntiAbuse: Original Domain - CCCC.com <---- these two are different X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - XXXXX.com X-Assp-Delay: delayed for 11m 51s; 9 Aug 2008 21:45:41 +0300 X-Assp-Message-Score: -20 (206.71.150 in griplist < 0,1) X-Assp-Message-Score: 20 (Bad IP History) X-Assp-Message/IP-Score: 10 (PTR missing) X-Assp-Received-SPF: none (cache) ip=206.71.150.139 mailfrom=accounts@XXXX.com helo=server.XXXX.com X-Assp-Message/IP-Score: 2.5 (Bayesian Probability: 1.0000) X-Assp-Penalty: totalscore for (SERVER IP) is 125, last penalty was 'Bayesian' X-Assp-Spam-Prob: 1.00000 X-Assp-Spam-Level: *************** X-Assp-Tag: Penalty X-Assp-Envelope-From: accounts@XXXX.com X-Assp-Intended-For: mikef@CCCC.com X-Assp-Version: 1.3.9.1 X-Assp-Spam: YES X-Assp-Original-Subject: Activation Required XXXX com X-Assp-Spam-Reason: Totalscore for 206.71.150.139 is 125, last penalty was 'Bayesian' X-Assp-Message-Totalscore: 12.5 Code (markup): It's really driving me nuts and I just need this thing to drop into an email box normally. Can someone help me out with this or maybe even recommend an easier class that i can get to mail() with that isn't throwing a 12.5 on the Spam Richter Scale?!!! Pm responses are great cuz I keep my mail tab open and I will be closing this tab. So I will see the new email for a pm response! Thanks in advance and hopefully we can work this out. I may be able to offer something up!
its not the script that sends it to the spam box, its the content and the server you are sending from...