mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #2344 display more helpful error message when default sender address is not configured
This commit is contained in:
parent
960f42a105
commit
54d0ed5463
4 changed files with 17 additions and 4 deletions
|
|
@ -229,6 +229,11 @@ class Advanced_MailerAdminController extends Advanced_Mailer
|
|||
$recipient_name = $recipient_config->recipient_name;
|
||||
$recipient_email = $recipient_config->recipient_email;
|
||||
|
||||
if (!config('mail.default_from'))
|
||||
{
|
||||
$this->add('test_result', 'Error: ' . Context::getLang('msg_advanced_mailer_default_from_email_not_set'));
|
||||
return;
|
||||
}
|
||||
if (!$recipient_name)
|
||||
{
|
||||
$this->add('test_result', 'Error: ' . Context::getLang('msg_advanced_mailer_recipient_name_is_empty'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue