Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Doc Bug #18922 $content_id parameter not documented for Mail_Mime::addHTMLImage() function
Submitted: 2011-10-22 04:13 UTC
From: chadcloman Assigned: alec
Status: Closed Package: Mail_Mime (version 1.8.2)
PHP Version: Irrelevant OS:
Roadmaps: 1.8.3    
Subscription  


 [2011-10-22 04:13 UTC] chadcloman (Chad Cloman)
Description: ------------ The documentation for Mail_Mime::addHTMLImage() does not include the fifth parameter, $content_id. This parameter is crucial if you reference the embedded image from within your email HTML. I recommend using something like this for the function prototype: boolean addHTMLImage ( string $file , string $c_type = 'application/octet-stream' , string $name = '' , boolean $isfile = true, string $content_id = null ) and this for the description of $content_id: string $content_id - The Content-ID value to use for the embedded image. A null value will generate a suitably unique Content-ID. When referencing the embedded image with an <img> tag, set the "src" attribute to be "cid:whatever", where "whatever is the Content-ID.

Comments

 [2011-10-30 11:54 UTC] alec (Aleksander Machniak)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alec
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.