.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

BCT Commander- Save $7.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old January 2nd, 2007, 10:37 PM

NickW NickW is offline
Private
 
Join Date: Oct 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
NickW is on a distinguished road
Default 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
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:07 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.