Hello friends,
I am working on a flash and asp contact form. I am having some problem with it. it doesn’t send mail to the desired email address.
Actionscript code for button:
on (release) {
// Now import the variables we
// need to send in this movie clip
sender_title = _root.Stitle.text
sender_mail = _root.Semail.text
sender_name = _root.Sname.text
sender_phone = _root.Sphone.text
sender_subject = _root.Ssubject.text
sender_message = _root.Smessage.text
sender_f14a = _root.Sf14a
// all the vars we just imported
// will be sent via POST method now
loadVariables(“sendmail.asp”,this,“POST”);
// and when receives the answer from
// the server…
this.onData = function()
{
for(var a in this) trace([a,this[a]])
// ok, next frame
_root.nextFrame();
if(this.output==‘sent’)
{
// in case of success
_root.errTitle = “Thank You.”;
_root.errType = “Your message has been succesfully sent.”;
} else {
// else
_root.errTitle = “Error!”;
_root.errType = “Attention, an error occurred while processing your message. Please try again later.”;
}
}
}
and the ASP Code:
<%
Dim ftitle, femail, fname, fphone, fsubject, fmessage, fradio
Set myMail=CreateObject(“CDO.Message”)
ftitle=Request.Form(“sender_title”)
femail=Request.Form(“sender_email”)
fname=Request.Form(“sender_name”)
fphone=Request.Form(“sender_phone”)
fsubject=Request.Form(“sender_subject”)
fmessage=Request.Form(“sender_message”)
fradio=Request.Form(“sender_f14a”)
myMail.Subject= & fsubject
myMail.From = & femail
myMail.To="zealousstudio@yahoo.com"
myMail.HTMLBody = “<h1>Title:</h1>” & ftitle & “<br /><h1>Email:</h1>” & femail & “<br /><h1>Name:</h1>” & fname & “<br /><h1>Phone:</h1>” & fphone & “<br /><h1>Subject:</h1>” & fsubject & “<br /><h1>Message:</h1>” & fmessage & “<br /><h1>Contact Us By:</h1>” & fradio & “<br />”
myMail.Send
%>
Please help out from this.
Thanks,
Mangesh