class DonationMailer < ApplicationMailer
  layout 'mailer'

  def donation_email(email, co2, fullname, total_donation,
        campaign_donation, donation_timestamp, campaign, project, partner)
    @co2 = co2
    @fullname = fullname
    @total_donation = total_donation
    @campaign_donation = campaign_donation
    @donation_timestamp = donation_timestamp
    @campaign = campaign
    @project = project
    @partner = partner
    mail(to: email, subject: "Thank you for donating with Climate Cents")
  end

  def direct_donation_email(email, fullname, campaign_donation, donation_timestamp)
    @fullname = fullname
    @campaign_donation = campaign_donation
    @donation_timestamp = donation_timestamp
    mail(to: email, subject: "Thank you for donating to Climate Cents")
  end
end
