fn_email_test 628 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # LGSM fn_email_test function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. # Version: 210115
  6. # Description: Sends a test email notification.
  7. local modulename="Email"
  8. fn_check_root
  9. fn_check_systemdir
  10. fn_details_config
  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. fn_email
  17. else
  18. fn_printfailnl "Notifications not enabled"
  19. fn_scriptlog "Notifications not enabled"
  20. fi