Edit report at http://pear.php.net/bugs/bug.php?id=18922&edit=1

ID: 18922
Updated by: alec@alec.pl
Reported By: public at cloman dot com
Summary: $content_id parameter not documented for
Mail_Mime::addHTMLImage() function
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Mail_Mime
Package Version: 1.8.2
PHP Version: Irrelevant
-Assigned To:
+Assigned To: alec
Roadmap Versions:
New Comment:

-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.

Previous Comments:

[2011-10-22 00:13:31] chadcloman

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.


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedOct 30, '11 at 6:55a
activeOct 30, '11 at 6:55a

1 user in discussion

Alec: 1 post



site design / logo © 2022 Grokbase