foobaa Posted July 22, 2007 Share Posted July 22, 2007 Hi, Sorry if this post is in the wrong area. For the nth time I'm stuck in front of a server which won't send email. (It seems to be something different everytime) - I'm sure some of you will have the same experience!! I don't know what I'm doing, and have just followed any tutorials that I could. My progress: SPF - fine, as far as I'm aware, I've never had to change this before - default setting with my 3rd party are always ok. rDNS - same as above Spam lists - clear And I can't see anything wrong with the headers below. Any help would be much appreciated! Delivered-To: [email protected] Received: by 10.115.77.8 with SMTP id e8cs902135wal; Sun, 22 Jul 2007 05:36:17 -0700 (PDT) Received: by 10.86.79.19 with SMTP id c19mr1718448fgb.1185107776816; Sun, 22 Jul 2007 05:36:16 -0700 (PDT) Return-Path: <[email protected]> Received: from leg (82-68-11-181.dsl.in-addr.zen.co.uk [82.68.11.181]) by mx.google.com with ESMTP id k9si16610822nfh.2007.07.22.05.36.12; Sun, 22 Jul 2007 05:36:16 -0700 (PDT) Received-SPF: neutral (google.com: 82.68.11.181 is neither permitted nor denied by best guess record for domain of [email protected]) Received: from [82.68.11.181] by leg (ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.8.2)); Sun, 22 Jul 2007 13:35:38 +0100 Received: from [82.68.11.178] by leg with SMTP (EHLO localhost) (ArGoSoft Mail Server Pro for WinNT/2000/XP, Version 1.8 (1.8.8.2)); Sun, 22 Jul 2007 13:35:37 +0100 Received: by localhost (Postfix, from userid 33) id 001B850941; Sun, 22 Jul 2007 13:36:07 +0100 (BST) To: [email protected] Subject: Here is the subject Date: Sun, 22 Jul 2007 13:36:07 +0100 From: Mailer <[email protected]> Message-ID: <[email protected]> X-Priority: 3 X-Mailer: PHPMailer [version 1.73] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-Path: <[email protected]> This is the message body Please work please work please work http://logicsmiths.co.uk Quote Link to comment https://forums.phpfreaks.com/topic/61225-email-not-getting-through-spam-filters/ Share on other sites More sharing options...
redarrow Posted July 22, 2007 Share Posted July 22, 2007 it isp way to stop spam for everyone post ur current email code. Quote Link to comment https://forums.phpfreaks.com/topic/61225-email-not-getting-through-spam-filters/#findComment-304614 Share on other sites More sharing options...
foobaa Posted July 22, 2007 Author Share Posted July 22, 2007 I've tried with mail('[email protected]','Test','Test','From: [email protected]') and with phpmailer: <?php require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->From = "[email protected]"; $mail->FromName = "Mailer"; $mail->AddAddress("[email protected]"); // name is optional $mail->Subject = "Here is the subject"; $mail->Body = "This is the message body Please work please work please work http://logicsmiths.co.uk "; if(!$mail->Send()) { echo "Message could not be sent. <p>"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Message has been sent"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/61225-email-not-getting-through-spam-filters/#findComment-304622 Share on other sites More sharing options...
redarrow Posted July 22, 2007 Share Posted July 22, 2007 i use this one try it m8. <?php $to = '[email protected]'; $subject = 'Wakeup bob!'; $message = '<b>yo</b>, whassup?'; $headers = "From: [email protected]\r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n"; // Send mail($to, $subject, $message, $headers); ?> Quote Link to comment https://forums.phpfreaks.com/topic/61225-email-not-getting-through-spam-filters/#findComment-304624 Share on other sites More sharing options...
foobaa Posted July 22, 2007 Author Share Posted July 22, 2007 Thanks - no luck sadly. My server's using postfix by the way. (changed your \r\n's to \n) but still goes to the spam. Code tried this time: <?php $to = '[email protected]'; $subject = 'Wakeup bob!'; $message = '<b>yo</b>, whassup?'; $headers = "From: [email protected]\n" . 'X-Mailer: PHP/' . phpversion() . "\n" . "MIME-Version: 1.0\n" . "Content-Type: text/html; charset=utf-8\n" . "Content-Transfer-Encoding: 8bit\n\n"; // Send mail($to, $subject, $message, $headers); ?> Quote Link to comment https://forums.phpfreaks.com/topic/61225-email-not-getting-through-spam-filters/#findComment-304633 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.