make Transaction Model extendable
Moved sendMail to the controller, renamed as sendReceipt