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
Keith Stephens 18Keith Stephens 18 

email on login

Is it possible to have the user get an email, everytime they log into Salesforce?  If so How?
Thanks,
Keith.
PawanKumarPawanKumar
Hi Keith,
Any specific reason for this. what is the business objective?

Regards,
Pawan Kumar
Keith Stephens 18Keith Stephens 18
Was a request from the CFO.
PawanKumarPawanKumar
Hi Keith,
You can not send email after each login. But you can setup two factor authentication. What it does : whenever you login it will ask for mobile authentication. Until and unless you do not authorize from mobile, you login will fail. You can propose this solution from security point of view. It's too simple to setup.

// you can get hands-on
https://trailhead.salesforce.com/en/modules/identity_login/units/identity_login_2fa


// Authenticator url
https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwiw1cHE597VAhUJuY8KHdynA00QFggtMAI&url=https%3A%2F%2Fwww.salesforce.com%2Fsolutions%2Fmobile%2Fapp-suite%2Fsecurity%2F&usg=AFQjCNFxjGZI-F4ILLjRfb3RpQGtJb0NQA

Regards,
Pawan Kumar
SKolakanSKolakan
@Keith
You can do it with Login Flows. Here is the link for documentation on how login flows work: https://help.salesforce.com/articleView?id=security_login_flow.htm&siteLang=en_US&type=0