01.17.07
Testing E-mail: Install SMTP Server
I will be writing about testing e-mail functionality of web applications in the next post or two. If you are serious about testing e-mail functionality, the first step is to install SMTP server at your machine. This is tested on Windows XP Professional, service pack 2. You will need Windows operating system CD.
Make sure you are logged in as administrator, or start Add or Remove Programs as administrator:
- go to Control Panel
- highlight Add or Remove Programs
- hold Shift key at keyboard
- press right mouse key
- select Run as…
- select administrator account
- enter password if necessary
- press button OK
At Add or Remove Programs:
- click Add/Remove Windows Components
- select Internet Information Services (IIS)
- click Details…
- check SMTP service check box
- Common Files, Internet Information Services Snap-in and World Wide Web Service will automatically select
- do not deselect anything
- finish installation
- you will be prompted to insert Windows operating system CD
I am using Ruby’s Net::SMTP library for sending e-mail. I tried to send an e-mail and got this exception:
Exception: 550 5.7.1 Unable to relay for community@site
You need to change a setting or two:
- go to Internet Information Services (in Administrative Tools)
- right click Default SMTP Virtual Server
- click Properties
- select Access tab (second from the left)
- click button Relay… (bottom right)
- select Only the list below radio button
- click button Add…
- add 127.0.0.1
Many thanks to my developer who helped me to install and adjust my SMTP server.


Željko Filipin’s Blog said,
January 30, 2007 at 5:30 pm
Testing E-mail: Introduction
Lately I have been testing e-mail functionality of one application. I will post my experience in two or three articles. This is the second one. Yesterday I blogged about how to install SMTP server.
Testing is lots of fun. You do something, see what you…
BLAL said,
August 8, 2007 at 7:26 pm
thanks a lot for your help
it really works
i hope to be on touch
and if i need any thing , i won’t be late to ask you
yours
BLAL