code: def insert(self, context):
  	
  		
  		
  		status_code, msg = self.__endpoint.post(
  			"/resources/mail-resource",
  			data={
  				"id": self.__name,
  				"host": self.__host,
  				"user": self.__username,
  				"from": self.__mail_from,
  				"property": props_value(self.__props)
  			}
  		)
  		self.__available = True
docs: Create mail session.
  		
  		:param resort.engine.execution.Context context:
  		   Current execution context.