我是 Rails 的新手。在 Rails 3 中发送邮件是如何工作的?
它尝试了以下方法,但它不起作用:
调用邮件程序:
@invited_user = InviteUser.where(:email => @user.email)
邮寄者:
class InviteUsersMailer < ActionMailer::Base
default :from => "qqqqqreply@qqqqqqqq.com"
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