Finished logic with convert mail to spread