note 120078 added to function.mail
| From: | SAR | Date: | Sun, 23 Oct 2016 17:06:20 +0000 |
| Subject: | note 120078 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206942@lists.php.net to get a copy of this message | ||
When using with sSMTP, I've found that the additional_parameters must be enclosed in quotes
after the flags.
(The other documentation on this page has no quotes after the flags.)
e.g.:
$params = '-f"info@mail.com" -F"Info Service"';
$to = 'user@mail.com';
$subj = 'Subject Line';
$body = 'Body of the mail';
$headers = null;
mail($to, $subj, $body, $headers, $params);
----
Server IP: 72.52.91.14
Probable Submitter: 67.253.2.42
----
Manual Page -- http://php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/120078
Del: integrated -- https://master.php.net/note/delete/120078/integrated
Del: useless -- https://master.php.net/note/delete/120078/useless
Del: bad code -- https://master.php.net/note/delete/120078/bad+code
Del: spam -- https://master.php.net/note/delete/120078/spam
Del: non-english -- https://master.php.net/note/delete/120078/non-english
Del: in docs -- https://master.php.net/note/delete/120078/in+docs
Del: other reasons-- https://master.php.net/note/delete/120078
Reject -- https://master.php.net/note/reject/120078
Search -- https://master.php.net/manage/user-notes.php