smtp server response configuration

Date
Total Views
3769
smtp server

SMTP Server Response Configuration

Steps

1) Go to My Account Page and write your Response url in “Delivery Post Url” field.

2) Check and Uncheck the Delivery Report Types accordingly.

3) Now we move to SMTP Code side. Create a header with name “smtp-campaign-id”

    For example if you use SMTP using C#

    using (SmtpClient smtpClient = new SmtpClient())

   {

        MailMessage mail = new MailMessage();

mail.Headers.Add("smtp-campaign-id", "your unique identity");

    }

4) Now when you send email and we will send the response in json format to you on your url which you have mentioned on my account page.

The Response Sample Format

[{"SenderName":"sender","SenderAddress":"abc@xyz.com","Subject":"Subject","Body":"<html><head><title></title></head><body><p>Hello</p><p>How are you</p><p>this is sample code for test json data</p></body></html>","SmtpCampaignId":"120001","EmailAddress":"xyz@gmail.com","Type" :"1","ScheduledDate":"1907121545","CreatedDate":"7/12/2019 3:45:19 PM"},{"SenderName":"sender","SenderAddress":"abc@xyz.com","Subject":"Subject","Body":"<html><head><title></title></head><body><p>Hello</p><p>How are you</p><p>this is sample code code for test json data</p></body></html>","SmtpCampaignId":"120001","EmailAddress":"abc@gmail.com","Type" :"3","ScheduledDate":"1907121545","CreatedDate":"7/12/2019 3:45:19 PM"}]

Leave a Reply

Your email address will not be published. Required fields are marked

Name

Post Comment