locked
SendGrid.SmtpApi : 1.3.1 to 1.3.3 issue RRS feed

  • Question

  • User2066821689 posted

    I have updated following packages for sendgrid email functionality
    1) SendGrid
    2) SendGridMail
    3) SendGrid.SmtpApi
    While I updated the packages my email functionality not work properly.
    myMessage.Header.SetTo methods are not exist in updated version of SendGrid.SmtpApi

    Tuesday, December 5, 2017 9:18 AM

All replies

  • User61956409 posted

    Hi atozDev,<o:p></o:p>

    <o:p>

    myMessage.Header.SetTo methods are not exist in updated version of SendGrid.SmtpApi
    </o:p>

    You can share your packages.config and sample code, and then I will help troubleshoot the issue. Besides, if you’d like to specify multiple recipients, you can initialize an instance of Header class and add multiple recipients via header.SetTo(recipients) method, do something like the following:<o:p></o:p>

    var header = new Header();
    
    var recipients = new List<String> { "test1@example.com", "test2@example.com", "test3@example.com" };
    header.SetTo(recipients);
    

    For detailed information, please read the documentation of SendGrid.SmtpApi.<o:p></o:p>

    With Regards, <o:p></o:p>

    Fei Han<o:p></o:p>

    Wednesday, December 6, 2017 2:35 AM