cvs: peardoc /en/package/mail/mail send.xml

From: Date: Wed, 13 Sep 2006 06:02:59 +0000
Subject: cvs: peardoc /en/package/mail/mail send.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8420@lists.php.net to get a copy of this message
jon Wed Sep 13 06:02:59 2006 UTC Modified files: /peardoc/en/package/mail/mail send.xml Log: Removing the example which suggests that $recipients may be used as an associative array. This is incorrect. Bug: 8545 http://cvs.php.net/viewvc.cgi/peardoc/en/package/mail/mail/send.xml?r1=1.13&r2=1.14&diff_format=u Index: peardoc/en/package/mail/mail/send.xml diff -u peardoc/en/package/mail/mail/send.xml:1.13 peardoc/en/package/mail/mail/send.xml:1.14 --- peardoc/en/package/mail/mail/send.xml:1.13 Sun May 28 00:12:32 2006 +++ peardoc/en/package/mail/mail/send.xml Wed Sep 13 06:02:58 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <refentry id="package.mail.mail.send"> <refnamediv> <refname>Mail::send()</refname> @@ -284,34 +284,6 @@ ?> ]]> </programlisting> - <para> - If one wishes to specify recipients for <literal>Bcc:</literal>, - the variable <varname>recipients</varname> must be an associative - array: - </para> - <programlisting role="php"> - <![CDATA[ -<?php -include('Mail.php'); - -$recipients = array('To' => 'joe@example.com,franck@example.com', - 'Bcc' => 'jane@example.com'); - -$headers['From'] = 'richard@example.com'; -$headers['To'] = 'joe@example.com'; -$headers['Subject'] = 'Test message'; - -$body = 'Test message'; - -$params['sendmail_path'] = '/usr/lib/sendmail'; - -// Create the mail object using the Mail::factory method -$mail_object =& Mail::factory('sendmail', $params); - -$mail_object->send($recipients, $headers, $body); -?> - ]]> - </programlisting> </refsect1> <refsect1 id="package.mail.mail.send.see"> &title.see;

« previous php.pear.doc (#8420) next »