PDA

View Full Version : wont put the variable in the email sent


andrew1234
04-01-2005, 08:21 PM
Can you please help me.. this simple form script wont insert the variavble fullname from the form
there are no error messages , it only sends and email that looks like this

Full name :


thanks
Andrew

________________________________________________________

asp script below


<%
Dim fullname

fullname = Request.Form("fullname")


Dim msgObject, Body
set msgObject = Server.CreateObject("CDONTS.NewMail")
msgObject.From = "1@me.com"
msgObject.To = "1@me.com"
msgObject.Subject = "test"

Body = Body & "Name: " & fullname & chr(13)

msgObject.Body = Body
msgObject.Send
%>

BigPete
04-02-2005, 03:10 PM
well, i'm not too familiar with CDONTS, but could you post a small bit of relevant code from your actual form?
I assume your email has more fields than fullname. Do they all do that or is it just that one?