You are here: Using mail() and avoiding spam boxes ! « PHP Programming Language « IT news, forums, messages
Using mail() and avoiding spam boxes !

Posted by Leon on 02/08/07 22:25

Hi All,

Im using the mail() command to send an email to people who register on
my site, but many are ending up in people's spam boxes on hotmail.

This problem isn't true of all users - probably around 60%.

Im being as open as possible using a number of headers, but can anyone
suggest a way of getting through with less problems ?

$sender = "From: Name <email@domain.com>" . "\n";
$sender .= "Return-Path: email@domain.com" . "\n";
$sender .= "MIME-Version: 1.0" . "\n";
$sender .= "Content-Type: text/plain; charset=iso-8859-1" . "\n";
$sender .= "Content-Transfer-Encoding: 8bit" . "\n";
$sender .= "X-Mailer: PHP/" . phpversion();

Thanks for any help !

Leon

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация