# ASP question

**URL:** <https://forum.kirupa.com/t/asp-question/204638>\
**Category:** Uncategorized\
**Created:** [October 21, 2006, 9:53pm UTC](https://forum.kirupa.com/t/asp-question/204638 "2006-10-21T21:53:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [October 21, 2006, 9:53pm UTC](https://forum.kirupa.com/t/asp-question/204638/1 "2006-10-21T21:53:06Z")

</div>

I have this .asp code from my provider and my problem is how to make the form in flash. I somehow need to setup some variables in my asp file to get the information from flash, right? But how…?

**In my asp file:**

```php

Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "smtp.cliche.se"

JMail.Sender = "sender@domain.se"
JMail.Subject = "Test"

JMail.AddRecipient "reciever@domain.se"

JMail.Body = "Exempel på JMail" & VbCrLf & VbCrLf
JMail.Body = JMail.Body & "Best regards ..."

' 1 - highest priority (Urgent)
' 3 - normal
' 5 - lowest
JMail.Priority = 1

JMail.Execute
Set JMail = Nothing

```

**In my flash where I named my variables in my textfields (senderAdress, senderName, senderMessage, emailStatus;**

```auto

this.submit_mc.onRelease = function() {
	if (!senderAdress.length || senderAdress.indexOf("@") == -1 || senderAdress.indexOf(".") == -1) {
	emailStatus = "Please enter a valid E-mail address";
 	}
 	else if (!senderName.length) {
 	emailStatus = "Please Enter your name";
 	}
 	else if (!senderMessage.length) {
 	emailStatus = "Please enter some text in you message";
 	}
 	else 
	{
 	loadVariablesNum ("ASPMail.asp", "0", "Post");
 	emailStatus = "Sending";
 	}
}

```
