Reply to Re: Problems with "mail" function

Your name:

Reply:


Posted by lvaro G. Vicario on 08/23/07 21:44

laredotornado@zipmail.com escribió:
> I cannot seem to send emails. What does it mean when the return value
> from the "mail" function is an empty string?

I suggest you var_dump() the return value rather than using echo.


> $headers = "MIME-Version: 1.0\n"
> . "Content-type: text/plain;
> charset=iso-8859-1\n"
> . "Content-Transfer-Encoding: 7bit\n"
> . "From: $p_from\n"
> . "X-Mailer: PHP " . phpversion() .
> "\n"
> . "Reply-to: $p_from";

I suggest you examine the actual value of $headers.

Anyway, if there aren't any obvious errors in your code, you host may
have some requirements about the emails it'll accept, such us using a
specific e-mail address as sender. Start debugging with the simplest
test script you can write. You'll have time later to add complex headers
and attachments.



--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor austrohúngaro: http://www.demogracia.com
--

[Back to original 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

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