English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

can i use the normal sending code and write with html in the msg or what?

mail($recipient, $domain, $msg, $mailheaders);

2006-06-28 18:39:12 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

It works fine thanks, but when i add an image, it doesn't appear...

2006-06-28 22:49:07 · update #1

3 answers

// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);

put you html in the message variable, like...$message = 'my message';

2006-06-28 19:21:25 · answer #1 · answered by lxa478 2 · 0 0

mail($recipient, $domain, $msg, $mailheaders);
$msg is a var that contains the message u whant to send. It shoud be writen using php.
juste write it as any php page
surf_dgm@yahoo.com

2006-06-28 19:49:37 · answer #2 · answered by dgm 2 · 0 0

Use phpMailer: http://phpmailer.sf.net/

2006-06-28 18:43:03 · answer #3 · answered by NC 7 · 0 0

fedest.com, questions and answers