# ASP email form

**URL:** <https://forum.kirupa.com/t/asp-email-form/109574>\
**Category:** Uncategorized\
**Created:** [May 6, 2004, 9:48pm UTC](https://forum.kirupa.com/t/asp-email-form/109574 "2004-05-06T21:48:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vman](https://avatars.discourse-cdn.com/v4/letter/v/5e9695/32.png) [@vman](https://forum.kirupa.com/u/vman)\
**Post date:** [May 6, 2004, 9:48pm UTC](https://forum.kirupa.com/t/asp-email-form/109574/1 "2004-05-06T21:48:04Z")

</div>

Hello all,

I got this form that works perfectly with php. Unfortunately, the host for the company’s site doesn’t support php. so I’m trying to create an .asp form and have had no success whatsoever. If anyone can help, Id apprecite it greatly. Right now, I’m just trying to get one variable sent, which is the “Name” field. The text fields variable in Flash is “Namefield”. Here is the asp script I have:

[size=2]\<%@ Language=VBScript %\>

\<%

Dim myMail, myBody

myBody = "Name: " & request.form(“Namefield”) & vbcrlf

[/size][font=Times New Roman][size=2]Set myMail = CreateObject(“CDONTS.NewMail”)

[/size][/font][size=2]myMail.BodyFormat=1  
myMail.MailFormat=1  
myMail.From=request.form(“Email”)  
myMail.To= "me@mydomain.com"  
myMail.subject=“test”  
myMail.Body=myBody  
myMail.Send

set myMail=nothing

%\>

Here is the AS on the submit button:

on (release) {  
loadVariablesNum(“contact.asp”, 0, “POST”);  
}

Anyone see anything wrong with this?

Thanks in advance!

[/size][font=Times New Roman][size=2][/size][/font][size=2]

[/size][font=Arial][size=2]

[/size][/font]
