Notifications
Announcements
No record found.
i need to api code for send a email with attachment file in c#
Hello,
Check this post - crmblocks.blogspot.com/.../how-to-send-email-with-attachment-in.html
Please find below a sample that can be downloaded and begin a simple example from there , then you can use same code.
This is the official link from our documentation explain how to test the sample:
https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/sample-create-retrieve-update-delete-email-attachment#what-this-sample-does
Here you can download the whole project: https://github.com/Microsoft/PowerApps-Samples/
After download just navigate to "\PowerApps-Samples-master\PowerApps-Samples-master\cds\orgsvc\C#\CRUDEmailAttachements".
Open it in visual studio , make sure that all references is available , if not you can download it using NuGet package then the solution will be ready for test !
Let me know if any question/concern come up.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 74 Super User 2025 Season 2
Daniyal Khaleel 32 Most Valuable Professional
Gerardo RenterÃa Ga... 31 Most Valuable Professional