Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2011-02-25, 03:55 PM   #1
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
sending email from php with html format

$message gets content from textarea and it looks like this

Quote:
<a href="http://www.domain.com">LINK</a> text text text <a href="http://www.domain.com">ANOTHER LINK</a> <a href="http://www.domain.com">IMG SRC</a> more text
Code:
<?php

$mailTo = $_POST['emailTo'];
$mailFrom = $_POST['emailFrom\r\n'];
$subject = $_POST['subject'];
$message = $_POST['message'];

/* To send HTML mail, you can set the Content-type header. */
$headers  = "From: emailFrom\r\n";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
            
mail($mailTo, $subject, $message, "From: ".$mailFrom, $headers);
?>
I'm scratching my head and can't figure it out, still have text emails.
pc is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:24 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc