Just wondering if there is a way I can create a TEXT field within a form that would ask for an email address and when the user hits the SEND button it would put that email address with the addresses specified within my ASP script?
I need to be done so that the user can first see who the request went to, but second, it owuld allow the user to reply to the addresses specified if something changed.
Can you be more specific? What are you doing when you process the form results? Sending mail/storing data? And what addresses specified in your ASP script?
The input fields are posted to the body of the email and the specified addresses are those I've specified with...
objMail.AddAddress "abc@def.com"
What I need know is if the user inputs their email address in a text field on the form, is there a function/script within ASP that can say grab the data from this input field and put it into the TO: or "objMail.Address" function of my ASP script.
So basically instead of having the input fields post to the body, can I have one particular input field post to the TO: portion of the email?
Sorry Sheila, I a ASP newbie/moron, whatever you want to call me...what does that function do and where would I apply it in my ASP script? Here is the script I'm using:
<%
Option Explicit
Response.Expires = 0
' Call dumpForm
' Response.End
' -- email object
Dim objMail, theBody
Set objMail=Server.CreateObject("Persits.MailSender")
objMail.Host="pcaxs04"
Sub dumpForm()
Dim Item
For Each Item in Request.Form %>
Control name '<% = Item %>'
= '<% = Request.Form(Item) %>'<BR>
<% Next
End Sub
Function dumpFormToMsg()
Dim Item, msg
msg = ""
For Each Item in Request.Form
msg = msg & "'" & Item & "' = '" & Request.Form(Item) & "'" & vbCrLf
Next
dumpFormToMsg = msg
End Function
Bookmarks