Fixed and added associations

Updated mailer to use the new associations
I think I finally understood how to get them to work! XD