0

when i send email from php mial funtion it working best in yahoo and gmail acounts but images and background images is not showing in outlook 2007,tell me what is solution and better way to show image in oulook

<?php

// multiple recipients (note the commas)
$to = "zohaib@sikone.com, ";

// subject
$subject = "Eid Card";

// compose message
$message = '
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>Fillon soutient à fond le retour d\'un Grand Prix de France</title>
</head>
<body>
   <p>Le Premier ministre François Fillon, passionné d\'automobile et pilote à ses heures, a apporté un soutien appuyé au retour d\'un Grand Prix de France au calendrier 2013 de la Formule 1, en faisant un passage-éclair vendredi sur le circuit Paul Ricard dans le Var.</p>
    <img src="http://marvelconcepts.net/email%20of%20eidcard/01.jpg" width="500" height="498">
    <div style=" background-image:url(http://marvelconcepts.net/email%20of%20eidcard/01.jpg); width:100px; height:200px; font-size:16px;">
   <p>Le Premier ministre François Fillon, passionné d\'automobile et pilote à ses heures, a apporté un soutien appuyé au retour d\'un Grand Prix de France au calendrier 2013 de la Formule 1, en faisant un passage-éclair vendredi sur le circuit Paul Ricard dans le Var.</p> </div>
</body>
</html>
';

// To send HTML mail, the Content-type header must be set
    $headers  = "From: Eid Card<info@izhar.com>\r\n";
    $headers .= "Reply-To: info@izhar.com\r\n";
    $headers .= "Return-Path: info@eizhar.com\r\n";
    $headers .= "X-Mailer: Drupal\n";
    $headers .= 'MIME-Version: 1.0' . "\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
// send email
mail($to, $subject, $message, $headers);
?>
2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Citytech.tester
0

Outlook doesn't show images directly. Open your email in outlook, just after the subject there is a text starting with "If there are problems with how this message is displayed ....... " click on this text, a dropdown box will open with few links. Click on the first link called "Download Pictures".

Thats it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.