Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A couple of Q's

0 views
Skip to first unread message

MooChew

unread,
Aug 11, 2002, 12:00:31 PM8/11/02
to
Hi all,

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.


Tim Robinson

unread,
Aug 11, 2002, 12:24:29 PM8/11/02
to
MooChew <mcle...@hotmail.com> wrote:
| 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+).

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/

Graham Lewis

unread,
Aug 11, 2002, 12:58:03 PM8/11/02
to
"MooChew" <mcle...@hotmail.com> wrote in message
news:3d56...@dnews.tpgi.com.au...

> Hi all,
>
> 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+).

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


MooChew

unread,
Aug 11, 2002, 2:23:29 PM8/11/02
to
"Tim Robinson" <t...@gaat.freeserve.co.uk> wrote in message
news:aj62vs$18e5lr$1...@ID-103400.news.dfncis.de...

> MooChew <mcle...@hotmail.com> wrote:
> | 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).
>
Thanks for your reply.
I want to sent email TO my hotmail account. I could use my uni SMTP server, but there is one
problem. I can't send email to any other account except another uni account, it says it failed to
deliver because redirection isn't allowed (or something along those lines). I can only send email to
accounts outside of the uni if I'm on a computer that's apart of the uni's domain (Some rotten
security precaution I suppose).
Anyway... if smtp doesn't work then what protocol is used to send email to places such as hotmail,
yahoo, etc? If I send through an SMTP server how does it deliver the email to hotmail? I don't
really understand.


Isaack Rasmussen

unread,
Aug 12, 2002, 2:06:14 PM8/12/02
to
You need to do a DNS lookup for MX records on Hotmail, and you will get the
available SMTP servers that can deliver your messages.

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>

0 new messages