Setting SMTP on a Production Machine

Discussion in 'ASP .Net' started by Tushar Karsan, Nov 1, 2004.

  1. 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.




    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
     
    Tushar Karsan, Nov 1, 2004
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Seth Darr
    Replies:
    2
    Views:
    626
    Seth Darr
    Oct 6, 2004
  2. Tushar

    SMTP Settings on Production Machine

    Tushar, Nov 1, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    2,365
    Tushar
    Nov 2, 2004
  3. =?Utf-8?B?UmV6YSBTb2xvdWtp?=

    SessionID Changes in production machine....help

    =?Utf-8?B?UmV6YSBTb2xvdWtp?=, May 13, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    642
    Juan T. Llibre
    May 13, 2005
  4. Replies:
    3
    Views:
    1,329
    Roedy Green
    Jan 24, 2006
  5. Alex Hunsley
    Replies:
    4
    Views:
    4,496
    Tim Williams (gmail)
    Jun 29, 2004
  6. Copelandia Cyanescens

    smtplib.SMTP "no attributes SMTP"

    Copelandia Cyanescens, Jul 31, 2004, in forum: Python
    Replies:
    2
    Views:
    2,141
    Copelandia Cyanescens
    Jul 31, 2004
  7. tshad
    Replies:
    1
    Views:
    1,081
    bruce barker
    May 5, 2008
  8. Tushar Karsan

    Setting SMTP on a Production Machine

    Tushar Karsan, Nov 1, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    241
    Dan Rogers
    Nov 16, 2004
Loading...