I have a couple of questions that someone might be able to help me with.
Firstly, If I use the function FindWindow to get a window handle to another application's window, is
it possible for me to find it's exe's file path (in win95+).
Also I have written a program that sends email to my university email account using the SMTP
protocol. It works great but I want to be able to send email to my hotmail account as well. But I
can't seem to be able to do this. I figured hotmail would have an smtp server setup. But if I test
this out by using telnet to login to hotmail (host=hotmail.com port=25) nothing happens, whereas if
I do the same thing with my uni account it works and I can type the SMTP commands manually.
So basically I want to know how to send email to a hotmail account.
Sorry if the above couple of questions don't make any sense.
Thanks in advance.
You can get the process ID of another window using the
GetWindowThreadProcessId function, then use OpenProcess to obtain a handle
to that process. On NT+ you can use GetModuleFileNameEx to get the file name
of the EXE for that process; I'm not sure how to do it on Win9x.
| Also I have written a program that
| sends email to my university email account using the SMTP protocol.
| It works great but I want to be able to send email to my hotmail
| account as well. But I can't seem to be able to do this. I figured
| hotmail would have an smtp server setup. But if I test this out by
| using telnet to login to hotmail (host=hotmail.com port=25) nothing
| happens, whereas if I do the same thing with my uni account it works
| and I can type the SMTP commands manually. So basically I want to
| know how to send email to a hotmail account. Sorry if the above
| couple of questions don't make any sense. Thanks in advance.
Do you want to send mail *to* your Hotmail account, or mail to some address
*using* your Hotmail account? If you just want to send email, send using
your university SMTP server; Hotmail don't provide SMTP servers (or POP3
afaik).
--
Tim Robinson
http://www.themoebius.org.uk/
GetModuleFileName(hinst, buf, 256);
That should give you what you want
> Also I have written a program that sends email to my university email
account using the SMTP
> protocol. It works great but I want to be able to send email to my hotmail
account as well. But I
> can't seem to be able to do this. I figured hotmail would have an smtp
server setup. But if I test
> this out by using telnet to login to hotmail (host=hotmail.com port=25)
nothing happens, whereas if
> I do the same thing with my uni account it works and I can type the SMTP
commands manually.
> So basically I want to know how to send email to a hotmail account.
> Sorry if the above couple of questions don't make any sense.
Can't you send a mail to hotmail from uni SMTP server?
> Thanks in advance.
>
You're welcome
Isaack
"MooChew" <mcle...@hotmail.com> skrev i en meddelelse
news:3d56...@dnews.tpgi.com.au...
> "Tim Robinson" <t...@gaat.freeserve.co.uk> wrote in message
> news:aj62vs$18e5lr$1...@ID-103400.news.dfncis.de...
> > MooChew <mcle...@hotmail.com> wrote:
<snip>