You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For base64 encoding, see [`Convert.ToBase64String`](https://msdn.microsoft.com/en-us/library/system.convert.tobase64string(v=vs.110).aspx)
198
+
// For base64 encoding, see [`Convert.ToBase64String`](https://msdn.microsoft.com/en-us/library/system.convert.tobase64string(v=vs.110).aspx)
199
199
// For an example using an attachment, please see this [use case](https://github.com/sendgrid/sendgrid-csharp/blob/master/USE_CASES.md#attachments).
200
-
msg.AddAttachment("balance_001.pdf",
201
-
"base64 encoded string",
202
-
"application/pdf",
203
-
"attachment",
204
-
"Balance Sheet");
200
+
msg.AddAttachment("balance_001.pdf",
201
+
"base64 encoded string",
202
+
"application/pdf",
203
+
"attachment",
204
+
"Balance Sheet");
205
205
varattachments=newList<Attachment>()
206
206
{
207
-
newAttachment()
207
+
newAttachment()
208
+
{
209
+
Content="base64 encoded string",
210
+
Type="image/png",
211
+
Filename="banner.png",
212
+
Disposition="inline",
213
+
ContentId="Banner"
214
+
},
215
+
newAttachment()
208
216
{
209
-
Content="base64 encoded string",
210
-
Type="image/png",
211
-
Filename="banner.png",
212
-
Disposition="inline",
213
-
ContentId="Banner"
214
-
},
215
-
newAttachment()
216
-
{
217
-
Content="base64 encoded string",
218
-
Type="image/png",
219
-
Filename="banner2.png",
220
-
Disposition="inline",
221
-
ContentId="Banner 2"
222
-
}
217
+
Content="base64 encoded string",
218
+
Type="image/png",
219
+
Filename="banner2.png",
220
+
Disposition="inline",
221
+
ContentId="Banner 2"
222
+
}
223
223
};
224
-
msg.AddAttachments(attachments);
224
+
msg.AddAttachments(attachments);
225
225
226
226
// For a full transactional template example, please see this [use case](https://github.com/sendgrid/sendgrid-csharp/blob/master/USE_CASES.md#transactional-templates).
0 commit comments