We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Track Email activity through aspose.email

Hi,

I am planning to use this library in our projects.
I need below email sending activity.
Sends,
Rejects,
Bounces,
Complaints,
Deliveries,
Opens ,
Clicks

Please let me know how we can track email activities.

Thanks
Saurabh

@saurabh554,

Can you please elaborate your query in more details so that we may help you out. Also please share requirements in form of sample if possible.

Hi Adan,

We are sending email through aspose.email library.
Now we want to track email is open /read by user and bounce due to any reason.

Thanks
Saurabh

@saurabh554,

I like to inform that if delivery Status Notification enabled on SMTP server you can use MailMessage.DeliveryNotificationOptions. Also we can use MailMessage.ReversePath to set the bounce/error report address.

MailMessage.DeliveryNotificationOptions code is given below.

MailMessage message = new MailMessage();
message.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;
message.Headers.Add(“Disposition-Notification-To”, "admin@mydomain.com");
message.Headers.Add(“Return-Receipt-To”, "admin@mydomain.com");
SmtpClient client = new SmtpClient(“mysmtpserver”);
client.Send(message);

MailMessage.ReversePath is given below.

MailMessage message = new MailMessage();
message.From = "me@mydomain.com";
message.To = "doesnotexist@foreigndomain.com");
message.ReversePath = "bouncesmailbox@mydomain.com";
SmtpClient client = new SmtpClient(“mysmtpserver”);
client.Send(message);

Hi Adnan,

Also I need notification for email read by user or not.

Thanks

@saurabh554,

Can you please elaborate your requirement?

Hi

I am sending email through aspose email send method.
So need to track if recipient read email which send by our domain.

Thanks

@saurabh554,

Thanks for contacting us. Can you please visit this link for sample example. This will help you to achieve your requirements.