Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by

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

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: CRM 365 Sample c# code to send email using exchange email account.

    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.

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: CRM 365 Sample c# code to send email using exchange email account.

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

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: CRM 365 Sample c# code to send email using exchange email account.

    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.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: CRM 365 Sample c# code to send email using exchange email account.

    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
    EmployeeOcta on at
    RE: CRM 365 Sample c# code to send email using exchange email account.

    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
    gdas Profile Picture
    gdas 50,085 on at
    RE: CRM 365 Sample c# code to send email using exchange email account.

    Hello,

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

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans