Jump to content

Recommended Posts

 

I am using a header like this, but still no help ??

 

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: name@mysite.com' . "\r\n";
mail($to_email, $subject, $message, $headers);

 

Any more ideas?

 

Link to comment
https://forums.phpfreaks.com/topic/182856-mails-going-in-spam/#findComment-965150
Share on other sites

 

Ok i got this from other site

 

the recipient’s spam filter checks if all headers exist in sender’s email and since you are using simple mail() function it will be almost with empty header so that means high risk of spam  to solve that problem you need to use some more complicated mailer class

and the best solution is to use gmail account as SMTP relay

 

How can I optimize my header more

Link to comment
https://forums.phpfreaks.com/topic/182856-mails-going-in-spam/#findComment-965153
Share on other sites

I've seen this problem too on my site. I noticed, when the FROM address is too long, name or address ( such as name00000000@mysite.com ) It'll go to spam, but if it short, it wouldn't.

 

As for headers, yours are 100% fine. There is no 'header'. Webhosts us a single SMTP server most of the time, and if that is blacklisted (another site on host sent spam) than yours is affected as well, possibly not being able to be whitelisted.

Link to comment
https://forums.phpfreaks.com/topic/182856-mails-going-in-spam/#findComment-965170
Share on other sites

 

Will making my emails as High priority avoid them from going in 'spam'

 

..
..
..
        $headers = "MIME-Version: 1.0\n" ; 
        $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; 
        $headers .= "X-Priority: 1 (Higuest)\n"; 
        $headers .= "X-MSMail-Priority: High\n"; 
        $headers .= "Importance: High\n"; 

$status   = mail($to, $subject, $message,$headers); 

 

my emails are still going in spam, help me

 

Link to comment
https://forums.phpfreaks.com/topic/182856-mails-going-in-spam/#findComment-967322
Share on other sites

 

In my hosting provider service(godaddy) I have edited my spf value

 

v=spf1 a mx ptr ip4: xx.xx.xxx.xxx  mx:mailstore.server.net mx:smtp.server.net +all

 

My SRV or AAAA records under DNS are still empty. Do I need to edit that too?

 

Link to comment
https://forums.phpfreaks.com/topic/182856-mails-going-in-spam/#findComment-967343
Share on other sites

Spam can be caused from load of server settings, the server that sends the email might be on a national spam database and blocked......

 

if a dns record is incorrect it can be that aswell.

 

if sending a email via php and the dns record don't match the domain name also cause spam.

 

 

emample

 

www.me.com <<< main server with mail server integrated and dns set up correctly.

any word here@me.com <<< will work correctly.

Link to comment
https://forums.phpfreaks.com/topic/182856-mails-going-in-spam/#findComment-967358
Share on other sites

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.