diff options
author | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-04-25 15:51:54 -0700 |
---|---|---|
committer | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-04-25 15:51:54 -0700 |
commit | cc1953ef91a3b34f7ae338a8a1d976cf93583b57 (patch) | |
tree | 104e1e1c7bb033a3a9a5112c4bc7b74c3ab348d4 /SendGrid/SendGridMail/ISendGrid.cs | |
parent | cf275fca7c7c78364bf5031d0ab7dc01afdd51c4 (diff) | |
download | sendgrid-csharp-cc1953ef91a3b34f7ae338a8a1d976cf93583b57.zip sendgrid-csharp-cc1953ef91a3b34f7ae338a8a1d976cf93583b57.tar.gz sendgrid-csharp-cc1953ef91a3b34f7ae338a8a1d976cf93583b57.tar.bz2 |
added support for attachments by streams, and made the REST call truncate to onl the file name, not the full path
Diffstat (limited to 'SendGrid/SendGridMail/ISendGrid.cs')
-rwxr-xr-x | SendGrid/SendGridMail/ISendGrid.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/ISendGrid.cs b/SendGrid/SendGridMail/ISendGrid.cs index 10f0826..a96e93c 100755 --- a/SendGrid/SendGridMail/ISendGrid.cs +++ b/SendGrid/SendGridMail/ISendGrid.cs @@ -1,5 +1,6 @@ using System;
using System.Collections.Generic;
+using System.IO;
using System.Net;
using System.Net.Mail;
@@ -17,6 +18,7 @@ namespace SendGridMail MailAddress[] Cc { get; }
MailAddress[] Bcc { get; }
MailAddress[] ReplyTo { get; set; }
+ Dictionary<String, MemoryStream> StreamedAttachments { get; set; }
String[] Attachments { get; set; }
String Subject { get; set; }
Dictionary<String, String> Headers { get; set; }
@@ -120,6 +122,13 @@ namespace SendGridMail void AddAttachment(String filePath);
/// <summary>
+ /// Add a stream as an attachment to the message
+ /// </summary>
+ /// <param name="stream">Stream of file to be attached</param>
+ /// <param name="name">Name of file to be attached</param>
+ void AddAttachment(Stream stream, String name);
+
+ /// <summary>
/// GetRecipients returns a list of all the recepients by retrieving the to, cc, and bcc lists.
/// </summary>
/// <returns></returns>
|