# ASP form with Flash - Send Mail

**URL:** <https://forum.kirupa.com/t/asp-form-with-flash-send-mail/197224>\
**Category:** flash\
**Created:** [August 14, 2006, 8:20pm UTC](https://forum.kirupa.com/t/asp-form-with-flash-send-mail/197224 "2006-08-14T20:20:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpb12](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jpb12](https://forum.kirupa.com/u/jpb12)\
**Post date:** [August 14, 2006, 8:20pm UTC](https://forum.kirupa.com/t/asp-form-with-flash-send-mail/197224/1 "2006-08-14T20:20:51Z")

</div>

Hello to everyone in this forum.

I have this ASP form for my SEND MAIL form in Flash.  
…  
\<%  
Set Mailer = Server.CreateObject(“SMTPsvg.Mailer”)  
Mailer.RemoteHost = “[mail.host.com](http://mail.host.com)”  
Mailer.FromName = “Webserver”  
Mailer.FromAddress = “[webserver@host.com](mailto:webserver@host.com)”  
Mailer.AddRecipient “Your name”, “[webmaster@host.com](mailto:webmaster@host.com)”  
Mailer.Subject = “New Mail…!”  
strMsgHeader = “Form Information Follows: " & vbCrLf  
for i = 1 to Request.Form.Count  
strMsgInfo = strMsgInfo & Request.Form.Key(i) & " - " & Request.Form.Item(i) & vbCrLf  
next  
strMsgFooter = vbCrLf & “End of form information”  
Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter  
if not Mailer.SendMail then  
Response.Write " Mailing Failed… Error is: \<br\>”  
Response.Write Mailer.Response  
else  
Response.Redirect “[http://www.host.com](http://www.host.com)”  
end if  
%\>  
…

The values of RemoteHost, FromAddress, FromName, AddRecipient, Redirect are examples.  
My question is how to insert the variable names of my send mail form in Flash to this ASP script, so it can read the values of the variables.

The text fields on the Falsh form are:  
name  
phone  
email  
message

I’ll appreciate any help.  
Thanks
