Browse Source

[ZF-9094]Binary attachments in examples encoded with Zend_Mime::ENCODING_8BIT

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21230 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 years ago
parent
commit
47f127b3b2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      documentation/manual/en/module_specs/Zend_Mail-Attachments.xml

+ 3 - 3
documentation/manual/en/module_specs/Zend_Mail-Attachments.xml

@@ -22,7 +22,7 @@ $mail->createAttachment($someBinaryString);
 $mail->createAttachment($myImage,
                         'image/gif',
                         Zend_Mime::DISPOSITION_INLINE,
-                        Zend_Mime::ENCODING_8BIT);
+                        Zend_Mime::ENCODING_BASE64);
 ]]></programlisting>
     </example>
 
@@ -39,7 +39,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();
@@ -56,7 +56,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);