Add mailtrap.io SMTP settings
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
class UserMailer < ActionMailer::Base
|
||||||
|
default from: "from@example.com"
|
||||||
|
end
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
ActionMailer::Base.smtp_settings = {
|
||||||
|
:address => 'mailtrap.io',
|
||||||
|
:port => 2525,
|
||||||
|
:authentication => :plain,
|
||||||
|
:user_name => ENV['MAILTRAP_USERNAME'],
|
||||||
|
:password => ENV['MAILTRAP_PASSWORD'],
|
||||||
|
}
|
||||||
|
|
||||||
|
ActionMailer::Base.delivery_method = :smtp
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
require "spec_helper"
|
||||||
|
|
||||||
|
describe UserMailer do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user