2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-09-20 20:55:38 +00:00
|
|
|
<!-- $Revision: 1.7 $ -->
|
|
|
|
<refentry xml:id="function.mb-send-mail" xmlns="http://docbook.org/ns/docbook">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mb_send_mail</refname>
|
|
|
|
<refpurpose>Send encoded mail</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>bool</type><methodname>mb_send_mail</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>to</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>subject</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>message</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>additional_headers</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>additional_parameter</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
<function>mb_send_mail</function> sends email. Headers and
|
|
|
|
message are converted and encoded according to
|
|
|
|
<function>mb_language</function> setting.
|
|
|
|
<function>mb_send_mail</function> is wrapper
|
|
|
|
function of <function>mail</function>. See
|
|
|
|
<function>mail</function> for details.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<parameter>to</parameter> is mail addresses send to. Multiple
|
|
|
|
recipients can be specified by putting a comma between each
|
|
|
|
address in to. This parameter is not automatically encoded.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<parameter>subject</parameter> is subject of mail.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<parameter>message</parameter> is mail message.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<parameter>additional_headers</parameter> is inserted at
|
|
|
|
the end of the header. This is typically used to add extra
|
|
|
|
headers. Multiple extra headers are separated with a
|
|
|
|
newline ("\n").
|
|
|
|
</para>
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
<literal>Content-Type</literal> and
|
|
|
|
<literal>Content-Transfer-Encoding</literal> headers can be redefined as
|
|
|
|
of PHP 5.0.0. In PHP 4, values defined by
|
|
|
|
<function>mb_language</function> are always used.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
<para>
|
|
|
|
<parameter>additional_parameter</parameter> is a MTA command line
|
|
|
|
parameter. It is useful when setting the correct Return-Path
|
|
|
|
header when using sendmail.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
&return.success;
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
See also <function>mail</function>,
|
|
|
|
<function>mb_encode_mimeheader</function>, and
|
|
|
|
<function>mb_language</function>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- 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
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
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
|
|
|
|
-->
|