ArgumentError (wrong number of arguments (given 0, expected 1)): app/mailers/successful_campaign_mailer.rb:4:in `successful_campaign_email’
I’m passing in a user object…
and here is my mailer…
class SuccessfulCampaignMailer < ApplicationMailer
default from: ‘email@example.com’
def successful_campaign_email(user) @user = user mail(to: @user.email , subject: 'The campaign was a success...') end
What did I miss?