|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!-- EN-Revision: 17503 -->
|
|
|
+<!-- EN-Revision: 21230 -->
|
|
|
<!-- Reviewed: no -->
|
|
|
<sect1 id="zend.mail.attachments">
|
|
|
<title>Anhänge</title>
|
|
|
@@ -23,7 +23,7 @@ $mail->createAttachment($someBinaryString);
|
|
|
$mail->createAttachment($myImage,
|
|
|
'image/gif',
|
|
|
Zend_Mime::DISPOSITION_INLINE,
|
|
|
- Zend_Mime::ENCODING_8BIT);
|
|
|
+ Zend_Mime::ENCODING_BASE64);
|
|
|
]]></programlisting>
|
|
|
</example>
|
|
|
|
|
|
@@ -41,7 +41,7 @@ $mail = new Zend_Mail();
|
|
|
$at = $mail->createAttachment($myImage);
|
|
|
$at->type = 'image/gif';
|
|
|
$at->disposition = Zend_Mime::DISPOSITION_INLINE;
|
|
|
-$at->encoding = Zend_Mime::ENCODING_8BIT;
|
|
|
+$at->encoding = Zend_Mime::ENCODING_BASE64;
|
|
|
$at->filename = 'test.gif';
|
|
|
|
|
|
$mail->send();
|
|
|
@@ -58,7 +58,7 @@ $mail = new Zend_Mail();
|
|
|
$at = new Zend_Mime_Part($myImage);
|
|
|
$at->type = 'image/gif';
|
|
|
$at->disposition = Zend_Mime::DISPOSITION_INLINE;
|
|
|
-$at->encoding = Zend_Mime::ENCODING_8BIT;
|
|
|
+$at->encoding = Zend_Mime::ENCODING_BASE64;
|
|
|
$at->filename = 'test.gif';
|
|
|
|
|
|
$mail->addAttachment($at);
|