app/mailers/event_create_mailer.rb
class EventCreateMailer < ActionMailer::Base
default from: 'notifications@uprisecampaigns.org', template_path: 'notification_mailer'
def notify_creator event
@event = event
@subject = ' You have created a new event.'
mail to: @event.user.email, subject: @subject, template_name: :event_create_mail
end
end