fixed mailer. now sends pdf on updates