You should not delete the rest of the configuration in that file. The final result after modifying the files should be something like:
After you modify the file and save it, you should restart Apache. See the following screenshot:
Finally, when you browse to the Email section in the Admin page of Discourse, you should see your information updated (see screenshot). If the information you set in the configuration is right you should be able to send the email.