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

From: Date: Wed, 26 Apr 2006 05:24:13 +0000
Subject: cvs: peardoc /en/package/mail/mail send.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7824@lists.php.net to get a copy of this message
jon Wed Apr 26 05:24:13 2006 UTC Modified files: /peardoc/en/package/mail/mail send.xml Log: Documenting the new Mail::send() SMTP error codes, provided by the Mail 1.1.10 release. http://cvs.php.net/viewcvs.cgi/peardoc/en/package/mail/mail/send.xml?r1=1.11&r2=1.12&diff_format=u Index: peardoc/en/package/mail/mail/send.xml diff -u peardoc/en/package/mail/mail/send.xml:1.11 peardoc/en/package/mail/mail/send.xml:1.12 --- peardoc/en/package/mail/mail/send.xml:1.11 Wed Apr 26 04:57:49 2006 +++ peardoc/en/package/mail/mail/send.xml Wed Apr 26 05:24:13 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <refentry id="package.mail.mail.send"> <refnamediv> <refname>Mail::send()</refname> @@ -76,7 +76,7 @@ </thead> <tbody> <row> - <entry>sendmail/smtp</entry> + <entry>sendmail</entry> <entry>&null;</entry> <entry> <quote>No from address given.</quote> @@ -144,7 +144,7 @@ </row> <row> <entry>smtp</entry> - <entry>&null;</entry> + <entry><literal>PEAR_MAIL_SMTP_ERROR_CREATE</literal></entry> <entry> <quote>Failed to create a Net_SMTP object</quote> </entry> @@ -157,7 +157,7 @@ </row> <row> <entry>smtp</entry> - <entry>&null;</entry> + <entry><literal>PEAR_MAIL_SMTP_ERROR_CONNECT</literal></entry> <entry> <quote>Failed to connect to <parameter>host:port</parameter></quote> @@ -174,7 +174,7 @@ </row> <row> <entry>smtp</entry> - <entry>&null;</entry> + <entry><literal>PEAR_MAIL_SMTP_ERROR_AUTH</literal></entry> <entry> <quote><parameter>method</parameter> authentication failure</quote> </entry> @@ -193,21 +193,24 @@ </row> <row> <entry>smtp</entry> - <entry>&null;</entry> + <entry><literal>PEAR_MAIL_SMTP_ERROR_FROM</literal></entry> <entry> <quote>No From: address has been provided</quote> </entry> <entry> - Sending the from address failed + The <parameter>$headers</parameter> array requires + at least a <parameter>from</parameter> entry. </entry> <entry> - Check the RFC-compliances of the from address and the server - connnectivity. + Add a from header: + <programlisting role="php"> + $headers['From'] = 'mymail@example.com'; + </programlisting> </entry> </row> <row> <entry>smtp</entry> - <entry>&null;</entry> + <entry><literal>PEAR_MAIL_SMTP_ERROR_SENDER</literal></entry> <entry> <quote>Failed to set sender: <parameter>from</parameter></quote> </entry> @@ -221,7 +224,7 @@ </row> <row> <entry>smtp</entry> - <entry>&null;</entry> + <entry><literal>PEAR_MAIL_SMTP_ERROR_RECIPIENT</literal></entry> <entry> <quote>Failed to add recipient: <parameter>recipient</parameter> </quote> @@ -236,7 +239,7 @@ </row> <row> <entry>smtp</entry> - <entry>&null;</entry> + <entry><literal>PEAR_MAIL_SMTP_ERROR_DATA</literal></entry> <entry> <quote>Failed to send data</quote> </entry>

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