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

From: Date: Sun, 19 Oct 2003 02:14:29 +0000
Subject: cvs: peardoc /ja/package/mail/mail send.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1682@lists.php.net to get a copy of this message
elf Sat Oct 18 22:14:29 2003 EDT Added files: /peardoc/ja/package/mail/mail send.xml Log: o added japanese manual.

Index: peardoc/ja/package/mail/mail/send.xml +++ peardoc/ja/package/mail/mail/send.xml <!-- $Revision: 1.1 $ --> <!-- Sync: 1.3 --> <refentry id="package.mail.mail.send"> <refnamediv> <refname>Mail::send()</refname> <refpurpose>メール送信</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Mail.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>send</function></funcdef> <paramdef>mixed <parameter>$recipients</parameter></paramdef> <paramdef>array <parameter>$headers</parameter></paramdef> <paramdef>string <parameter>$body</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.mail.mail.send.desc"> &title.desc; <para> Sends a mail. The <function>send</function>-function is provided by the object returned from <link linkend="package.mail.mail.factory"><function>factory</function> </link> </para> </refsect1> <refsect1 id="package.mail.mail.send.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>mixed $recipients</parameter> - an array or a string with comma separated recipients. </para> </listitem> <listitem> <para> <parameter>array $headers</parameter> - an associative array of headers. The header name is used as key and the header value as value. </para> </listitem> <listitem> <para> <parameter>string $body</parameter> - メール本文。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.mail.mail.send.return"> &title.returns; <para> <parameter>boolean</parameter> - &true; か、または失敗した場合は &class.pear-error; オブジェクト。 </para> </refsect1> <refsect1 id="package.mail.mail.send.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="5"> <thead> <row> <entry>メーラドライバ</entry> <entry>エラーコード</entry> <entry>エラーメッセージ</entry> <entry>意味</entry> <entry>解決</entry> </row> </thead> <tbody> <row> <entry>sendmail/smtp</entry> <entry>&null;</entry> <entry> <quote>No from address given.</quote> </entry> <entry> The <parameter>$headers</parameter> array requires at least a <parameter>from</parameter> entry. </entry> <entry> Add a from header: <programlisting role="php"> $headers['From'] = 'mymail@example.com'; </programlisting> </entry> </row> <row> <entry>sendmail</entry> <entry>&null;</entry> <entry> <quote>From address specified with dangerous characters.</quote> </entry> <entry> The from entry in the <parameter>$headers</parameter> array contains one ore more characters which could be non-RFC compliant </entry> <entry> Check the given from adress for characters like: spaces or <literal>;</literal> or <literal>&amp;</literal> or <literal>`</literal> (backtick) </entry> </row> <row> <entry>sendmail</entry> <entry>&null;</entry> <entry> <quote>sendmail [<parameter>path to sendmail</parameter>] not executable</quote> </entry> <entry> The path to sendmail program is not correct. No sendmail executable found there. </entry> <entry> Check the <parameter>$param['sendmail_path']</parameter> entry in your <link linkend="package.mail.mail.factory"> <function>Mail::factory</function></link> call. If you use another mailer then sendmail, ie. qmail, check installation of the mailer. Normally it should includes a sendmail wrapper. </entry> </row> <row> <entry>sendmail</entry> <entry>&null;</entry> <entry> <quote>sendmail returned error code <parameter>code</parameter></quote> </entry> <entry> Sendmail returns a error, which must be handled by use. </entry> <entry> See the documention of your mailer programm. </entry> </row> <row> <entry>smtp</entry> <entry>&null;</entry> <entry> <quote>unable to instantiate Net_SMTP object</quote> </entry> <entry> クラス生成の失敗 </entry> <entry> <classname>Net_SMTP</classname> パッケージの再インストールか更新。 </entry> </row> <row> <entry>smtp</entry> <entry>&null;</entry> <entry> <quote>unable to connect to smtp server <parameter>host:port</parameter></quote> </entry> <entry> SMTPサーバへの接続に失敗 </entry> <entry> Check <parameter>$param['port']</parameter> and <parameter>$param['host']</parameter> entries in your <link linkend="package.mail.mail.factory"> <function>Mail::factory</function></link> call. </entry> </row> <row> <entry>smtp</entry> <entry>&null;</entry> <entry> <quote>unable to authenticate to smtp server</quote> </entry> <entry> 認証の失敗 </entry> <entry> Check <parameter>$param['auth']</parameter>, <parameter>$param['username']</parameter> and <parameter>$param['password']</parameter> entries in your <link linkend="package.mail.mail.factory"> <function>Mail::factory</function></link> call. Ensure to use the correct authentication method for the SMTP server. </entry> </row> <row> <entry>smtp</entry> <entry>&null;</entry> <entry> <quote>unable to identify smtp server</quote> </entry> <entry> Start request to SMTP server failed </entry> <entry> Check the RFC-compliances of the SMTP server to connect. </entry> </row> <row> <entry>smtp</entry> <entry>&null;</entry> <entry> <quote>unable to set sender to <parameter>from</parameter></quote> </entry> <entry> Sending the from adress failed </entry> <entry> Check the RFC-compliances of the from adress and the server connnectivity. </entry> </row> <row> <entry>smtp</entry> <entry>&null;</entry> <entry> <quote>unable to add recipient <parameter>recipient</parameter>:<parameter>error code</parameter> </quote> </entry> <entry> Sending of recipient adress failed </entry> <entry> Check the RFC-compliances of the recipient adress and the server connnectivity. </entry> </row> <row> <entry>smtp</entry> <entry>&null;</entry> <entry> <quote>unable to send data</quote> </entry> <entry> Body of the mail message could not send </entry> <entry> Check the RFC-compliances of the message body and the server connnectivity. </entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.mail.mail.send.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.mail.mail.send.example"> &title.example; <programlisting role="php"> <![CDATA[ <?php include('Mail.php'); $recipients = 'joe@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; <para> <link linkend="package.mail.mail.factory"> <function>Mail::factory</function> </link> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#1682) next »