
2 Dec
2020
2 Dec
'20
2:39 p.m.
call function store_email to store email to directory sent Signed-off-by: Luan Shengde <shdluan@163.com> --- lib/mail-post.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/mail-post.rb b/lib/mail-post.rb index 0b1f94a..df4d255 100755 --- a/lib/mail-post.rb +++ b/lib/mail-post.rb @@ -51,5 +51,11 @@ def send_mail(mail_info) to mail_info['to'] body mail_info['body'] end + mail.deliver! + + return if ENV['SEND_MAIL_PORT'].to_s != '49000' + return if ENV['HOST_SERVER'] != 'z9' + + store_email(mail) end -- 2.23.0