I'm trying to get a contact page on my flash website working.. There are only three fields. Name, Email and message. This is running on a Windows 2003 IIS server. The email should be sent to our internal Exchange server.
Here is the code:
Flash code:
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
on (release) {
for (i=1; i<_parent.fields_descripti
ons.length
; i++) {
this[_parent.fields_descri
ptions[i][
2]] = _parent[_parent.fields_des
criptions[
i][1]];
_parent.reset_txt(_parent[
"t"+i], _parent.fields_description
s[i][1], _parent.fields_description
s[i][2]);
}
this.recipient = _parent.rec;
i = undefined;
getURL("contact.asp", "_self", "POST");
}
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
ASP code:
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
<%
Dim myMail
Set myMail = CreateObject("CDONTS.NewMa
il")
myBody = ""
myBody = myBody & "Name: " & request("name") & vbcrlf
myBody = myBody & "Email: " & request("email") & vbcrlf
myBody = myBody & "Message: " & vbcrlf & request("message")
myMail.From = request("email")
myMail.To = "me@mysite.com"
myMail.BodyFormat = 1
myMail.MailFormat = 1
myMail.Importance = 1
myMail.Subject = "Website Inquiry"
myMail.Body = myBody
myMail.Send
Set myMail = Nothing
%>
Start Free Trial