Fix empty user id for external user when sending email + create a function to send email to external user without warnings