Improvement for sending email

Fixed error when sending e-mails to create users
Merge pull request #4 from xus/master

Improvement for sending email