mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Use mail.default_force config
This commit is contained in:
parent
9ca263ebf5
commit
64537818f6
1 changed files with 5 additions and 0 deletions
|
|
@ -581,6 +581,11 @@ class Mail
|
|||
$id = $random . '@' . (preg_match('/^(.+)@([^@]+)$/', $sender_email, $matches) ? $matches[2] : 'swift.generated');
|
||||
$this->message->getHeaders()->get('Message-ID')->setId($id);
|
||||
|
||||
if (config('mail.default_force') && config('mail.default_from'))
|
||||
{
|
||||
$this->setFrom(config('mail.default_from'), config('mail.default_name') ?: null);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
$this->sent = $this->driver->send($this) ? true : false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue