13p14
Sending File and Data to a Minimal API endpoint
Hi. I am using .NET 7, Minimal API and Mailkit.
What I want to do is to send an attachment along with other information in an email. I want to receive both the information and the file using a Form-Data request type but I am having problems receiving the information .
The error I am getting is:
.
Here is the endpoint code :
And here is the REmailWithAttachments class:
7 replies