[fix] bug when adding email address
[fix] only send emails if there is something in the array