Setting SMTP on a Production Machine

T

Tushar Karsan

Please help.

I would like to use the following web-services / ASP.Net code to be used in
an intranet environment:

MailMessage Message = new MailMessage();
Message.To = ...
....
SmtpMail.SmtpServer = ...
SmtpMail.Send(Message);

In order for this code to work on a production machine is the IIS [SMTP
Service] required even if there is Exchange-Server running on
another server?

In order to make e-mailing work with a domain-user recognised by the
exchange-server, is it true that I need to edit web.config file in the
following way?

<identity
impersonate="true"
userName="DOMAIN\UserName"
password="Password" />

Such that UserName is recognised by Exchange-Server?

Doing this, does this mean that this ASP.Net will use this identity for all
server accesses including database access? Should I be setting database
security for this application using this identity and not the ASPNET user?

Please help and give more info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top