473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

any one give solution

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
2 1142
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
*** 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: mimages | last post by:
I can't figure this out. There are too many differences between my installation of osCommerce and what I read on these forums, and in the contributions' readme files. I have either lost my logical...
9
by: peter | last post by:
Hello all, Recently I've started to refactor my code ...(I'm using python 2.3.4) I tried to add extra functionality to old functions non-intrusively. When I used a construct, which involves...
7
by: Eternally | last post by:
Ok, this may sound confusing....but it's really simple. If you're confused, just look at my example code and it'll make sense. Here's my situation. I have 2 classes....A and B. Class A has a...
11
by: Wayne | last post by:
I am a one man enterprise and have been asked by a prospective client what happens to their database regarding ongoing changes etc if I get hit by a bus. Obviously my databases are distributed...
25
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why does parseInt('09') give an error? ----------------------------------------------------------------------- ...
4
by: Flamingo | last post by:
Hi folks, I want a webpage, there would be a input textfield, and a "sumbit" button there, if you press the submit button, the contents you input to the textfield would be send to your...
11
by: aslamhenry | last post by:
hem anyone can give me an idea on how to saparated digits using looping example please key in any 5 digits number : 56789 and the ouput is 5678 9 5678 9
1
kaleeswaran
by: kaleeswaran | last post by:
hi! i am having some user levels like admin,manager,clerk. so i need to give the restriction to the levels in the screen.like manager can do all the rights but clerk can view the screen...
2
by: JOHNSHELL08 | last post by:
Dear Team, There is a problem related to change ip address there in my network a domain admin user is exist and user knows its password and by this they are able to login with this...
2
dlite922
by: dlite922 | last post by:
I have a framework where I usually have a /pub and /app folder and only give apache /pub. But unfortunately with a setup I have, my files are in the same directory as /app. I know how to distable...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.