web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Triggering Plugin to send email in C#

(0) ShareShare
ReportReport
Posted on by

Is this possible? I keep getting security credential issues. Like I'm not permitted to access the SMTP() class.

I am using .NET services (.NET Mail) to send email but if it's easier to do it in CRM, I'm all for it, I just don't know how.

How do I give my program the right permission to execute anything it wants?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    KZee Profile Picture
    on at

    Hi,

    I am assuming you are not going to use CRM email functionality just to send emails from an external application then that will not be a good idea because that will introduce another layer of complexity since you are already having security credential issues.

    If you are trying to send an email from a plugin/ custom workflow activity or from an application integrated with dynamics crm then it is no doubt a good idea to use email functionality available in CRM because you can then link those emails with other entities like case.

    You can use Server Side sync to send emails out in CRM (or use Email router).

    Server Side Sync:

    technet.microsoft.com/.../mt622063.aspx

    Email router:

    msdn.microsoft.com/.../hh550129(v=crm.6).aspx

    Following link explains how to send email using C# in CRM.

    msdn.microsoft.com/.../hh210217.aspx

    Please mark the answer as verified if it was helpful.

  • Community Member Profile Picture
    on at

    This is an EXCELLENT! EXCELLENT response!!! Thank you

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans