Improvement for sending email

Fixed error when sending e-mails to create users