To turn ON/OFF the send invoice automatically, please follow the below mentioned steps:
Step1: Go to Settings
Step 2: Go to Preferences under the General Settings >> Go to Document >> Go to Sales >> Send Invoices Automatically >> Enable/Disable >> Save Changes