foobaa Posted December 19, 2007 Share Posted December 19, 2007 Hi, I'm losing hair over trying to get getting emails to inboxes. I'm not doing anything spammy other than occasionally using html emails, embedded images and words like "free". I've tried using the native mail(), as well as the phpMailer package out there, even writing to a file and giving that to sendmail - no result. I'm not on any spam blacklists. Please would someone help me resolve this? Perhaps if someone could lend me use of their spamAssassin installation so that I can find out what is suspicious about my emails? Any help at all greatly appreciated!! All the best, Jody Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 19, 2007 Share Posted December 19, 2007 Are the emails failing to arrive at all or are they going into the spam/junk folder? Your title and post are not clear what is happening. Also, is this problem with all receiving email systems or just for some? Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/#findComment-418363 Share on other sites More sharing options...
foobaa Posted December 19, 2007 Author Share Posted December 19, 2007 Hi, Thanks for your reply, I'll try to give more info! I tried sending to a gmail account, a hotmail account, and two different corporate email address, all fail. I've been messing around so much I've lost track of what I've tried, (half the problem no doubt). But I'm convinced my email is sending because it appears in at least one spam box, even if for the other email address it fails to arrive at all. Doing a test now: - I wish I could say why, but gmail now seems to be accepting the emails, html attachments and all! - hotmail sends to spam - I can't test elsewhere at the moment but for one instance I get a returned "User Not Found" mail delivery status, even though I know that the email address exists and is in use - I take it this is a trick to deceive spammers? So at the moment the only testing mechanism I have is to see if it gets through hotmail's spam filter. I know I haven't been very forthcoming with useful information!! Let me know if post the spf record, or the email with headers if that would help? Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/#findComment-418429 Share on other sites More sharing options...
kenrbnsn Posted December 19, 2007 Share Posted December 19, 2007 Please post the code you're using to send the mail. Ken Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/#findComment-418430 Share on other sites More sharing options...
foobaa Posted December 19, 2007 Author Share Posted December 19, 2007 I get the same results whether I use <?php mail('jodyflorian@hotmail.com','Test Email','Lets see where this email goes'); ?> Done I've also tried phpmailer <?php require("../PHPMailer_v2.0.0/class.phpmailer.php"); $mail = new PHPMailer(); $mail->From = "jody@logicsmiths.co.uk"; $mail->FromName = "Jody Florian"; $mail->AddAddress("jodyflorian@hotmail.com"); $mail->Subject = "Test Email"; $mail->Body = "Test to see how well this gets through."; $mail->send(); ?> Done <?php $email = 'jodyflorian@hotmail.com'; $subject = "It's been a while! How's your email delivery going?"; $msg = 'Come on, work!!!'; $from = "From: \"Jody Florian\" <jody@logicsmiths.co.uk>"; $fd = popen("/usr/sbin/sendmail -t","w"); fputs($fd, "To: $email\n"); fputs($fd, "$from\n"); fputs($fd, "Subject: $subject\n"); fputs($fd, "$msg\n"); pclose($fd); ?> Done I've also tried sending through gmail's smtp service, using phpMailer. It gets through to hotmail and gmail's inboxes, but if I remember it failed to reach at least one corporate email address entirely, and the other address either failed entirely or went to spam. So for reference: <?php require_once('../gmailer.class.php'); $mail = new GmailMailer(); $mail->Username = 'jody.florian@gmail.com'; $mail->Password = '*******'; $mail->FromName = 'Jody Florian'; $mail->From = "jody@logicsmiths.co.uk"; $mail->AddAddress('jodyflorian@hotmail.com'); $mail->Body = "Testing Gmailer, see how far it gets"; $mail->Subject = "Gmailer test - where did it go"; if ( !$mail->send_email() ) trigger_error('Email failed', E_USER_WARNING); ?> Done I hope this hasn't just confused things now! Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/#findComment-418459 Share on other sites More sharing options...
foobaa Posted December 19, 2007 Author Share Posted December 19, 2007 PS. all the above code also sends mail to Yahoo's spam box Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/#findComment-418801 Share on other sites More sharing options...
kenrbnsn Posted December 19, 2007 Share Posted December 19, 2007 Try using the 4th and 5th parameters to the regular mail() function: <?php mail('jodyflorian@hotmail.com','Test Email','Lets see where this email goes','From: jody@logicsmiths.co.uk','-f jody@logicsmiths.co.uk'); ?> Ken Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/#findComment-418865 Share on other sites More sharing options...
hamza Posted December 19, 2007 Share Posted December 19, 2007 foobaa please tell me if i want to send email using php5 Than what changes i must have to made in php.ini tell me the changes And about the phpmail calss i just want to send simple mail to my gmail thanks Quote Link to comment https://forums.phpfreaks.com/topic/82315-email-delivery-failing-going-to-spam-or-into-nothing/#findComment-419019 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.