Click here to Skip to main content
16,016,580 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am creating a mail application which sends Email contains 1 Image(size-500KB). The mail is always going in spam folder and it always ask to 'Display Image Below'. I am also inserting all the necessary Headers which is:

PHP
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "Reply-To: webmaster@example.com" . "\r\n" .
$headers .= "X-Mailer: PHP/" . phpversion();
mail($to,$subject,$message,$headers);


How do i prevent mail going in Spam and Image should display without clicking 'Display Image Below'?
Thanx
Posted
Comments
Richard MacCutchan 19-Jul-13 6:06am    
You can't. It is up to the person who receives the message to get his provider to accept the message as valid. Different providers have different rules for identifying spam messages.
Bernhard Hiller 19-Jul-13 10:31am    
When you add the image as an attached zipped file, chances are lower for being marked as spam - but can still happen.

1 solution

It has nothing to do with your application. A receiver of your mail has a spam filter which is tuned this way. If this is yours, fix the filtering settings or remove the filter. If it's not yours, you have no access to it.

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 19-Jul-13 19:38pm    
5'ed!
Sergey Alexandrovich Kryukov 19-Jul-13 20:26pm    
Thank you, Espen.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900