Hey, this is probably a shot in the dark, but Im really struggling now and thought there might be someone on here that knows the answer.
Im creating a server for a group uni project, the server needs to be able to send emails. So, I set up a free email account that facilitates smtp (email, gmx etc).
My code creates a socket that connects to the given server on port 25. Sends all the required details. Then i get to a stage in the transaction when I need to supply an AUTH string.:-
220 smtp804.mail.ukl.yahoo.com ESMTP
EHLO [192.168.1.8]
250-smtp804.mail.ukl.yahoo.com
250-AUTH LOGIN PLAIN XYMCOOKIE
250-PIPELINING
250 8BITMIME
AUTH PLAIN THE_MD5_STRING
235 ok, go ahead (#2.0.0)
rest of the transaction.................
ok, the part im strugling with is THE_MD5_STRING. Obviously I can just grab this with a packet sniffer, and use the md5 for each transaction (which I did, and have been sending emails this way for the past 3 months), but i want the system to be more generic. Does anyone know how this md5 hash is created? It appears to be static, so it must be based on fixed variables (username + password?)