Click to See Complete Forum and Search --> : ASP and Email
opiate
May 25th, 2001, 08:33 AM
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
techleet
May 25th, 2001, 12:21 PM
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!
lysergic
May 25th, 2001, 01:54 PM
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/tutorial/ViewTutorial.asp?article_id=71&page_id=286
For mail look into CDONTS.
opiate
May 28th, 2001, 11:57 PM
Cool, thanks guys. I got it to work.
your right request.ServerVaribles("Auth_user") works just fine.