Salesforceのサンドボックス環境でメール送信
イシュー
- サンドボックス環境でメール送信しようとすると以下のエラー
SendEmail failed. First exception on row 0; first error: NO_MASS_MAIL_PERMISSION, Single email is not enabled for your organization or profile. Single email must be enabled for you to use this feature.: [] page estimateemailsend のコンポーネント <apex:commandButton> の式「{!sendEmail}」にエラーがあります。
参考
サンドボックスでは意図的にメール設定をOFFにしている
- [ユーザ名]>[設定]>[メール管理]>[送信] の「メールを送信するためのアクセス権」を設定する必要があります。