You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🔀 ✨ feat: Use draft/upload for attachments, revert to original API when no attachments (#133)
BREAKING: Needs **extra Graph API permission** `Mail.ReadWrite` if adding attachments to file.
REMOVE: The `SaveSentItems` option has been removed.
Include both original and new way of sending mails.
New test console app.
Push prerelease to Github packages.
Add reproducible build.
Copy file name to clipboardExpand all lines: README.md
+44-13Lines changed: 44 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,7 @@
1
-
# Fork of NatchEurope/FluentEmail.Graph
2
-
3
-
Fork of [NatchEurope/FluentEmail.Graph](https://github.com/NatchEurope/FluentEmail.Graph) that modifies the `GraphSender` to use an upload session for sending emails with attachments that are 3MB or larger. I was receiving a Microsoft Graph API error when trying to use FluentEmail.Graph to send emails with attachments over 3MB.
4
-
5
-
[Microsoft Docs on using the Graph API to send large attachments](https://docs.microsoft.com/en-us/graph/outlook-large-attachments?tabs=csharp)
6
-
7
-
Unfortunately, the Microsoft Graph API `Send` method does not have a `SaveSentItems` argument like the `SendMail` method does, so I had to remove the option to disable saving sent items. See [Link 1](https://docs.microsoft.com/en-us/answers/questions/337574/graph-sdk-i-want-to-send-the-saved-draft-mail-but.html), [Link 2](https://docs.microsoft.com/en-us/graph/api/message-send?view=graph-rest-1.0&tabs=http), and [Link 3](https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/743).
8
-
9
1
# FluentEmail.Graph
10
2
11
-
Sender for [FluentEmail](https://github.com/lukencode/FluentEmail) that uses [Microsoft Graph API](https://docs.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0).
3
+
Sender for [FluentEmail](https://github.com/lukencode/FluentEmail) that
and [Link 3](https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/743)).
62
+
63
+
Uploading attachments to a draft message was contributed by [@huntmj01](https://github.com/huntmj01).
64
+
65
+
## Graph API Permissions
66
+
67
+
The `Mail.Send` permission must be granted.
68
+
69
+
Adding attachments? Then the `Mail.ReadWrite` permissions is also required.
70
+
44
71
## Release
45
72
46
73
Create new release with creation of new tag on main branch.
47
74
48
-
Start [publish](https://github.com/ESC-BV/FluentEmail.Graph/actions/workflows/publish.yml) manually, for the new tag. This will push the package to github and nuget.org
75
+
Start [publish](https://github.com/ESC-BV/FluentEmail.Graph/actions/workflows/publish.yml) manually, for the new tag.
76
+
This will push the package to github and nuget.org
49
77
50
78
## Origin
51
79
52
-
Code originally written by [Matt Goldman](https://github.com/matt-goldman) and [merged](https://github.com/lukencode/FluentEmail/pull/218) into FluentEmail repo. But it was not published to NuGet until January 2021. Because we needed this implementation we created a separate repo, modified the code a bit and published it to NuGet.
80
+
Code originally written by [Matt Goldman](https://github.com/matt-goldman)
81
+
and [merged](https://github.com/lukencode/FluentEmail/pull/218) into FluentEmail repo. But it was not published to NuGet
82
+
until January 2021. Because we needed this implementation we created a separate repo, modified the code a bit and
0 commit comments