note 80744 deleted from function.mail by danbrown

From: Date: Sat, 25 Apr 2009 14:56:49 +0000
Subject: note 80744 deleted from function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153727@lists.php.net to get a copy of this message
Note Submitter: apdhanushka at yahoo dot com ---- Are you getting spammed while sendig emails using php mail() function to yahoo or hotmail? It is a common problem for all using php mail function. To solve this there are so many answers I have seen in the internet and they do not hit problem correctly. Actually the problem here is if we send mails using php mail function we do not have a signature and other mailing systems thinks that we are spamers. So the solution is using a free remote smtp host like gmail to send our mails. It is not hard because we have a free php smtp project called PHPMailer. You can download it from http://sourceforge.net/project/showfiles.php?group_id=26031. You do not need to install it on your server and you can upload it to the server with your code. It is very easy to understand how it is used to send mails using examples zipped with PHPMailer. The following code is to send emails using gmail and to do that you have to have a gmail mail account. Which can easily be created by visiting http://gmail.com. Your mails will send using that mail account and they will never become spams... You can follow the following link to get the code to send emails using gmail's free smtp service. http://bestdeveloper.blogspot.com/

« previous php.notes (#153727) next »