How to send an image and display it in email using php instead of a url or attachment?
<p>In writing a web srevice, how can i send image to email and display it.I am able to send email with all content except the image. I think there is some mistake in the image code . Can any one help me out with this ? my code is</p>

<pre><code>&lt;?php
$title=$_REQUEST['title'];
$location=$_REQUEST['location'];
$contactname=$_REQUEST['contactname'];
$contactnumber=$_REQUEST['contactnumber'];
$description=$_REQUEST['description'];
$image=$_REQUEST['image'];
if($title)
{
$Image=basename($_FILES['file']['name']);
$Image=str_replace(' ','|',$Image);
$date=date('YmdHis');
$date=str_replace('%20',' ',$date);
$Image=$date.".jpg";
$tmppath="images/".$Image;

move_uploaded_file($_FILES['file']['tmp_name'],$tmppath);
$message1 = ?&gt;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;
&lt;? $message1 .= ?&gt;&lt;img src="http://www.website.com/appinstaller/ramaraju/images/&lt;?= $Image ?&gt;" /&gt;&lt;/body&gt;&lt;/html&gt;
&lt;?php
$headers = "From: support@";
$headers .= "Content-type: text/html";

//mail($to, $subject, $message, $headers);
//$mailimg = '&lt;img src="http://www.myappdemo.com/appinstaller/ramaraju/services/images/$file"&lt;/a&gt;';

 $to = "ramaraju.d@stellentsoft.com";
 $subject = "Hi!";
 $message="Title : $title\r\n Location:$location\r\n Contact name:$contactname\r\n Contact:$contactnumber\r\n Description:$description\r\n file:$Image";



  if (mail($to, $subject, $message, $headers))
  {
  $message=array("messsage"=&gt;"Message successfully sent!");
  } else {
  $message=array("message"=&gt;"Message delivery failed.");
  }
  }
  else
  {
  $message=array("message"=&gt;"provide values");
  }
  echo json_encode($message);



?&gt;
</code></pre>
