[Sent direct reply separately] Dear Bernard,
> know a way that we can get the required SMTP and POP3 (we will > distribute the program to others) information through code so that > we do not have to ask the students Someone who knows more about Windows than I do may correct me if I'm mistaken, but I doubt that there's a simple and reliable way to do that. If you know what email program they're using, you might be able to dig the information out of its configuration. But even if you went to that trouble for several email programs, there would be someone who was using a different one. You could do DNS lookups to (try to) get the user's domain name and then try the hosts smtp, pop, and mail. But POP requires a username and password and SMTP usually does these days. So even if that were successful, you'd still have to ask for those. If you were willing spend the time and money, you could set up your own SMTP server that all instances of your program would be hard-coded to use. You'd want to be very careful about its configuration of course. Many networks block port 25 so you'd probably want to use SMTP over SSL on port 587. I think that some networks even block that port so you'd probably also want to have your server listening on some unusual port. If you chose to go that route, I'd suggest that you have that machine configured and run by a sysadmin who knows exactly what they're doing. Regards, Matt _______________________________________________ Email-SIG mailing list Email-SIG@python.org Your options: http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com