hi all i cant see my erron in the code i have followed the tutorial but i cant see it
i wont some help. here is my code.
$to = 'andi_138el@hotmail.com';
$subject = 'Contact from submitted';
$body = $contact_name."\n".$contact_text;
$headers = 'From: '.$contact_email;
if (mail($to,$subject, $body, $headers)){
echo 'Thanks for contacting us. We\'ll be in touch soon';
}else{
echo 'Sorry,an error occurred.Please try again later.';
}
andyy121
-9
Junior Poster
Recommended Answers
Jump to Postdo u have mail server configured in ur network,
you need to set smtp mail server in php.ini file for sending mail
Jump to PostMacromedia has no email ability.
Your test server (XAMP etc) will have this function. You will need to configure it
All 6 Replies
urtrivedi
276
Nearly a Posting Virtuoso
andyy121
-9
Junior Poster
Squidge
101
Newbie Poster
andyy121
-9
Junior Poster
tscina
0
Light Poster
Squidge
101
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.