summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/ISendGrid.cs
diff options
context:
space:
mode:
authorBrandon West <brawest@gmail.com>2012-07-13 15:57:31 -0600
committerBrandon West <brawest@gmail.com>2012-07-13 15:57:31 -0600
commitcbfe73a74a42120d3c061633c45e1c99f1921ae2 (patch)
treec6c45dcce65a962a262f3818e012762347c231b1 /SendGrid/SendGridMail/ISendGrid.cs
parentc76114aee3506b0640b9b567a846c701d78f0b5d (diff)
parent1112ba4c4ac77b63ad63b729d68e3c816093c701 (diff)
downloadsendgrid-csharp-cbfe73a74a42120d3c061633c45e1c99f1921ae2.zip
sendgrid-csharp-cbfe73a74a42120d3c061633c45e1c99f1921ae2.tar.gz
sendgrid-csharp-cbfe73a74a42120d3c061633c45e1c99f1921ae2.tar.bz2
merge streaming-attachments branch
Diffstat (limited to 'SendGrid/SendGridMail/ISendGrid.cs')
-rwxr-xr-xSendGrid/SendGridMail/ISendGrid.cs9
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>