How to send SMS or Email automatically to customers when payment is recorded on web?

Please go to settings >> preferences >> document >> general >> enable send SMS and send Email on record payment >> save and update