Fixed url bug in mailer.