summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/Transport/Web.cs
diff options
context:
space:
mode:
authorShawn A. Luce <shawn@saluce.com>2014-05-15 16:59:50 -0500
committerShawn A. Luce <shawn@saluce.com>2014-05-15 16:59:50 -0500
commitf6a3e659081c641b45f94978fd59df5244d5c4d3 (patch)
tree763d16295c96a1259a8e8a2d8144a963ee81a221 /SendGrid/SendGridMail/Transport/Web.cs
parent64bf5a7ea806cf8974c239e9faab50020d8e8079 (diff)
downloadsendgrid-csharp-f6a3e659081c641b45f94978fd59df5244d5c4d3.zip
sendgrid-csharp-f6a3e659081c641b45f94978fd59df5244d5c4d3.tar.gz
sendgrid-csharp-f6a3e659081c641b45f94978fd59df5244d5c4d3.tar.bz2
Added support for inline images and minor name changes in the MailBuilder
Diffstat (limited to 'SendGrid/SendGridMail/Transport/Web.cs')
-rw-r--r--SendGrid/SendGridMail/Transport/Web.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs
index f053575..a26e9e0 100644
--- a/SendGrid/SendGridMail/Transport/Web.cs
+++ b/SendGrid/SendGridMail/Transport/Web.cs
@@ -210,6 +210,10 @@ namespace SendGridMail
result = result.Concat(message.Cc.ToList().Select(a => new KeyValuePair<String, String>("cc[]", a.Address)))
.ToList();
}
+ if (message.GetEmbeddedImages().Count > 0) {
+ result = result.Concat(message.GetEmbeddedImages().ToList().Select(x => new KeyValuePair<String, String>(string.Format("content[{0}]", x.Key), x.Value)))
+ .ToList();
+ }
return result.Where(r => !String.IsNullOrEmpty(r.Value)).ToList();
}