Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adding images into email

    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:

    PHP 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"); 

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,509
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    Sending HTML emails is a different animal than text emails.

    Lots of tutorials here:

    http://www.google.com/search?hl=en&q...=Google+Search


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •