mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-16 13:28:49 +00:00
[FIX] Add Address for mailing
This commit is contained in:
parent
da8277e681
commit
0e67e96621
1 changed files with 4 additions and 2 deletions
|
@ -62,12 +62,10 @@ function phpmailer_emailer_send_prepare(App $a, array &$b)
|
||||||
$mail->Host = $a->config['system']['smtp_server'];
|
$mail->Host = $a->config['system']['smtp_server'];
|
||||||
$mail->Port = $a->config['system']['smtp_port'];
|
$mail->Port = $a->config['system']['smtp_port'];
|
||||||
|
|
||||||
/*
|
|
||||||
if (!empty($a->config['system']['smtp_secure']) && (bool)$a->config['system']['smtp_secure'] !== '') {
|
if (!empty($a->config['system']['smtp_secure']) && (bool)$a->config['system']['smtp_secure'] !== '') {
|
||||||
$mail->SMTPSecure = $a->config['system']['smtp_secure'];
|
$mail->SMTPSecure = $a->config['system']['smtp_secure'];
|
||||||
$mail->Port = $a->config['system']['smtp_port_s'];
|
$mail->Port = $a->config['system']['smtp_port_s'];
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
if (!empty($a->config['system']['smtp_username']) && !empty($a->config['system']['smtp_password'])) {
|
if (!empty($a->config['system']['smtp_username']) && !empty($a->config['system']['smtp_password'])) {
|
||||||
$mail->SMTPAuth = true;
|
$mail->SMTPAuth = true;
|
||||||
|
@ -86,6 +84,10 @@ function phpmailer_emailer_send_prepare(App $a, array &$b)
|
||||||
// add text
|
// add text
|
||||||
$mail->AltBody = $b['textVersion'];
|
$mail->AltBody = $b['textVersion'];
|
||||||
|
|
||||||
|
if (!empty($b['toEmail'])) {
|
||||||
|
$mail->addAddress($b['toEmail']);
|
||||||
|
}
|
||||||
|
|
||||||
// html version
|
// html version
|
||||||
if (!empty($b['htmlVersion'])) {
|
if (!empty($b['htmlVersion'])) {
|
||||||
$mail->isHTML(true);
|
$mail->isHTML(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue