mailjet mailers

This commit is contained in:
2015-10-08 19:16:33 -05:00
parent 5a9c4a341a
commit 9f7f29f327
13 changed files with 56 additions and 2 deletions

View File

@ -14,8 +14,8 @@ class OauthsController < ApplicationController
else
begin
@user = create_from(provider)
# NOTE: this is the place to add '@user.activate!'
# if you are using user_activation submodule
# NOTE: this is the place to add '@user.activate!' if you
# are using user_activation submodule
reset_session # protect from session fixation attack
auto_login(@user)

View File

@ -0,0 +1,6 @@
class AccountMailer < ApplicationMailer
def activation_needed
@blarg = "This was blarg"
mail(to: 'markamoser+test@gmail.com', subject: 'Activate me please!')
end
end

View File

@ -0,0 +1,4 @@
class ApplicationMailer < ActionMailer::Base
default from: ENV['default_mail_from']
layout 'mailer'
end

View File

@ -0,0 +1,4 @@
!!!
%h3 Activate me please
%p and then: #{@blarg}

View File

@ -0,0 +1,3 @@
%hmtl
%body
= yield

View File

@ -0,0 +1 @@
= yield