# Why is my ASP formamil not working?

**URL:** <https://forum.kirupa.com/t/why-is-my-asp-formamil-not-working/205441>\
**Category:** flash\
**Created:** [October 29, 2006, 7:11pm UTC](https://forum.kirupa.com/t/why-is-my-asp-formamil-not-working/205441 "2006-10-29T19:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shush1](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shush1](https://forum.kirupa.com/u/shush1)\
**Post date:** [October 29, 2006, 7:11pm UTC](https://forum.kirupa.com/t/why-is-my-asp-formamil-not-working/205441/1 "2006-10-29T19:11:46Z")

</div>

Hi i have a form on my flash site, which when submitted using ASP i want it to send me a email with the form details, but i am not recieving any email and it sayts there is a error but dnt know why! Can someone please have a look? Really Urgent, I just dnt know where its going wrong. I got it to work in PHP but then found out server does not accept PHP.

this is my asp code:

```auto

<%
Dim strTo, strFName, strCompany, strEmail, strAddress 
Dim objCDOMail 'The CDO object

strTo = "shush@freshlemon.co.uk"
strName = Request.Form("fname") 
strCompany = Request.Form("company")
strCompany = Request.Form("email") 
strAddress = Request.Form("company")

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

objCDOMail.From = "yourname"
objCDOMail.To = strTo
objCDOMail.Subject = "Medite Form"
objCDOMail.FName = strName
objCDOMail.Company = strCompany
objCDOMail.Email = strEmail
objCDOMail.Address = strAddress
objCDOMail.Send
Set objCDOMail = Nothing
%>

```

this is my flash script which I have on the submit button

AS

on (release) {

```
form.loadVariables("email.asp", "POST");
form.fname = "";
form.company = "";
form.email = "";
form.address = "";

```

}

/AS
