Reply to Problems with "mail" function

Your name:

Reply:


Posted by laredotornado@zipmail.com on 08/23/07 16:59

Hi,

I cannot seem to send emails. What does it mean when the return value
from the "mail" function is an empty string? I'm using php 4.3.11 on
a Yahoo! hosting environment. Here is the code:

$p_from = "dalvarado@mydomain.com";
$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";

$retVal = mail("myseconddomain@gmail.com", "Test", "Hello",
$headers);
print "retVal: $retVal<BR>\n";

Any help is appreciated. Here is the configure command from
phpinfo():

'./configure' '--prefix=/usr' '--enable-fastcgi' '--with-config-file-
path=/usr/lib/php' '--enable-memory-limit' '--enable-bcmath' '--enable-
calendar' '--enable-exif' '--enable-mbstring=all' '--enable-mbregex'
'--with-curl' '--with-dom' '--with-dom-xslt' '--with-gdbm' '--with-
gettext' '--with-iconv' '--with-gd' '--with-jpeg-dir' '--with-png-dir'
'--with-tiff-dir' '--with-xpm-dir=/usr/X11R6' '--with-zlib-dir' '--
with-ttf' '--with-freetype-dir' '--with-t1lib' '--enable-gd-native-
ttf' '--with-mcrypt' '--with-mhash' '--with-mime-magic' '--with-ming'
'--with-openssl' '--with-pspell' '--with-regex' '--enable-wddx' '--
with-xmlrpc' '--enable-xslt' '--with-xslt-sablot' '--with-zip' '--
disable-posix'

Thanks, - Dave

[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

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