note 52766 added to ref.mail

From: Date: Thu, 12 May 2005 02:46:21 +0000
Subject: note 52766 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-89294@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52766 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52766&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52766&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52766&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52766&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52766&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52766&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89294) next »