trying to fix problem when send emails