Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MailChimp (Mandrill) for .NET why email includes Image?

I'm using MailChimp for .NET from this nuget https://www.nuget.org/packages/mcapi.net/1.3.1.3 and tried sending emails. But the email I received include image (unseen image) even if I'm just sending simple html. Has anyone encountered it? How to get rid of this unseen image? Please help.

Below is my sample email message.

var api = new MandrillApi("XXXXXXXXXXX");
var recipients = new List<Mandrill.Messages.Recipient>();
var name = string.Format("{0} {1}", "Jobert", "Enamno");
recipients.Add(new Mandrill.Messages.Recipient("[email protected]", name));
var message = new Mandrill.Messages.Message()
{
   To = recipients.ToArray(),
   FromEmail = "[email protected]",
   Subject = "Test Email",
   Html = "<div>Test</div>"
};
MVList<Mandrill.Messages.SendResult> result;
result = api.Send(message);

Received Email enter image description here

When clicked No image shown

enter image description here

like image 473
Jobert Enamno Avatar asked Oct 20 '13 09:10

Jobert Enamno


1 Answers

You're seeing this because Mandrill uses a small invisible graphic for open tracking. You'd want to either disable open tracking in the API call you're making or on the Sending Options page in your Mandrill account.

like image 115
Kaitlin Avatar answered Nov 25 '22 00:11

Kaitlin