function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sawaji varunsawaji varun 

I want Create Chatter, email using Lightning.

What is the best way to do this either code or configuration.
salesforce mesalesforce me
Hi check this once...

From your post there seems that you want to restrict emails to users , but its not quite clear whether you want to totally restrict the email or you want to restrict the emails of only the newly formed users:-

In case you want to supress all email in the org the best way would be do globally turn email off from:-                        App Setup- Customize - Chatter - Settings -  {In this page under Email Notifications (section) uncheck the checkbox - Allow Emails}
In case you want to retain the email notifications and only want to restrict it for few users the best way to go about it is from:- Personal Setup->MyChatterSetting->ChatterEmailSetting from here you can make changes according to the access or setting you want to set for each user. 


1)https://developer.salesforce.com/trailhead/lex_implementation_chatter/lex_implementation_chatter_intro

2)https://developer.salesforce.com/page/An_Introduction_to_Salesforce_Chatter