Skip to main content

Notifications

Dynamics 365 general forum

Getting User does not have send-as privilege error while sending email through code

Posted on by 645

Hi,

Getting User does not have send-as privilege error while sending email through code. Even after enabling mail box for the user and "Send Email as Another user" role assinged.

7851.Capture.JPG

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    Hi Krish,

    In order to send email from a different user, 2 permissions/ settings are required.

    The user mentioned in the from address should have the setting checked under personal options “Allow other Microsoft Dynamics CRM users to send e-mail on your behalf” which appears under Options >> Email tab.

    Also, the user triggering/sending that email should also have "Send Email as Another User" security permissions.

    Do not that if you are sending it through real time workflow, and the workflow is set to execute as owner of the workflow then you need to set the "Send Email as Another User" security permissions for the owner of that workflow as well.

    worldofitguy.com/.../user-does-not-have-send-as-privilege-for-crm-2015

    Hope this helps.

  • Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    That user also have correct security role I hope.

    Then wait for some time and try again.

  • Integration Profile Picture
    Integration 645 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    The account which i am using to send email as "From address" in code.

  • Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    You have changed user setting for which user?

  • Integration Profile Picture
    Integration 645 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    yes,changed user setting as well

  • Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    Have you changed user setting of other user as well?

  • Integration Profile Picture
    Integration 645 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    I tried suggested option ,but still no luck.Only with admin account emails are working in code.If i use any other user account its either getting stuck in Pending status (or) User does not have send-as privilege error.

  • Verified answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Getting User does not have send-as privilege error while sending email through code

    You have to go to user settings and check " Allow Microsoft user to send email on your behalf". you can take help from below URL:

    www.iotap.com/.../email-configuration-settings-to-ensure-that-the-email-is-sent-from-crm

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans