mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Send an email to lapsed patrons
This commit is contained in:
parent
0875e697b4
commit
3fa9592e6d
17 changed files with 185 additions and 42 deletions
|
@ -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 != ''){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue