Announcement

Collapse
No announcement yet.

Emails can't be sent by non-admin users

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Emails can't be sent by non-admin users

    If user is not an admin they can not send email to Entity, nor they can test SMTP. Imap is tested ok. Logs below.


    WARNING: (403) :: POST /Email/sendTest :: /var/www/espo/application/Espo/Tools/Email/SendService.php(651)
    WARNING: (403) Assignment failure: assigned user or team not allowed. :: POST /Email :: /var/www/espo/application/Espo/Core/Record/Service.php(504)​

    When I make this user an admin, everything works fine.

    Setting role permitions to everything "all" and "yes" doesn't help.
    Nor helped disabling and enabling Email; Setting default team; Clearing and/or disabling cache; rebuilding Application.

    Current version: 8.4.2
    Click image for larger version

Name:	image.png
Views:	81
Size:	69.5 KB
ID:	111512

  • #2
    If you want to allow sending Emails for all users by using the SMTP configured system-email for outgoing emails, you must mark that possibility in the outgoing mail configuration (right at the top).
    You can also allow personal Email accounts, where you could different SMTP for the user of that account.

    Comment


    • Vit
      Vit commented
      Editing a comment
      The issue is with personal accounts. If user is regular, there's no possibility to send or even test SMTP. For same user as admin all works fine. It has definately to be something with rights. However all rights are set to maximum as you can see in the screenshot. Any ideas where to look?

  • #3
    We don't have such issue. And haven't received reports from users. Maybe something is corrupted.

    Comment


    • Vit
      Vit commented
      Editing a comment
      What can possibly be corrupted? Have you got any ideas on it?

    • yuri
      yuri commented
      Editing a comment
      Maybe some files are from an older version. To ensure, you can copy-paste the whole "application" folder from the corresponding release package. You can download the package from the GitHub.

    • Vit
      Vit commented
      Editing a comment
      I downloaded the latest version from espo website. No updates are available though. I can try what you've suggested. Otherwise I will have to overrige Email controller with custom methods. And that's pretty much to do.

  • #4
    Send Test Email should work for a regular users. They should have the ability to create a personal email account considering it's allowed in roles to create Personal Accounts and an email address is the same as the user's email address. Meaning that a regular user cannot pick an arbitrary email address when creating an email account.

    I suspect that somehow an email address used for a personal email account does not match the users' email address. But not sure.

    If there were detail steps to reproduce (what we require in bug report rules) it would be likely easier to find out. It's not very clear what exactly you are doing before getting an error. There are multiple possible scenarios.​

    Comment


    • Vit
      Vit commented
      Editing a comment
      User email address is the same as account email addres. I've just double checked it. It defenately has to do something with roles and acess settings. Are there some other options that can override access setings but are ignored if user is an admin?
Working...
X