You are here: Problem with Ajax'd Mail() « PHP Programming Language « IT news, forums, messages
Problem with Ajax'd Mail()

Posted by totalstranger on 04/18/06 02:26

I'm hoping someone can help figure out how to stop a message that
appears to be generated by my web host when sending to an non-resolvable
email address that is supported by my web host. Things work correctly
when sending to an invalid e-mail address off my web host .

The message returned is
+:/home/xxxxxx/dead.letter...saved message in /home/xxxxxxx/dead.letter
and it ends up before the data in my return statement which then fails
when my AJAXed javascript chokes attempting to EVAL the result.

I've tried everything I know to capture, discard or suppress the mesaage
including using
Ob_start() before the mail command
with an Ob_end_clean() prior to the return statement.

Here's what currently is coded that also does not work
# kill error display if mail fails
ini_set ( "display_errors", "0" ); #Also tried FALSE
ini_set ( "error_reporting", 0);
if (!@mail($visitormail, $subject, $notes, $hdrs))
{
return "document.getElementById('result_msg').innerHTML= \"Sendmail
has failed.\";
";
}

I admit so being something of a PHP neophyte and any help with this
issue would be appreciated.

Thank you

 

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

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