You are here: Re: Problem using mail() when sending to hotmail/gmail... « PHP Programming Language « IT news, forums, messages
Re: Problem using mail() when sending to hotmail/gmail...

Posted by flowover on 01/05/08 12:44

On Jan 5, 3:32 am, Hush <ke...@skummer.com> wrote:
> Hi,
>
> php beginner here...
> I'm having some trouble sending mail with php to hotmail/gmail
> accounts. Other domains work fine (recieved email after 2 minutes).
> Hotmail accounts do not receive the mail at all.
>
> Does anyone have any experience/solution to this issue?
>
> My code is below:
>
> $message = "Click this (exact) link for activation: $link";
> $message = wordwrap($message, 70);
> $headers = "From: supp...@xxx.com\n";
> $headers .= "MIME-Version: 1.0\n";
> $headers .= "Content-type: text/html; charset=iso-8859-1\n";
> $headers .= "Reply-To: Support <supp...@xxx.com>\n";
> $headers .= "X-Priority: 1\n";
> $headers .= "X-MSMail-Priority: High\n";
> $headers .= "X-Mailer: My mailer";
>
> mail($email,$subject,$message,$headers);
>
> the $email variable is declared outside this code. And works fine.
>
> Regards,
>
> Hush

Gmail doesn't like carriage returns (\r) at all. This could be
related? Here's a discussion I found regarding it.
http://www.bigroom.co.uk/blog/php-mail-and-gmail

 

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

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