make a way to send mails
little change to the way of sending mails