Changed paths to urls in mailer controller