I am wanting to put the values from a form into an email. I
ve done this before and everything worked fine! So, I've copied the previous form and its related get.asp (which gives the instructions to write to an e-mail, using CDONTS) and tweaked the form fields to accomodate this new version. BUT I keep getting an error in the line which calls the body of the email.
And when looking into this file:
F:\Inetpub\mailroot\Badmail
I get the the following text file:
X-Receiver:
[email protected]
X-Receiver:
[email protected]
To: <
[email protected]>
Cc: <
[email protected]>
Subject: COMMERCIAL PROPOSAL Request
Date: Mon, 16 Aug 2004 13:42:09 -0400
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
It clearly shows that the file stops interpreting exactly at:
ObjMail.Body =
Here's the contents of the get.asp:
************************************************** **
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "
[email protected]"
ObjMail.Cc = "
[email protected]"
'ObjMail.From = t1
ObjMail.Subject = "COMMERCIAL PROPOSAL Request"
ObjMail.Body = t1name & t1 & vbcrlf&_
t1name & t1 & vbcrlf&_
t2name & t2 & vbcrlf&_
t3name & t3 & vbcrlf&_
t4name & t4 & vbcrlf&_
t5name & t5 & vbcrlf&_
t6name & t6 & vbcrlf&_
t7name & t7 & vbcrlf&_
t8name & t8 & vbcrlf&_
t9name & t9 & vbcrlf&_
t10name & t10 & vbcrlf&_
t11name & t11 & vbcrlf&_
l1name & l1 & vbcrlf&_
l2name & l2 & vbcrlf&_
l3name & l3 & vbcrlf&_
l4name & l4 & vbcrlf&_
ObjMail.Send
Set ObjMail = Nothing
*********************************************
Of course all my fields have been assigned a variable, in this asp as well.
Please help?
Thanks all,
Nancy