ASP and Email
Results 1 to 4 of 4

Thread: ASP and Email

  1. #1
    Registered User
    Join Date
    Oct 2000
    Location
    Kansas City, MO
    Posts
    1,162

    Post ASP and Email

    I'm writing a simple ASP app that's going to be on our Intranet. It will be used for submiting computer problems to the IS department. My app needs to get the NT userid (HOW?) What do you use for sending emails from webpages using ASP? SMTP Service? When the user submits the problem ticket the information will always be sent to the same email address. I would also like to have the app send the user a conformation email.

    Server NT 4 SP6
    IIS 4.0

    Thanks,

    opiate

  2. #2
    Registered User techleet's Avatar
    Join Date
    Oct 2000
    Location
    San Jose, CA, USA
    Posts
    459

    Post

    Ok, I have the same type of setup here, and this is what I did:

    IIS5/Win2k server: frontpage 2000 extensions. Just created a html form and had it sent to an email accnt. (You also have to setup an additional account for the FP extensions to use). The great thing about this is, using forms built into FP, you can tell it to give you username, host name and date/time. Also, you can point them to a confirmation page. If you don't have IIS5/Win2k, I believe you can get FP extensions for IIS4 also. I'm fairly sure it's on the Winnt options pack.

    If you hate FP and don't want the server extensions stuff, i'm not sure how to pass the userid through to ASP. Of course, Winnt has a variable you can use in dos/batch called %username%. What you could probably do would be to when you submit a help request, have the request sent AND have a batch file run or something like that with the line type %username% > username.txt and then read the username out of the text file and append it into the request. But other than that, **** I have no clue. Good luck!
    DON'T PANIC

  3. #3
    Registered User
    Join Date
    Mar 1999
    Location
    The large sandbar north of Cuba
    Posts
    506

    Post

    For the user you might try request.ServerVaribles("Auth_user") or maybe a diferent ServerVarible. A list can be found here: http://www.findtutorials.com/new/tut...71&page_id=286

    For mail look into CDONTS.

  4. #4
    Registered User
    Join Date
    Oct 2000
    Location
    Kansas City, MO
    Posts
    1,162

    Post

    Cool, thanks guys. I got it to work.

    your right request.ServerVaribles("Auth_user") works just fine.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •