diff options
author | redmatrix <mike@macgirvin.com> | 2016-10-01 03:06:01 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-10-01 03:06:01 -0700 |
commit | fa94644bcfd5bb3ef9c4149d6503846a09975297 (patch) | |
tree | 7d04194a6fbb80c43af722fc20cb4a39574eabf4 /Zotlabs/Module/Invite.php | |
parent | ad309f1036d9d85899c3d3199070d92dd96b1710 (diff) | |
download | volse-hubzilla-fa94644bcfd5bb3ef9c4149d6503846a09975297.tar.gz volse-hubzilla-fa94644bcfd5bb3ef9c4149d6503846a09975297.tar.bz2 volse-hubzilla-fa94644bcfd5bb3ef9c4149d6503846a09975297.zip |
Unify the various mail sending instance to enotify::send() and z_mail(). Both take the same arguments. z_mail() is text only, enotify::send() provides html and text. Both are pluggable using the enotfy_send hook.
Diffstat (limited to 'Zotlabs/Module/Invite.php')
-rw-r--r-- | Zotlabs/Module/Invite.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Zotlabs/Module/Invite.php b/Zotlabs/Module/Invite.php index 3d7438484..5198b1231 100644 --- a/Zotlabs/Module/Invite.php +++ b/Zotlabs/Module/Invite.php @@ -59,12 +59,15 @@ class Invite extends \Zotlabs\Web\Controller { $account = \App::get_account(); - - $res = mail($recip, sprintf( t('Please join us on $Projectname'), \App::$config['sitename']), - $nmessage, - "From: " . $account['account_email'] . "\n" - . 'Content-type: text/plain; charset=UTF-8' . "\n" - . 'Content-transfer-encoding: 8bit' ); + $res = z_mail( + [ + 'toEmail' => $recip, + 'fromName' => ' ', + 'fromEmail' => $account['account_email'], + 'messageSubject' => t('Please join us on $Projectname'), + 'textVersion' => $nmessage, + ] + ); if($res) { $total ++; |