最近更新された Sandbox のトリガーを使ってメールを送信すると、エラーが発生することがあります。
トリガーを使ってメールを送信すると、次のようなエラーが発生する理由は以下の通りです。 「System.EmailException: SendEmail failed. First exception on row 0; first error: NO_MASS_MAIL_PERMISSION,」
トリガーは、システム管理者のプロファイルを持つユーザーによって実行され、一括メールと単一メールの両方がプロファイルに対して有効になっています。
理由は以下の通りです。
Salesforce Classic: [設定] | [管理] | [メール管理] | [送信] で、[アクセス権] が [すべてのメール] に設定されていることを確認します。
Lightning Experience: 歯車アイコン | [設定] | [管理] | [メール] | [送信] で、[アクセス権] が [すべてのメール] に設定されていることを確認します。
注: 更新された Sandbox でのデフォルトの送信設定は [システムメールのみ] となっています。
000384750

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.