*
The moose likes Other JSE/JEE APIs and the fly likes How To Turn On the IIS SMTP Server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How To Turn On the IIS SMTP Server?" Watch "How To Turn On the IIS SMTP Server?" New topic
Author

How To Turn On the IIS SMTP Server?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have the IIS SMTP server installed in my PC. While testing to send e-mails using the JavaMail, I can see that messages do not reach the server.

I have never used the IIS SMTP server before. I think the problem is that the server is not running (I could be wrong). How do I turn on the IIS SMTP server?
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
It's probably set as a service. Go to admin tools/services and see if you can find it there.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
My IIS SMTP is running because

1. I typed http://xp-jenc-c/ in the browser and I am connected to the Windows XP Professional (http://xp-jenc-c/localstart.asp) and it says that 'Your web service is now running.'

2. On my desktop screen, I click on the IIS. And then expand the XP-JENC-C (local computer) node. Right-click on the Default SMTP Virtual Server. I can see 'Start' is grayed out. Only Stop and Pause are the available choices.

However, messages cannot reach the server. It is hanging after I submit the mail message. Here is the code of the msgsend. java:
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Implement Transport and Connection handlers. They should let you see how the Transport and Connection is behaving. Enable SMTP debugging too - so you can see the actual SMTP messages. And check your smtp.mail.host property by using telnet to connect to your SMTP server.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I appreciate you time and help.

I am very new and inexperienced. I do not know how to do what you have advised:

1. Check your smtp.mail.host property by using telnet to connect to your SMTP server

How to check the smtp.mail.host property? I tries to type in the DOS Window:

C:\>telnet smtp.mail.host<enter>

I got 'Could not open connection to the host, on port 23: connect failed'

2. Enable SMTP debugging too - so you can see the actual SMTP messages.

I do not know how to enable SMTP debugging.

3. Someone advised me to look for Admin Tools --> Services

I cannot find 'Admin Tools' anywhere. I found 'Tools' at many places, but, there is no 'Services' in the menu.

4. Implement Transport and Connection handlers. They should let you see how the Transport and Connection is behaving.

I do not know how to implement the Transport and Connection handlers.

I think that My IIS SMTP is running because

1. I typed http://xp-jenc-c/ in the browser and I am connected to the Windows XP Professional (http://xp-jenc-c/localstart.asp) and it says that 'Your web service is now running.'

2. On my desktop screen, I click on the IIS. And then expand the XP-JENC-C (local computer) node. Right-click on the Default SMTP Virtual Server. I can see 'Start' is grayed out. Only Stop and Pause are the available choices.

Somehow, mail messages just cannot reach the SMTP server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To Turn On the IIS SMTP Server?