如何让Salesforce系统不发送邮件?
假如你在使用Sandbox调试发送邮件以外的bug,如果一直发送mail,会给邮件接收的人会感到非常不爽。
这时你可以把Sandbox的邮件发送功能无效化。
【设定】【邮件管理】【邮件发送】
Setup -> Email Administration - > Email Deliverability
Set to “No Access”
This will stop ALL email from being sent which seems like what you want. Be aware though it could cause code to throw errors if you have any code attempting to send email without checking availability first.
-
No access: Prevents all outbound email to and from users.
-
System email only: Allows only automatically generated emails, such as new user and password reset emails. Especially useful for controlling email sent from sandboxes so that testing and development work doesn’t send test emails to your users. Newly created sandboxes default to System email only.
-
All email: Allows all types of outbound email. Default for new, non-sandbox organizations. Sandboxes created before Spring ’13 default to All email.