v4 and sendEmail from BL
in v3 I had disabled permissions for auth/nonauth users to send email, and enabled for serverCodeUser and it was fine - BL script sent emails while client users wasn't been able to abuse and send email.
Now after migration I'm receiving error "User has no permission to send email" when BL script tries to send email. Turns out I need to enable "send email" for authenticated user in order for BL send email to work. But I don't want authenticated users to have this permission, I only need it to work from server side.