command_email_test.sh 682 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # LGSM command_email_test.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="271215"
  6. # Description: Sends a test email notification.
  7. local modulename="Email"
  8. function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. check.sh
  10. info_config.sh
  11. if [ "${emailnotification}" = "on" ]; then
  12. fn_scriptlog "Sending test notification"
  13. subject="${servicename} Email Test Notification - Testing ${servername}"
  14. failurereason="Testing ${servicename} email notification"
  15. actiontaken="Sent test email...hello is this thing on?"
  16. email.sh
  17. else
  18. fn_print_fail_nl "Notifications not enabled"
  19. fn_scriptlog "Notifications not enabled"
  20. fi