A platform for community discussion. Free, open, simple.
Fix SMTP connection test
Kelvin45a97ad82f08
diff --git a/lib/tasks/emails.rake b/lib/tasks/emails.rakeindex 60f306b991c..b6db20f18a8 100644--- a/lib/tasks/emails.rake+++ b/lib/tasks/emails.rake@@ -84,8 +84,7 @@ task 'emails:test', [:email] => [:environment] do |_, args|# s.auth_login(smtp[:user_name], smtp[:password])#end- Net::SMTP.start(smtp[:address], smtp[:port])- .auth_login(smtp[:user_name], smtp[:password])+ Net::SMTP.start(smtp[:address], smtp[:port], 'localhost', smtp[:user_name], smtp[:password])rescue Exception => eif e.to_s.match(/execution expired/)