Is your feature request related to a problem? Please describe.
We setup sendgrid to leverage IpPoolName(s) and it can be set before we send the email.
i.e.
var message = SendGrid.Helpers.Mail.MailHelper.CreateSingleEmail(
new SendGrid.Helpers.Mail.EmailAddress(_configuration.SourceEmail, _configuration.SourceName),
new SendGrid.Helpers.Mail.EmailAddress(email),
subject,
null,
htmlMessage
);
if (_configuration.IpPoolName != null)
{
message.SetIpPoolName(_configuration.IpPoolName);
}
Describe the solution you'd like
Allow IpPoolName to be configurable.
public class SendGridConfiguration
{
public string ApiKey { get; set; }
public string SourceEmail { get; set; }
public string SourceName { get; set; }
public bool EnableClickTracking { get; set; } = false;
public string? IpPoolName { get; set; }
}
Is your feature request related to a problem? Please describe. We setup sendgrid to leverage IpPoolName(s) and it can be set before we send the email.
i.e.
Describe the solution you'd like Allow IpPoolName to be configurable.
I think this is the extent of the code change.