add script for testing app SMTP connections

This commit is contained in:
Adam Cooke
2017-04-28 17:09:39 +01:00
parent 6fc82b2049
commit 3333a7baf3
6 changed files with 42 additions and 2 deletions
+4
View File
@@ -44,4 +44,8 @@ class AppMailer < ApplicationMailer
mail :to => @server.organization.notification_addresses, :subject => "[#{server.full_permalink}] Your mail server has been suspended"
end
def test_message(recipient)
mail :to => recipient, :subject => "Postal SMTP Test Message"
end
end
@@ -0,0 +1,3 @@
This is a test message sent by Postal.
If you have received this message your test has succeeded.