|
|
|
|
|
| | |
|
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Write to DB and send e-mail |
From: |
Steve |
Date: |
3/27/2001 12:41:54 PM |
IP: |
63.82.108.131 |
Sure. Go to http://tech.dimac.net/ and click the top left link to W3 Jmail. This free component, when registered on the server, sends 'form' email without popping up the email client by using your SMTP server.
What I do is get the user's info in a form, write it to a backup text file, update a datase, and send an email all with the click of one button.
My form POSTS to *.ASP where Request.Form gets data out of each text box[or whatever control] of the form. The FileSystemObject that is open ForAppending, is used to create the text file in a specified path.
I Use Trim(Request.Form("whatevercontrolname")) to populate the necessary objRecordset items that apply to necessary (records, & fields / columns) of the database with objRecordset.
You can use sample code for Jmail to figure out how the email a message at the same time. |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|