e-mail form help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bpatrol
Forum Newbie
Posts: 1
Joined: Tue Apr 20, 2004 5:29 pm

e-mail form help

Post by bpatrol »

Does anyone know how to use the .msg tag and get an image to show up on an e-mail?

I'm trying to set up a 'tell-a-friend' form that includes an image in the e-mail.

My code currently looks like this
<?
$msg = "Please click on http://www.oakandacornpublishing.com/cd ... ntro.mp3\n";
$msg .= "I found the perfect stocking stuffer!\n\n";
$msg .= "Additional Note from $_POST[sender_email]:\n";
$msg .= "$_POST[message]\n";

$to = "$_POST[receiver_email]";
$subject = "The Ancient Spruce and the Christmas Moose";

$mailheaders = "From: $_POST[sender_email]\n";
$mailheaders .= "Reply-To: $_POST[sender_email]\n";

mail($to, $subject, $msg, $mailheaders);

?>

In the .msg, I'm trying to have it put an image after the "I found the Perfect Stocking Stuffer" line

Any help or reference points would be greatly appreciated.

thanks
-Terry
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

inline images in email requires html email. It looks like you are sending plain text.
Post Reply