A platform for community discussion. Free, open, simple.
FIX: emails.rake-use domain when sending mail test (#12188)
Rafael dos Santos Silva01584c5b22ce
diff --git a/lib/tasks/emails.rake b/lib/tasks/emails.rakeindex 4f16571030f..16f7658fc6a 100644--- a/lib/tasks/emails.rake+++ b/lib/tasks/emails.rake@@ -86,7 +86,8 @@ task 'emails:test', [:email] => [:environment] do |_, args|# s.auth_login(smtp[:user_name], smtp[:password])#end- Net::SMTP.start(smtp[:address], smtp[:port], 'localhost', smtp[:user_name], smtp[:password], smtp[:authentication])+ Net::SMTP.start(smtp[:address], smtp[:port], smtp[:domain] || 'localhost', smtp[:user_name], smtp[:password], smtp[:authentication])+rescue Exception => eif e.to_s.match(/execution expired/)