Added a rescue block in case the mail doesn't get delivered.