2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

Avoid a deprecation warning by poly-filling #deliver_now and #deliver_now

This commit is contained in:
Godfrey Chan 2014-10-15 00:04:47 -07:00
parent 7351917ee4
commit b1a0cd417d
5 changed files with 22 additions and 9 deletions

View file

@ -38,7 +38,7 @@ end
message = EmailTestMailer.email_test(MAILFROM, MAILTO)
begin
message.deliver()
message.deliver_now()
rescue SocketError => e
print "Delivery failed: "+e.message.strip()+"\n"
print " Is the server hostname correct?\n"