0

mailPHPの機能を使ってメールを送信したところ、YahooやGMailのアカウントでは動作するのですが、Outlook 2007ではメールに使われている画像や背景画像が表示されません。

Outlook でも機能させるにはどうすればよいですか?

私のコード:

<?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);
?>
4

2 に答える 2

1

Outlook 電子メール クライアントは、html 形式の電子メールの背景画像をサポートしていません。他の html と css がかなりあり、他の電子メール クライアントも同様にサポートしていません。サポートの最良のリストはこれです CSS サポート The Ultimate Guide

于 2012-08-09T09:00:40.707 に答える
0

Outlook で常に画像を表示する:

http://www.howtogeek.com/howto/27045/beginner-make-outlook-always-display-images-in-email-from-specific-senders/

于 2012-08-09T08:50:29.807 に答える