email_test.sh 629 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # LGSM email_test.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="061115"
  6. # Description: Sends a test email notification.
  7. local modulename="Email"
  8. check_root.sh
  9. fn_check_systemdir
  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_printfailnl "Notifications not enabled"
  19. fn_scriptlog "Notifications not enabled"
  20. fi