954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Image link in an email from php

Hello all and thanks in advance, I am attempting to add an image in an email that is generated from php.
Here is the php code

$ttext = "
Hello,

$_POST[name], whose email address is $_POST[email] thought you may be interested in this event. 

$_POST[refurl]
$_POST[name] Has left you a personal note.
$_POST[note]

$_POST[name] sent this information from www.communitychapel.net.

<img>http://www.communitychapel.net/assets/Map.jpg</img>

We look forward to your visit!

";

the email shows the html code fro the link,
thanks again

fixyourdns
Newbie Poster
5 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

Hi, http://www.communitychapel.net/assets/Map.jpg You doesnt try like the above code for image tag during mail send. Please try like this below.. Map.jpg May its helpful for you..

mahe4us
Junior Poster in Training
55 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

Thank you testing now

fixyourdns
Newbie Poster
5 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

Testing failed tryed... Map.jpgMap.jpg PRINT Map.jpg Maybe I need to attach the image, Thanks for the help

fixyourdns
Newbie Poster
5 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

  <a href=www.communitychapel.net/assets/Map.jpg " ><" width="235" height="51">  

mahe4us
Junior Poster in Training
55 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

make sure the mail's Content-Type header is text/html:

i.e:

$headers = "Content-type:text/html";
mail($to, $subject, $message, $headers);

MattEvans
Veteran Poster
Moderator
1,386 posts since Jul 2006
Reputation Points: 522
Solved Threads: 64
 

Some email providers (optionally) block external images, so sending an external image by email may not work.

Puckdropper
Posting Pro
500 posts since Jul 2004
Reputation Points: 23
Solved Threads: 23
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You