Query: mb_send_mail
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MB_SEND_MAIL(3) 1 MB_SEND_MAIL(3) mb_send_mail - Send encoded mailSYNOPSISbool mb_send_mail NULL NULL (string $to, string $subject, string $message, [string $additional_headers], [string $additional_parame- ter])DESCRIPTIONSends email. Headers and messages are converted and encoded according to the mb_language(3) setting. It's a wrapper function for mail(3), so see also mail(3) for details.PARAMETERSo $to - The mail addresses being sent to. Multiple recipients may be specified by putting a comma between each address in $to. This parameter is not automatically encoded. o $subject - The subject of the mail. o $message - The message of the mail. o $additional_headers (optional) - String to be inserted at the end of the email header. This is typically used to add extra headers (From, Cc, and Bcc). Multiple extra headers should be separated with a CRLF ( ). Note When sending mail, the mail must contain a From header. This can be set with the $additional_headers parameter, or a default can be set in php.ini. Failing to do this will result in an error message similar to Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing. The From header sets also Return-Path under Windows. Note If messages are not received, try using a LF ( ) only. Some Unix mail transfer agents (most notably qmail) replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with RFC 2822. o $additional_parameter -$additional_parameter is a MTA command line parameter. It is useful when setting the correct Return-Path header when using send- mail.RETURN VALUESReturns TRUE on success or FALSE on failure.CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.0.0 | | | | | | | The Content-Type and Content-Transfer-Encoding | | | headers may be redefined as of PHP 5.0.0. Before | | | this time, the values defined by mb_language(3) | | | are always used. | | | | +--------+---------------------------------------------------+SEE ALSOmail(3), mb_encode_mimeheader(3), mb_language(3). PHP Documentation Group MB_SEND_MAIL(3)
Related Man Pages |
---|
mail::spamassassin::permsgstatus(3) - redhat |
capsar(1) - ultrix |
envelopes(5) - suse |
envelopes(5) - centos |
jifty::notification(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
how to send mail automatically in unix |
sending mail |
How to read a file into a variable? |
mail command in Unix |
How to Troubleshoot the mail sending problem? |