mailer fixed, pagination added