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.

On Wed, Dec 29, 2010 at 6:21 PM, Mike C [email protected] wrote:

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.