Skip to content

Commit

Permalink
EASE_FROM configuration recognised now by Mail class
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Oct 18, 2023
1 parent 5785389 commit 3d8951b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Framework Constants
* EASE_LOGGER - one of memory,console,file,syslog,email,std,eventlog or combination eg. "console|syslog"
* EASE_EMAILTO - recipient email address for Ease/Logger/ToMail
* EASE_SMTP - Custom [SMTP Settings](https://pear.php.net/manual/en/package.mail.mail.factory.php) (JSON Encoded)
* EASE_FROM - Sent mail sender address
* LOG_DIRECTORY - destination for ToFile logger
* LOG_OPTION - syslog option argument
* LOG_FACILITY - syslog facility argument
Expand Down
2 changes: 1 addition & 1 deletion debian/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "deb/ease-core",
"description": "An Core of PHP Framework for Ease of writing Applications (debianized)",
"version": "1.39.0",
"version": "1.41.0",
"authors": [
{
"name": "Vítězslav Dvořák",
Expand Down
2 changes: 1 addition & 1 deletion src/Ease/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function __construct(string $emailAddress, string $mailSubject, $emailCon
$this->setMailHeaders(
[
'To' => $emailAddress,
'From' => $this->fromEmailAddress,
'From' => empty($this->fromEmailAddress) ? \Ease\Shared::cfg('EASE_FROM') : $this->fromEmailAddress,
'Reply-To' => $this->fromEmailAddress,
'Subject' => $mailSubject,
'Content-Type' => 'text/plain; charset=utf-8',
Expand Down

0 comments on commit 3d8951b

Please sign in to comment.