I'm new to Rails. How does sending mail in Rails 3 work?
It tried the following, but it doesn't work:
Calling the mailer:
@invited_user = InviteUser.where(:email => @user.email)
Mailer:
class InviteUsersMailer < ActionMailer::Base
default :from => "[email protected]"
def invite_biller_email(inviter_details)
@invitation_details = inviter_details
@user = User.find(@invitation_details.request_sent_by)
mail(:to => @invitation_details.email, :subject => "xxxxxxxxxxx")
end
end