By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

any one give solution

P: n/a
KK
<?php
$to="id********@gmail.com";
$from="kk";
$sub="hi";
$mess="any one help";
error_reporting(E_ERROR | E_WARNING | E_PARSE);
mail($to, $sub, $mess, $from);
?>
this my email script but i got error "server failed" at line 7

May 16 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 16 May, 07:37, KK <iddkart...@gmail.comwrote:
<?php
$to="iddkart...@gmail.com";
$from="kk";
$sub="hi";
$mess="any one help";
error_reporting(E_ERROR | E_WARNING | E_PARSE);
mail($to, $sub, $mess, $from);

?>
this my email script but i got error "server failed" at line 7
The From isnt a valid email address sender - try changing kk to your
email address.

May 16 '07 #2

P: n/a
*** KK escribió/wrote (15 May 2007 23:37:55 -0700):
$to="id********@gmail.com";
$from="kk";
$sub="hi";
$mess="any one help";
error_reporting(E_ERROR | E_WARNING | E_PARSE);
mail($to, $sub, $mess, $from);
This is the function syntax:

bool mail ( string to, string subject, string message [, string
additional_headers [, string additional_parameters]] )
In the fourth parameter, additional_headers, you can provide additional
headers in the form:

"Header-Name: Header value\nAnother-Header: Another value"

"kk" is not a valid header.

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
May 17 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.