Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Turn On the IIS SMTP Server?

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's probably set as a service. Go to admin tools/services and see if you can find it there.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic