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:
Yury Pikhtarev 2023-03-20 01:26:26 +07:00 committed by GitHub
commit faf2306862
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 1450 additions and 584 deletions

View file

@ -53,11 +53,10 @@ if ($row = DB()->fetch_row($sql)) {
}
if (!$errors) {
/** @var TorrentPier\Legacy\Emailer() $emailer */
$emailer = new TorrentPier\Legacy\Emailer();
// Sending email
$emailer = new TorrentPier\Emailer();
$emailer->set_from([$userdata['user_email'] => $userdata['username']]);
$emailer->set_to([$user_email => $username]);
$emailer->set_to($user_email, $username);
$emailer->set_subject($subject);
$emailer->set_template('profile_send_email', $user_lang);