...

View Full Version : adding images into email



space cowboy
11-13-2006, 10:53 AM
Hi, I have an e-mail feedback form on my website, when someone send some feedback it automatically auto responds them a reply.

In this reply I want to send them an image. At the moment its just displaying the image as a link. But I need to get it to display as the image itself.

How do I do this as usual html <img> tags dont seem to work.

Here is the part of my code:


//-----------------------------------------------sends mail ---------------------------------------------------
mail($administrator,$subject,$message,"From:$email");



//------------------------------sets up variables for information email to client -----------------------------
$rep="$email";
$subjectrep="Voucher";
$messagerep="Please print out this voucher and bring it with you on your visit.

http://www.mywebsite.com/image.jpg

Thank You!\n\n";

mail($rep,$subjectrep,$messagerep,"From:info@mywebsite.com");

mlseim
11-13-2006, 02:36 PM
Sending HTML emails is a different animal than text emails.

Lots of tutorials here:

http://www.google.com/search?hl=en&q=sending+php+html+emails&btnG=Google+Search



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum