Remove local so the email_from has a value outside the if statement.
This commit is contained in:
@@ -32,8 +32,8 @@ if (email_queue_enabled == 'true') then
|
|||||||
local settings = Settings.new(db, domain_name, domain_uuid);
|
local settings = Settings.new(db, domain_name, domain_uuid);
|
||||||
|
|
||||||
if (email_from == nil or email_from == "") then
|
if (email_from == nil or email_from == "") then
|
||||||
local email_from = settings:get('email', 'smtp_from', 'text');
|
email_from = settings:get('email', 'smtp_from', 'text');
|
||||||
local from_name = settings:get('email', 'smtp_from_name', 'text');
|
from_name = settings:get('email', 'smtp_from_name', 'text');
|
||||||
end
|
end
|
||||||
|
|
||||||
if (email_from == nil or email_from == "") then
|
if (email_from == nil or email_from == "") then
|
||||||
|
|||||||
Reference in New Issue
Block a user