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

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.