You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I am getting SendGridClient in my service with the APIKey. But I want to change the API key before calling "SendEmailAsync". Can you please suggest any possible way for this.
The text was updated successfully, but these errors were encountered:
Hi Team,
I have added the following D.I. in my code,
services.AddSendGrid(options =>
{
options.ApiKey = Environment.GetEnvironmentVariable("SENDGRID_API_KEY");
})
Now I am getting SendGridClient in my service with the APIKey. But I want to change the API key before calling "SendEmailAsync". Can you please suggest any possible way for this.
The text was updated successfully, but these errors were encountered: