![]()  | 
	
		
 Windows Email Notifier? 
		
		
		Does anyone have a program or script that would auto notify  via email people that they can play their turn in a multi TCP/IP game? It needs to be for Windows... 
	 | 
		
 Re: Windows Email Notifier? 
		
		
		It gets rough in windows. But the googler keywords you want are "command line" windows client 
	You might check out these.. googling  | 
		
 Re: Windows Email Notifier? 
		
		
		For Linux servers, I use this script as my --postexec for email notifications 
	Code: #!/bin/bash PLAYER1=someguy@someemail.com PLAYER2=someguy@someemail.com PLAYER3=someguy@someemail.com PLAYER4=someguy@someemail.com PLAYER5=someguy@someemail.com PLAYER6=someguy@someemail.com PLAYER7=someguy@someemail.com PLAYER8=someguy@someemail.com sendmail -fme@my.isp.com -FDomserver $PLAYER1 $PLAYER2 $PLAYER3 $PLAYER4 $PLAYER5 $PLAYER7 $PLAYER8 <<EOF From: Nick's Dom3 Server <me@my.isp.com> Subject: Game has hosted Please connect to server XXXX port YYYY to play your next turn . EOF For windows servers, I install windows scripting host and then use this vbs script Code: Set objEmail = CreateObject("CDO.Message") objEmail.From = "yourusername@yourdomain.com" objEmail.To = "player1@somedomain.com;player2@somedomain.com " objEmail.Subject = "Game XXX has hosted!" objEmail.Textbody = "Please connect to server XXXX port YYYY to play your next turn!" objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtpserver.yourdomain.com" objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 'These lines are for if your ISP's SMTP server required authentication 'They can be commented out if not needed objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "yourusername" objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "yourpassword" objEmail.Configuration.Fields.Update objEmail.Send  | 
		
 Re: Windows Email Notifier? 
		
		
		Thanks Nick! 
	How do you call that VBS script? (i.e. how does it know to activate when the turn is ready?)  | 
		
 Re: Windows Email Notifier? 
		
		
		With the --postexec argument to dom3.  You just whip up a custom shortcut to start your dom3 server.  You probably want to use things like --textonly --tcpserver --port and so forth anyway, so just add another arg. 
	 | 
		
 Re: Windows Email Notifier? 
		
		
		Ahhh cool. I'll give it a go. Thanks! 
	 | 
		
 Re: Windows Email Notifier? 
		
		
		You can install cygwin on Windows and use Linux scripts. 
	 | 
		
 Re: Windows Email Notifier? 
		
		
		Quote: 
	
  | 
		
 Re: Windows Email Notifier? 
		
		
		It's useful for all kind of things that are otherwise very difficult on Windows. But considering that it's essentially a large set of many convenient utilities, it's hard for most people to find a "must install" reason for cygwin http://forum.shrapnelgames.com/images/smilies/happy.gif 
	 | 
		
 Re: Windows Email Notifier? 
		
		
		Thanks Nick.... used your script and it seems to be working great! 
	 | 
		
 Re: Windows Email Notifier? 
		
		
		Quote: 
	
  | 
		
 Re: Windows Email Notifier? 
		
		
		If it happens to be really needed, I could do a perl script. 
	By using the correct modules, I could have the same script work bith with widows and Unix with almost no changes, and maybe an external file (XML ?) to setup the whole (list of email addresses + server settings. Perl (and the needed modules) would be easier (and faster) to install that cygwin, but I wonder if there's really a need for such a script ? (as I'm under the impression that a lot of scripts like that have already been done)  | 
| All times are GMT -4. The time now is 08:54 PM. | 
	Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.