mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-03 15:32:30 +01:00
fixes #2538 differentiate from and reply-to in pwg_mail
This commit is contained in:
1 parent
964a2d8ede
commit
355f3d44af
1 file changed
+3
-1
@@ -594,6 +594,8 @@ SELECT
|
||||
* @param string|array $to
|
||||
* @param array $args
|
||||
* o from: sender [default value webmaster email]
|
||||
* o reply_to_mail_address: reply-to can be different of the "from" (new 16.4.0) [default value empty]
|
||||
* o reply_to_name: reply-to can be different of the "from" (new 16.4.0) [default value empty]
|
||||
* o Cc: array of carbon copy receivers of the mail. [default value empty]
|
||||
* o Bcc: array of blind carbon copy receivers of the mail. [default value empty]
|
||||
* o subject [default value 'Piwigo']
|
||||
@@ -654,7 +656,7 @@ function pwg_mail($to, $args=array(), $tpl=array())
|
||||
$from = unformat_email($args['from']);
|
||||
}
|
||||
$mail->setFrom($from['email'], $from['name']);
|
||||
$mail->addReplyTo($from['email'], $from['name']);
|
||||
$mail->addReplyTo($args['reply_to_mail_address'] ?? $from['email'], $args['reply_to_name'] ?? $from['name']);
|
||||
|
||||
// Subject
|
||||
if (empty($args['subject']))
|
||||
|
||||
Reference in new issue
Block a user