Forum Moderators: open
I have a form which is being sent to me via asp and cdonts.
Using this ---- strBody = Trim(Request.Form("name")) ----
I can send the 'name' field to me via the email, however there are other fields which i need sent as well, such as 'company' and 'address'. How can I add to the above code to send this info, but crucially putting the other fields on the next line of the email.
Googly
Googly
For Each strField In Request.Form
Select Case strField
Case "tbsEmail", "cmbKontakt", "tbsCc", "tbsBcc", "tbsSubject", "tbnImportance", "tbsAnswerfile" ' all fields requred for the msg header (by their name in the FORM)
strBody = strBody
Case Else
strBody = strBody & Mid(strField, 4, Len(strField)-3) & _
Space(25-Len(strField)) & ": " & Request.Form(strField) & vbCrLf
End Select
Next