mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Switching to Symfony Mailer (#629)
* Switching to Symfony Mailer Additionally, support for all versions of PHP below 7.4 has been withdrawn * Language variable for reply to * Update to PHP 7.4
This commit is contained in:
parent
9689efd6f4
commit
faf2306862
28 changed files with 1450 additions and 584 deletions
|
@ -47,11 +47,10 @@ if (isset($_POST['submit'])) {
|
|||
bb_die('Could not update new password information');
|
||||
}
|
||||
|
||||
/** @var TorrentPier\Legacy\Emailer() $emailer */
|
||||
$emailer = new TorrentPier\Legacy\Emailer();
|
||||
// Sending email
|
||||
$emailer = new TorrentPier\Emailer();
|
||||
|
||||
$emailer->set_from([$bb_cfg['board_email'] => $bb_cfg['sitename']]);
|
||||
$emailer->set_to([$row['user_email'] => $username]);
|
||||
$emailer->set_to($row['user_email'], $username);
|
||||
$emailer->set_subject($lang['EMAILER_SUBJECT']['USER_ACTIVATE_PASSWD']);
|
||||
|
||||
$emailer->set_template('user_activate_passwd', $row['user_lang']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue