PBEM -- Authenticated SMTP problems

avanai

Chieftain
Joined
Dec 5, 2005
Messages
1
So, I'm not entirely sure where I should ask this, so please point me in the right direction if I'm not in the right place.

I'm trying to get authenticated SMTP to work for PBEM games, and I'm also trying to add SSL to the smtp connection, so, for instance, it will work with the gMail smtp server. That part isn't too hard in and of itself: copying _ssl.pyd from a normal Python 2.4 installation to Assets/System/_ssl.pyd adds in the ssl funcitons.

I also found the python function where the email is sent: onPbemSend(argsList) in CvAppInterface. For some reason, though, it looks like the password is getting passed into that function as asterisks. I.e., if I input my password on the civ screen as "asdf", the string (szPassword) in onPbemSend would be "****". That's just stupid. I don't know how to figure out where that function gets called from; is that something I can fix, or is it compiled into the binaries?

Also, can I modify the dialog box that asks for your email address, smtp server, and username/password? I'd like to add a checkbox for StartTls (i.e. SMTP w/SSL). Right now I have it hacked up so that if you put "**" before the name of the stmp server, it makes an ssl connection. That works, but it's hacky.

Any help is appreciated. Thanks.

--
Evan
 
Back
Top Bottom