mailing test results from flash + asp
Ok so this is a problem i have been suck on for two months now tryed every tutorial and example i can find and cant get this to send a email.
here is the code i have:
Flash/AS3:
stop();
submit_btn.addEventListener(MouseEvent.CLICK, sendInfo);
var emailfrom:String = "someone@somewhere.com";
var emailto:String = "someone@somewhere.com";
var emailsubject:String = "test message";
var emailbody:String = "this is a test message";
function sendInfo (e:MouseEvent):void{
var varSend:URLRequest = new URLRequest("mailer.asp");
varSend.method = URLRequestMethod.POST;
varSend.data = (emailfrom,emailto,emailsubject,emailbody);
}
//what can i add to this to see if it is connecting to the .asp file?????
THIS is the .asp
<.asp>
<head>
<title>Emailer ASP</title>
<meta http-equiv="Content-Type" content="text.asp; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
Dim strFrom, strTo, strSubject, strBody
strFrom = Request.Querystring("emailfrom")
strTo = Request.Querystring("emailto")
strSubject = Request.Querystring("emailsubject")
strBody = Request.Querystring("emailbody")
Dim MyMail
Set MyMail = Server.CreateObject("smtp.somewhere.com")
MyMail.From = strFro
MyMail.To = strTo
MyMail.Subject = strSubject
MyMail.Body = strBody
MyMail.Send
Set MyMail = Nothing
%>
Your email has been sent.
</body>
<.asp>
Nothing happens when i hit the send button can anyone tell why.... I just got off phone with web host provider and they do support asp and i do have the correct SMTP
