how to use the new mailer inside a model

I want to call the mailer from inside my model, but it gives me this error:

uninitialized constant User::PasswordResetMailer

So I'm assuming that I have to include it somehow, but I'm not sure how to do this. I've tried searching Google but I'm not getting any helpful results.

I want to call the mailer from inside my model, but it gives me this

error:

uninitialized constant User::PasswordResetMailer

So I’m assuming that I have to include it somehow, but I’m not sure

how to do this. I’ve tried searching Google but I’m not getting any

helpful results.

It would help if you post the pertinent area of your model.