Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cdonts

Status
Not open for further replies.

mwebbo1

Technical User
Jul 11, 2002
71
US
I have a form that is being processed using CDONTS that I was given. Now, is doing a loop request and getting all the data from an application and sending it to an email address. I need to make the data appear more logical. I want to request each item in a particular order, how do I do this? Here is the code that I am using right now.
----------
<%
Option Explicit

Dim objNewMail

' First create an instance of NewMail Object
Set objNewMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)

' setting up the email

objNewMail.From = request(&quot;email&quot;)
objNewMail.To = &quot;myemail@email.com&quot;

objNewMail.Subject = &quot;Online Application&quot;

Dim e
Dim strBody
For Each e in Request.Form
strBody = strBody & e & &quot; = &quot; & Request(e) & chr(10)

Next
objNewMail.Body = strBody


objNewMail.Send

' After the Send method, NewMail Object become Invalid

Set objNewMail = Nothing

'Response.Write &quot;Email has been sent&quot;
Response.Redirect(&quot;index.asp&quot;)


%>
 

Does this have anything to do with awk?

CaKiwi

&quot;I love mankind, it's people I can't stand&quot; - Linus Van Pelt
 
Ohh....I must be in the wrong forum, sorry guy!
 
Of course!
It's obvious the OP meant to use these routines however:
ftp://ftp.armory.com/pub/lib/awk/mail-send
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top