Vikas

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Action mailer rails 6

cannot send email from console using in rails 6

EmailMailer.welcome.perform_now
Traceback (most recent call last):
2: from (irb):2
1: from (irb):2:in `rescue in irb_binding'
NameError (uninitialized constant EmailMailer)

my EmailMailer

class EmailMailer < ApplicationMailer

def welcome
@greeting = "Hi"

mail to:  my_email_address

end
end