old_contents: #!/usr/bin/env python3
  
  from GModServer.Variables import *
  
  def sendStartEMail(steamWorkshopId, serverGamemode, serverdefaultMap, serverMaxPlayer, serverPort):
      from eMail.StartTextFile import SendStartEMail
      SendStartEMail(steamWorkshopId, serverGamemode, serverdefaultMap, serverMaxPlayer, serverPort)
  
  def StartServer(steamApiAuthKey=SteamApiAuthKey, steamWorkShopId=SteamWorkShopId, serverGamemode=ServerGamemode, serverDefaultMap=ServerDefaultMap, serverMaxPlayer=ServerMaxPlayer, serverPort=ServerPort, debug=False):
      print("start")
      sendStartEMail(steamWorkShopId, serverGamemode, serverDefaultMap, serverMaxPlayer, serverPort)
      from GModServer.UpdateAndValidateServer import updateGarrysModServer
      updateGarrysModServer(debug=debug)
  
  
  
  if __name__ == '__main__':
      from PythonServerKernel.Exceptions import RunnedFromFalseFile
      raise RunnedFromFalseFile('GModServer_SendStartMail_py')
  
new_contents: #!/usr/bin/env python3
  
  from GModServer.Variables import *
  
  def sendStartEMail(steamWorkshopId, serverGamemode, serverdefaultMap, serverMaxPlayer, serverPort):
      from eMail.StartTextFile import SendStartEMail
      SendStartEMail(steamWorkshopId, serverGamemode, serverdefaultMap, serverMaxPlayer, serverPort)
  
  def StartServer(steamApiAuthKey=SteamApiAuthKey, steamWorkShopId=SteamWorkShopId, serverGamemode=ServerGamemode,
                  serverDefaultMap=ServerDefaultMap, serverMaxPlayer=ServerMaxPlayer, serverPort=ServerPort, debug=False):
      print("start")
      sendStartEMail(steamWorkShopId, serverGamemode, serverDefaultMap, serverMaxPlayer, serverPort)
      from GModServer.UpdateAndValidateServer import updateGarrysModServer
      updateGarrysModServer(debug=debug)
      from GModServer.StartServer import StartGarrysModServer
      StartGarrysModServer(debug=debug)
  
  
  
  if __name__ == '__main__':
      from PythonServerKernel.Exceptions import RunnedFromFalseFile
      raise RunnedFromFalseFile('GModServer_SendStartMail_py')
  
subject: add Startserver