note 52766 rejected from ref.mail by didou
| From: | didou@php.net | Date: | Thu, 12 May 2005 12:37:22 +0000 |
| Subject: | note 52766 rejected from ref.mail by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89320@lists.php.net to get a copy of this message | ||
Note Submitter: arale
----
I'm newbie. I have a process file:
<?
session_start();
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$body = $_POST['msg'];
$to = "info@info.net";
$header = "Content-Type: text/html; charset=UTF-8";
if(empty($name) || empty($email) || empty($subject) || empty($msg)){
header("contact.html");
} else {
$subj = "kcreative contact";
$msg = "\nName: $name\nEmail: $email\nSubject: $subject\nMesseger:\n$msg";
$from = "From: contact <info@info.net>";
mail($to, $subj, $msg, $from, $header);
header("Location: index.html");
}
?>
I can't send it as html mail. Please help me to convert it to html and show correct charset.