Help Please with contact form to send email

the mail() function

Moderators: macek, egami, gesf

Post Reply
rupali
New php-forum User
New php-forum User
Posts: 140
Joined: Thu Oct 13, 2011 10:32 pm
Location: Chandigarh, INDIA

Re: Help Please with contact form to send email

Post by rupali » Tue Nov 08, 2011 11:00 pm

Reasons of errors :

1) you are executing this script on localhost and mail function will not work, it just only executes on server.

2) This code is missing,
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

Type this code before,
$headers. = 'From: '. $from . "\r\n";

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest