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)

CRM 365 Sample c# code to send email using exchange email account.

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

I need to get a sample c# code to send the attachment within an email having ofifice account and exchange .

anything will be appreciable.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello,

    You may already viewed below article, please have a look.

    community.dynamics.com/.../create-email-message-with-attachment-from-a-note

  • EmployeeOcta Profile Picture
    6 on at

    Hello Goutam,

    i need to send email from within console application using exchange.

    in the above code it's showing crm entity for creation of email.

    i want to send email with excel file attachment.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Then this is a wrong forum for your question. If you're not aware - this forum is dedicated to development for Dynamics CRM and not exchange.

  • EmployeeOcta Profile Picture
    6 on at

    Hello Andrew,

    i do understand that but c#.net and exchange are also related with crm.

    so i asked the query.

    i have been trying to search for the option but no code is w.r.t exchange , there are code w.r.t smtp server and gmail account.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I will not argue - it has absolutely no sense but I wish you luck getting this question answered from this CRM-dedicated forum.

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Hi Employee,

    Andrew is right, but you can try the following sample:

    github.com/.../CodeSamples

    Take a look at the MailerClass.cs file that has that logic.

    Hope this helps.

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