Sendgrid-BCC API从邮件设置中删除

问题描述 投票:2回答:1

我正在Rails应用程序中使用Sendgrid发送电子邮件。我收到了Sengrid的电子邮件,内容是:

We’re emailing you with an update concerning the retirement of the BCC feature of our Email API. Our records show that you are still using the BCC feature.

If our previous correspondence regarding the removal of BCC did not make it your way, we apologize. We strive to provide thorough communication and ample warning of feature deprecations and removals. We recognize the change caught some customers by surprise.

To help you make any necessary changes to your sends, the BCC feature under settings will be available until June 22nd, 2020. This feature is now unavailable from the UI and only accessible via API call. We understand that removing a service or feature requires time on the part of our customers, and we hope that extending the availability of BCC is helpful.

Again, the BCC feature will be fully removed June 22nd, 2020.

从现在开始如何在Sendgrid中使用BCC功能?

ruby-on-rails sendgrid sendgrid-api-v3 sendgrid-rails
1个回答
0
投票

Ruby APi的Personalization对象完成了这项工作。它将允许您设置BCC程序。

我像这样在Java应用程序中进行了必需的更新。

final Personalization mailPersonalize = new Personalization();
mailPersonalize.addBcc(yourBcc);

final Request request = new Request();

final Mail mail = new Mail();
mail.addPersonalization(mailPersonalize);
request.setBody(mail.buildPretty());
final Response response = sendGrid.api(request);

我希望这会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.