Jump to content

Email delivery failing - going to spam or into nothing


Recommended Posts

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

 

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?

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?

 

 

 

 

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!

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.