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

SMTP question

3 views
Skip to first unread message

buttercup21

unread,
May 15, 2001, 1:15:09 PM5/15/01
to
I'm going through a tutorial for the JavaMail API and I'm told
to enter the name of my SMTP Server. How do I know the name of
my SMTP server? I'm using Microsoft Outlook...

Chris Thomas

unread,
May 15, 2001, 1:44:19 PM5/15/01
to
Check the configuration parameters in the outlook for mail server. You should
find it in the config wizard.
------ buttercup21 <buttercup...@sun.partner.remarq.com.invalid> -wrote--
---

I'm going through a tutorial for the JavaMail API and I'm told
to enter the name of my SMTP Server. How do I know the name of
my SMTP server? I'm using Microsoft Outlook...

--> Posted via http://www.javaquestionbank.com <--

buttercup21

unread,
May 15, 2001, 1:50:07 PM5/15/01
to
Sorry, i don't mean to be a pest, but where is the config wizard?

buttercup21

unread,
May 15, 2001, 2:04:09 PM5/15/01
to
ok, actually i found the name of the server(XCH-STL-10), but
aparently this isn't enough... this is what i have at the
commandprompt:

C:\javamail-1.2\demo>java msgsend -o from@adress -M SMTP.Server
to@adress
To: to@adress
Subject: Test
Test Message Here
^Z
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Unknown SMTP host:
SMTP.Server;
nested exception is:
java.net.UnknownHostException: SMTP.Server
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at msgsend.<init>(msgsend.java:162)
at msgsend.main(msgsend.java:52)

for SMTP.Server, I tried:
SMTP.XCH-STL-10
XCH-STL-10

neither one works... do I need to add the IP address for my
computer or something along those lines? the problem shouldn't
be the code because this is a demo provided by sun...

Michiel Konstapel

unread,
May 15, 2001, 3:30:12 PM5/15/01
to
The SMTP server should be an IP address, either in numeric 123.123.123.123
form, or a hostname, usually something like smtp.yourprovider.com or
mailhost.yourprovider.com.
Michiel

"buttercup21" <buttercup...@sun.partner.remarq.com.invalid> wrote in
message news:00000171...@usw-ex0107-167.remarq.com...

buttercup21

unread,
May 15, 2001, 3:32:21 PM5/15/01
to
I tried that too, but unfortunately I still get an error:

C:\javamail-1.2\demo>java msgsend -o myaddress.com -M
144.117.115.110 myaddress.com
To: katie.a....@boeing.com
Subject: test
this is a test


^Z
javax.mail.SendFailedException: Sending failed;
nested exception is:

javax.mail.MessagingException: Could not connect to SMTP
host: 144.117.115.110, po
rt: 25;
nested exception is:
java.net.ConnectException: Connection refused: no further
information


at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at msgsend.<init>(msgsend.java:162)
at msgsend.main(msgsend.java:52)

??? At least it now finds the host, even though I can't
connect...

Any ideas?

jeff_robertson

unread,
May 15, 2001, 3:46:49 PM5/15/01
to

Try connecting to port 25 with telnet:

telnet 144.117.115.110 25

If it won't connect, then that server isn't really an SMTP
server, no matter what your ISP or IT department may have told
you.

Either that, or there might be some kind of firewall preventing
you from getting through.

buttercup21

unread,
May 15, 2001, 3:57:56 PM5/15/01
to
I should be behind a firewall... I didn't even think of that. Do
you know of a way around it? When I actually implement this,
I'll need to know how anyway. Thanks a million!! =)

jeff_robertson

unread,
May 15, 2001, 4:14:45 PM5/15/01
to

Whoever runs your network will need to provide you with a local
SMTP server that you can connect to for development purposes.
Tell then that you can't do your job without it.


0 new messages