Skip to main content

Action mailer rails 6

Rails • Asked by Pratima Singh

Hey Chris,

cannot send email from console using UserMailer.welcome_email.perform_now, geting this error

Traceback (most recent call last):
        1: from (irb):3
NameError (uninitialized constant UserMailer

why is it saying (uninitialized constant UserMailer)

Is the filename correct for that file? Maybe a typo somewhere? it's usually something as simple as that.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.