Skip to content

Instantly share code, notes, and snippets.

View grebett's full-sized avatar

Grégory B. grebett

View GitHub Profile
rm -rf /Users/toto
{
"Messages": [{
"Status": "Success",
"CustomID": "myCustomID",
"To": [{
"Email": "contact@mailjet.com",
"MessageUUID": "123",
"MessageID": "456",
"MessageHref": "https://api.mailjet.com/v3.1/message/456"
}],
{
"Status": "error",
"Errors": [{
"ErrorClass": "ValidationError",
"ErrorMessage": "HTML and TemplateID can't be used together",
"ErrorRelatedTo": ["HTMLPart", "TemplateID"],
"StatusCode": 400
}]
}
{
"Messages": [
{
"From": {
"Name": "Hello Mailjet",
"Email": "noreply@mailjet.com"
},
"Subject": "This is an example of a detailed sender payload",
"TemplateID": 6993,
"TemplateLanguage": true,
using Mailjet.Client;
using Mailjet.Client.Resources;
using System;
using Newtonsoft.Json.Linq;
namespace Mailjet.ConsoleApplication
{
class Program
{
/// <summary>