diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 08c8ddb4..368248e0 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -10,7 +10,7 @@ class InvitesController < ApplicationController def create @invite = Invite.new(params[:invite]) if @invite.save - Mailer.invite(@invite) + Mailer.invite(@invite).deliver respond_to do |format| format.html do diff --git a/app/controllers/login_controller.rb b/app/controllers/login_controller.rb index f22bd701..9f847569 100644 --- a/app/controllers/login_controller.rb +++ b/app/controllers/login_controller.rb @@ -14,7 +14,7 @@ class LoginController < ApplicationController user.reset_password_token = user.new_random_password(16) user.reset_password_expires = Time.now.advance(:days => 2) if user.save - Mailer.reset_password(user) + Mailer.reset_password(user).deliver logger.debug("Sent password reset email to #{user.email}.") end end