IIS sending email

  • Thread starter Thread starter Iw
  • Start date Start date
I

Iw

Hi!

I'm trying to send email from my asp.net aplication.
But when I'm trying to send, I have the exception:
"Cannot get IIS pickup directory"

Probably I don't have Smtp server.
If I have Windows Server 2003, is it free or not ?
What should I do to have smtp server in my IIS server ?

Thank for help
 
Iw said:
I'm trying to send email from my asp.net aplication.
But when I'm trying to send, I have the exception:
"Cannot get IIS pickup directory"

Probably I don't have Smtp server. If I have Windows Server 2003, is it
free or not ?
What should I do to have smtp server in my IIS server ?

The SMTP server is included with Windows 2003, just not installed by
default. But you shouldn't need it to send mail from your asp.net
application. If you are using System.Net.Mail to send your messages, just
configure the address of the smtp server when you construct your SmtpClient
object. This can be the address of any smtp server which can relay your
mail; it doesn't need to be installed on the same server as your IIS.
 
in message [...]
The SMTP server is included with Windows 2003, just not installed by
default. But you shouldn't need it to send mail from your asp.net
application. If you are using System.Net.Mail to send your messages, just
configure the address of the smtp server when you construct your
SmtpClient object. This can be the address of any smtp server which can
relay your mail; it doesn't need to be installed on the same server as
your IIS.

So SMTP server is on CD with Windows2003 ?
Is it difficult to install and configure it ?
 
imbirek8 said:
So SMTP server is on CD with Windows2003 ?
Is it difficult to install and configure it ?

From Control Panel, "Add or Remove Programs", "Add or Remove Windows
Components", "E-Mail Services", "Details", select POP3 and notice the help
message informing you that "SMTP will also be installed".
Then open Computer Management, "Services and Appications", "Intenet
Information Services Manager", and notice a new branch at the end labelled
"Default SMTP virtual server". This is where you configure your SMTP server.
If you need help with this, it is best asked on one of the Windows Server
forums, rather than the C# newsgroup.
 
Back
Top