diff options
Diffstat (limited to 'SendGrid/SendGridMail/SendGrid.cs')
-rwxr-xr-x | SendGrid/SendGridMail/SendGrid.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SendGrid/SendGridMail/SendGrid.cs b/SendGrid/SendGridMail/SendGrid.cs index 4a14211..3f2878f 100755 --- a/SendGrid/SendGridMail/SendGrid.cs +++ b/SendGrid/SendGridMail/SendGrid.cs @@ -305,14 +305,14 @@ namespace SendGridMail {
Header.SetCategory(category);
}
-
+ public void AddAttachment(Stream stream, String name)
{
MemoryStream ms = new MemoryStream();
stream.CopyTo(ms);
StreamedAttachments[name] = ms;
}
-
+ public void AddAttachment(String filePath)
{
_attachments.Add(filePath);
|