x404.co.uk
http://www.x404.co.uk/forum/

Java - Secret Santa
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=4794
Page 1 of 2

Author:  Fogmeister [ Mon Dec 07, 2009 4:45 pm ]
Post subject:  Java - Secret Santa

Hi Guys,

I've just written a Java Secret Santa program.

It's source code only but if you want it it works really well.

You put in a list of people (with email addresses) and you can change the message (and SMTP server) and it sends out emails to everyone on the list with their recipient.

It checks so that no person receives themself as a recipient.

If anyone wants the source then let me know. :D

Also good as no one will no who has got who (not even the person setting it up :D).

Author:  oceanicitl [ Mon Dec 07, 2009 4:55 pm ]
Post subject:  Re: Java - Secret Santa

Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

Author:  HeatherKay [ Mon Dec 07, 2009 4:56 pm ]
Post subject:  Re: Java - Secret Santa

Secret Santa. Another nasty US import. :P

Author:  Fogmeister [ Mon Dec 07, 2009 5:00 pm ]
Post subject:  Re: Java - Secret Santa

oceanicitl wrote:
Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

As long as you have an SMTP server it'll work :D

You just have to type in the names and email addresses of the people involved. :D

It's source though so you'll need to run it from Eclipse or whatever.

Author:  forquare1 [ Mon Dec 07, 2009 7:48 pm ]
Post subject:  Re: Java - Secret Santa

Fogmeister wrote:
oceanicitl wrote:
Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

As long as you have an SMTP server it'll work :D

You just have to type in the names and email addresses of the people involved. :D

It's source though so you'll need to run it from Eclipse or whatever.


Could you not jar it up?

Author:  EddArmitage [ Mon Dec 07, 2009 7:51 pm ]
Post subject:  Re: Java - Secret Santa

forquare1 wrote:
Fogmeister wrote:
It's source though so you'll need to run it from Eclipse or whatever.

Could you not jar it up?

Or write it in PHP and host it somewhere (8-p)

Author:  Fogmeister [ Mon Dec 07, 2009 8:36 pm ]
Post subject:  Re: Java - Secret Santa

forquare1 wrote:
Fogmeister wrote:
oceanicitl wrote:
Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

As long as you have an SMTP server it'll work :D

You just have to type in the names and email addresses of the people involved. :D

It's source though so you'll need to run it from Eclipse or whatever.


Could you not jar it up?

I did it at work whilst I was supposed to be working and had to download and instal the Java JDK from scratch so I didn't have time to play around with building it properly.

I'll give it a go now from home :D

Author:  Fogmeister [ Mon Dec 07, 2009 9:35 pm ]
Post subject:  Re: Java - Secret Santa

Grr... fricking xCode.

Downloading NetBeans now :D

Author:  EddArmitage [ Mon Dec 07, 2009 9:45 pm ]
Post subject:  Re: Java - Secret Santa

Fogmeister wrote:
Grr... fricking xCode.

Downloading NetBeans now :D

Why not Eclipse? XCode is nice for Objective C, but I can't stand it for much else, although it will do other stuff.

Author:  Fogmeister [ Mon Dec 07, 2009 9:50 pm ]
Post subject:  Re: Java - Secret Santa

EddArmitage wrote:
Fogmeister wrote:
Grr... fricking xCode.

Downloading NetBeans now :D

Why not Eclipse? XCode is nice for Objective C, but I can't stand it for much else, although it will do other stuff.

Dunno really.

I like NetBeans.

I also like Eclipse and NetBeans was the first one I thought of.

LOL, I just checked and I already have Eclipse :lol:

Author:  paulzolo [ Mon Dec 07, 2009 10:04 pm ]
Post subject:  Re: Java - Secret Santa

HeatherKay wrote:
Secret Santa. Another nasty US import. :P


I did a secret Santa where I work. I spoilt the fun for myself by seeing what I was buying myself. *sigh*

Author:  finlay666 [ Mon Dec 07, 2009 10:19 pm ]
Post subject:  Re: Java - Secret Santa

Set up a Google source repo?

Pretty cool to go to someone "Yeah you can see all my work <here>"

Author:  jonbwfc [ Mon Dec 07, 2009 10:49 pm ]
Post subject:  Re: Java - Secret Santa

HeatherKay wrote:
Secret Santa. Another nasty US import. :P

I'm with the future PM. When the heck did this become part of British Christmas ritual?

Jon

Author:  leeds_manc [ Mon Dec 07, 2009 10:55 pm ]
Post subject:  Re: Java - Secret Santa

Buying a present for someone creates an obligation for them to do the same, all it does is increase consumption, usually on pointless rubbish. Don't do it. :D

Author:  pcernie [ Mon Dec 07, 2009 11:09 pm ]
Post subject:  Re: Java - Secret Santa

jonbwfc wrote:
HeatherKay wrote:
Secret Santa. Another nasty US import. :P

I'm with the future PM. When the heck did this become part of British Christmas ritual?

Jon


In my work, it's something for the women to dramatize and 'have a giggle about' :roll:

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/