php E-Mail senden mit Bild

Ich bin versucht, senden Sie eine E-Mail mit einem Bild; der Körper ist meine E-Mail:

<?php 

$message = <<< email

<img src="http://planet-earth.bogus.us/icons/secret.pictures.gif">

Dear {$email},

email;

?>

Als ich die email erhalten, ich kann nicht sehen das Bild. Stattdessen Habe Ich
sehen <img src="http://planet-earth.bogus.us/icons/secret.pictures.gif">. Ich weiß, es ist, weil der <<< E-Mail; wie würde ich in der Lage sein zu zeigen Sie das Bild anstatt den code mit <<< E-Mail?

UPDATE

Bin ich mit dem zend-framework. Mein code sieht wie folgt aus:

<?php
     $mail = new Zend_Mail();
     $mail->setFrom('[email protected]', 'My site');
     $mail->addTo($recoveryaccount->username);
     $mail->setSubject("Mysite");
     include "_email_recover_password.phtml";
     $mail->setBodyText($message);
     $mail->send();
?>

_include "_email_recover_password.pthml" 
<?php 

 $message = <<< email
 <img src="http://picturelocation.picture.gif">
 Dear {$account->getUsername()},

 Somebody has requested that the password associated with this account be
 reset. If you initiated this request, click the below link to complete the process:

 http://www.example.com/{$account->getRecovery()}

 Thank you!
 Mysite

 Questions? Contact us at admin@mysite.com

 email;

 ?>
  • Nein, es hat eigentlich nichts mit der <<< email und mehr zu tun mit der Art Ihres Inhalts. Kann man den code, wo Sie die e-mail senden bitte?
InformationsquelleAutor user1347693 | 2012-04-21
Schreibe einen Kommentar