小编Tej*_*jas的帖子

如何使用 C# 将抄送添加到 SendGrid 邮件

这是我的代码..

var client = new SendGridClient(SendGridEmailEntity.Key);

var from = new EmailAddress(SendGridEmailEntity.Mail, SendGridEmailEntity.DisplayName);

var subject = templateRecord.EmailFrm.SubjectName;

var to = new EmailAddress(activeQueueEntities[i].EmailId, activeQueueEntities[i].Name);

var plainTextContent = "";

var htmlContent = templateRecord.TemplateContent;
Run Code Online (Sandbox Code Playgroud)

var msg = MailHelper.CreateSingleEmail(from, to, subject, plainTextContent, htmlContent);

sendgrid sendgrid-templates

5
推荐指数
1
解决办法
1581
查看次数

标签 统计

sendgrid ×1

sendgrid-templates ×1