http://ca.php.net/manual/en/function.mail.php
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.
The above is from php documentation.
My questions are:
1) do i need to change my old php mail() codes to use gmail as smtp?
2) now i am using qmail as smtp, and my php mail() has \r\n, and it caused the problems that html email messed up. If I use gmail as my smtp for my php mail(), do I still have to change all my \r\n to \n?
3) what is your experience with the above approach? every advices will be appreciated.
4) what is the catch, if I use gmail as remote smtp for my php mail()? Do they add some ads?
Thanks!