pagination and sendmail view