cvs: peardoc /en/core mail.xml
| From: | Richard Heyes | Date: | Tue, 08 Jan 2002 13:13:53 +0000 |
| Subject: | cvs: peardoc /en/core mail.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1869@lists.php.net to get a copy of this message | ||
heyesr Tue Jan 8 08:13:53 2002 EDT
Modified files:
/peardoc/en/core mail.xml
Log:
* Minor ammendments
Index: peardoc/en/core/mail.xml
diff -u peardoc/en/core/mail.xml:1.2 peardoc/en/core/mail.xml:1.3
--- peardoc/en/core/mail.xml:1.2 Sun Jan 6 06:27:06 2002
+++ peardoc/en/core/mail.xml Tue Jan 8 08:13:53 2002
@@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<reference id="core.mail">
<title>PEAR Mail: Mail handling functions</title>
@@ -138,7 +138,7 @@
<para>
<parameter>$sendmail_path</parameter> - The path to the
sendmail executable. Defaults to
- <filename>/usr/sbin/sendmail</filename>if not given.
+ <filename>/usr/sbin/sendmail</filename> if not given.
</para>
</listitem>
<listitem>
@@ -386,7 +386,7 @@
</para>
</refsect1>
<refsect1>
- <title><function>setHTMLImage</function></title>
+ <title><function>addHTMLImage</function></title>
<simpara>
If sending an HTML email with embedded images, use this function
to add the image. It takes four arguments:
@@ -538,6 +538,9 @@
</refsect1>
<refsect1>
<title>Example:</title>
+ <simpara>
+ This example creates a very simply html/text email with an attachment and then sends it using
the mail driver of the Mail::send() function (ie. Mail_mail::send()).
+ </simpara>
<programlisting role="php">
<![CDATA[
include('Mail.php');
@@ -557,9 +560,9 @@
$mime->setTXTBody($text);
$mime->setHTMLBody($html);
$mime->addAttachment($file, 'text/plain');
-
-$body =& $mime->get();
-$hdrs =& $mime->headers($hdrs);
+
+$body = $mime->get();
+$hdrs = $mime->headers($hdrs);
$mail =& Mail::factory('mail');
$mail->send('joe@example.com', $hdrs, $body);