mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 20:36:38 -04:00
Update PropertiesBase to new patterns and improve static analysis checks
This commit is contained in:
parent
5f0b57f7e9
commit
6c8414f844
33 changed files with 335 additions and 148 deletions
|
@ -18,6 +18,19 @@ class Email{
|
|||
public $Attachments = array();
|
||||
public $PostmarkStream = null;
|
||||
|
||||
public function __construct(bool $isNoReplyEmail = false){
|
||||
if($isNoReplyEmail){
|
||||
$this->From = NO_REPLY_EMAIL_ADDRESS;
|
||||
$this->FromName = 'Standard Ebooks';
|
||||
$this->ReplyTo = NO_REPLY_EMAIL_ADDRESS;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// *******
|
||||
// METHODS
|
||||
// *******
|
||||
|
||||
public function Send(): bool{
|
||||
if($this->ReplyTo == ''){
|
||||
$this->ReplyTo = $this->From;
|
||||
|
@ -82,12 +95,4 @@ class Email{
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function __construct(bool $isNoReplyEmail = false){
|
||||
if($isNoReplyEmail){
|
||||
$this->From = NO_REPLY_EMAIL_ADDRESS;
|
||||
$this->FromName = 'Standard Ebooks';
|
||||
$this->ReplyTo = NO_REPLY_EMAIL_ADDRESS;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue