| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"kim jørgensen" |
| Date: |
25 May 2004 09:28:20 AM |
| Object: |
smtp server look up |
Hi i am trying to write a email clint for my labtop. my problem is that am
not always on the same network and can not always reach the same Smtp
server- so i am looking for a funcktion which can look for a smtp on the lan
Kim Jorgensen
.
|
|
| User: "Jerry Coffin" |
|
| Title: Re: smtp server look up |
25 May 2004 01:23:26 PM |
|
|
"kim jørgensen" <kim_jorgensen@vip.cybercity.dk> wrote in message news:<c8vl67$ngj$1@news.cybercity.dk>...
Hi i am trying to write a email clint for my labtop. my problem is that am
not always on the same network and can not always reach the same Smtp
server- so i am looking for a funcktion which can look for a smtp on the lan
Both DHCP and ACAP have the ability to provide information about SMTP
servers to their clients. Another possibility would be to get the
host name of your default gateway, isolate the domain name, and then
do an MX record lookup for that domain.
Implementing any of the above (or nearly any feasible alternative)
will involve platform-specific coding that will be topical in a
newsgroup devoted to the platform on which you wish to implement it.
--
Later,
Jerry.
The universe is a figment of its own imagination.
.
|
|
|
|
| User: "Karl Heinz Buchegger" |
|
| Title: Re: smtp server look up |
25 May 2004 09:54:19 AM |
|
|
"kim jørgensen" wrote:
Hi i am trying to write a email clint for my labtop. my problem is that am
not always on the same network and can not always reach the same Smtp
server- so i am looking for a funcktion which can look for a smtp on the lan
Kim Jorgensen
There is no such function.
You have to write one yourself.
But the easiest thing would be: give your program not
only the IP of one SMTP server, but give it a list of
SMTP servers and the program tries to connect to each
of them in turn until it can reach one.
Note: most SMTP servers are closed to the public today
(at least they should be) since they have been misused
for sending spam all around the world.
--
Karl Heinz Buchegger
kbuchegg@gascad.at
.
|
|
|
|
| User: "JKop" |
|
| Title: HEAVILY OFF TOPIC |
25 May 2004 10:28:26 AM |
|
|
kim jørgensen posted:
Hi i am trying to write a email clint for my labtop. my problem is that
am not always on the same network and can not always reach the same
Smtp server- so i am looking for a funcktion which can look for a smtp
on the lan
Kim Jorgensen
HEAVILY OFF TOPIC
I presume you're running windows.
Try the following:
Open Hyperterminal
Make a new connection:
Host address: smtp.eircom.net
Port number: 25
Connect using: TCP/IP
Once the connection is open, go to Properties, then Settings, then ASCII
Setup. Tick all the boxes. Close Properties.
Type the following:
helo jack
Hit Enter. Then type:
mail
Hit Enter. Then type:
rcpt
What you're doing here is talking to an SMTP sever exactly how an e-mail
program does. Look up "How e-mail works" at "www.howstuffworks.com".
-JKop
.
|
|
|
|
| User: "Victor Bazarov" |
|
| Title: Re: smtp server look up |
25 May 2004 09:46:24 AM |
|
|
kim jørgensen wrote:
Hi i am trying to write a email clint for my labtop. my problem is that am
not always on the same network and can not always reach the same Smtp
server- so i am looking for a funcktion which can look for a smtp on the lan
The ability to "look for a smtp on the lan" does not exist in C++ language
or its library. It can exist on your platform, but that's off-topic here.
Ask in a newsgroup that deals with your OS.
V
.
|
|
|
|

|
Related Articles |
|
|