Send an email to lapsed patrons

This commit is contained in:
Alex Cabal 2022-07-02 16:40:50 -05:00
parent 0875e697b4
commit 3fa9592e6d
17 changed files with 185 additions and 42 deletions

View file

@ -7,6 +7,7 @@ use function Safe\file_get_contents;
class Email{
public $To = '';
public $ToName = '';
public $From = '';
public $FromName = '';
public $ReplyTo = '';
@ -43,7 +44,7 @@ class Email{
try{
$phpMailer->SetFrom($this->From, $this->FromName);
$phpMailer->AddReplyTo($this->ReplyTo);
$phpMailer->AddAddress($this->To);
$phpMailer->AddAddress($this->To, $this->ToName);
$phpMailer->Subject = $this->Subject;
$phpMailer->CharSet = 'UTF-8';
if($this->TextBody !== null && $this->TextBody != ''){