-
Notifications
You must be signed in to change notification settings - Fork 46
Sending Attachments
Andrew Theken edited this page Dec 11, 2014
·
4 revisions
You may add file attachments to any outgoing email provided they comply with the current white-list of accepted email attachments.
var message = new PostmarkMessage();
message.To = "[email protected]";
message.Cc = "[email protected]";
message.Subject = "Sending an attachment";
message.Textbody = "Some plain text";
message.From = "[email protected]";
message.AddAttachment(@"c:\temp\test.pdf", "application/pdf");
var newClient = new PostmarkClient("server_token");
var response = newClient.SendMessageAsync(message);
You may add as many attachments as you like as long as you don't go past the total size limit of 10MB.
The Postmark.Net client can be installed from NuGet.
For additional information about the capabilities of the Postmark API, see http://developer.postmarkapp.com/.
- Getting Started
- Version 2.0 Upgrade Guide
- Sending Email
- Searching Sent Messages
- Analyzing Sent Messages
- Processing Inbound Email
- Retrieving Message Statistics
- Handling Bounces
- Managing Suppressions
- Working with Message Streams
- Managing Your Account
- Troubleshooting Async&Await
- Version 1.x Overview
- Sending Email
- Sending Batch Emails
- Sending Attachments
- Sending Inline Images
- Using
MailMessage
- Using the Bounce API
- [Getting Send Statistics](Sending Statistics)
- Adding Custom Email Headers