Add fetch and send mail logic