smtp server look up

K

kim jørgensen

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
 
V

Victor Bazarov

kim said:
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
 
K

Karl Heinz Buchegger

kim jørgensen said:
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.
 
J

JKop

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 (e-mail address removed)

Hit Enter. Then type:

rcpt (e-mail address removed)



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
 
J

Jerry Coffin

kim jørgensen said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,460
Latest member
eibafima

Latest Threads

Top