.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   Email notification programs (http://forum.shrapnelgames.com/showthread.php?t=31091)

Graeme Dice October 18th, 2006 01:04 AM

Email notification programs
 
Does anybody know of a good program that is capable of sending out emails to all of the players in my games through the use of the postexec command? I'd like to streamline the hosting process as much as possible, and I think that this would be a great benefit.

Ygorl October 18th, 2006 02:01 AM

Re: Email notification programs
 
I can send you something if you've got a Mac... I'm sure others more astute than I can help you with Windows or Linux.

Foodstamp October 18th, 2006 02:02 AM

Re: Email notification programs
 
I don't believe I understand exactly what you need. But a good start would be to install Mozilla Thunderbird (The Email client I use) and then click on tools/extensions and browse the dozens of user made tools/utilities made for Thunderbird.

Zen October 18th, 2006 02:04 AM

Re: Email notification programs
 
What he is looking for is something that will automatically send Emails after a turn is processed that you can use from a command line.

I remember Bruce had one he made with Perl, but I haven't seen any recent ones.

Foodstamp October 18th, 2006 02:07 AM

Re: Email notification programs
 
Oh, then I highly doubt thunderbird would be useful =/.

Graeme Dice October 18th, 2006 02:16 AM

Re: Email notification programs
 
Quote:

Zen said:
What he is looking for is something that will automatically send Emails after a turn is processed that you can use from a command line.

Yep. That's exactly what I'm looking for. Since I'm about to start hosting a third game, I'd like to get everything as automated as possible.

I remember Bruce had one he made with Perl, but I haven't seen any recent ones.

[/quote]

Arralen October 18th, 2006 02:48 AM

Re: Email notification programs
 
Strongly depends on the OS you're using ... !!??

Graeme Dice October 18th, 2006 03:00 AM

Re: Email notification programs
 
Quote:

Arralen said:
Strongly depends on the OS you're using ... !!??

Thought I had mentioned it was win98. It's easy to script in *nix, but I'm not particularly interested in reinstalling the OS on my server computer after six years of no trouble with it.

Cainehill October 18th, 2006 03:06 AM

Re: Email notification programs
 

Easy enough in Linux/Unix, even without Perl. You could just setup a shell script in your choice of shell, invoke mail/pine/elm/etc for each player sending the appropriate turn file.

Arralen October 18th, 2006 03:27 AM

Re: Email notification programs
 
Automailer or V-Mailer could be exactly what you want ... I haven't tried them myself, therefore I can't say anything 'boutthem.

Some full-fledged mail clients seem to be able to run from the command line as well, e.g. Pegasus Mail or Pine, but again I can't provide any details. (I use Pegasus personally, but never cared about such details. If everything else fails, I might try it out, though)

WraithLord October 18th, 2006 08:31 AM

Re: Email notification programs
 
Quote:

Graeme Dice said:
Does anybody know of a good program that is capable of sending out emails to all of the players in my games through the use of the postexec command? I'd like to streamline the hosting process as much as possible, and I think that this would be a great benefit.

I hapen to know of one http://forum.shrapnelgames.com/images/smilies/happy.gif, check this thread

Gandalf Parker October 18th, 2006 12:39 PM

Re: Email notification programs
 
In linux I have the postexec script send emails when people ask for it.

Usually I push for using the programs you have, such as doing a command line mailto: call to outlook. But that is such a pain in windows that I recommend some of the free downloadable utitlities for that. The Bat or Febooti

NickW October 27th, 2006 12:47 PM

Re: Email notification programs
 
For Linux servers, I use this script as my --postexec for email notifications

<font class="small">Code:</font><hr /><pre>
#!/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 &lt;&lt;EOF
From: Nick's Dom3 Server &lt;me@my.isp.com&gt;
Subject: Game has hosted
Please connect to server XXXX port YYYY to play your next turn
.
EOF
</pre><hr />

For windows servers, I install windows scripting host and then use this vbs script

<font class="small">Code:</font><hr /><pre>
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
</pre><hr />

Gandalf Parker October 27th, 2006 12:59 PM

Re: Email notification programs
 
GREAT stuff. Thanks.

The linux script is alot like mine but I build a tmp file with all the headers then pipe it thru a send. But yours is easier to read.


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

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