Failed to make email work with contents. Try building another mailer model and then making a view that takes in the parameter. PUt the mailing method in the mailer controller