By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,191 Members | 824 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,191 IT Pros & Developers. It's quick & easy.

smtp server look up

P: n/a
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
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
Jul 22 '05 #2

P: n/a
"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
kb******@gascad.at
Jul 22 '05 #3

P: n/a
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 ja**@eircom.net

Hit Enter. Then type:

rcpt ph**@eircom.net

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
Jul 22 '05 #4

P: n/a
"kim jørgensen" <ki***********@vip.cybercity.dk> wrote in message news:<c8**********@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.
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.