Made the mailer URL be a bit more robust