|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using Flash to Send mail with ASP Script
I have made a Flash movie and have connected it to an ASP Script so that it sends mail to a defined Email ID. This ASP Script does work with a general HTML form but doesnot work with Flash . Can anyone help?
I have used the On release {loadVariablesNum ("mail.asp", "0", "Post"); EmailStatus = "Sending... one Moment .. or two.. sometimes it's faster then other times"; } in the action for Submit button in the flash file but on submiting the message is displayed but the mail is not sent Here is the ASp code: <% Response.Buffer = True Dim strBody Dim objCDOMail Dim strMyEmailAddress Dim strReturnEmailAddress strMyEmailAddress = "mr_sudeepghosh@yahoo.com" strReturnEmailAddress = Request.Form("email") strBody = "<h2>Feedback</h2>" strBody = strBody & "<br><b>Name: </b>" & Request.Form("name") strBody = strBody & "<br><b>Support on: </b>" & Request.Form("menu") strBody = strBody & "<br> " & Request.Form("address") strBody = strBody & "<br> " & Request.Form("city") strBody = strBody & "<br> " & Request.Form("state") strBody = strBody & "<br> " & Request.Form("country") strBody = strBody & "<br> " & Request.Form("pin") strBody = strBody & "<br><br><b>Telephone: </b>" & Request.Form("phone") strBody = strBody & "<br><b>E-mail: </b>" & strReturnEmailAddress strBody = strBody & "<br><br><b>Comments: - </b><br>" & Replace(Request.Form("details"), vbCrLf, "<br>") strBody = strBody & Request.Form("Contact") End If Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = Request.Form("firstName") & " " & Request.Form("lastName") & " <" & strReturnEmailAddress & ">" objCDOMail.To = strMyEmailAddress objCDOMail.Subject = "Feedback from Livingstoneacademy.com" objCDOMail.BodyFormat = 0 objCDOMail.MailFormat = 0 objCDOMail.Body = strBody objCDOMail.Importance = 2 objCDOMail.Send Set objCDOMail = Nothing %> |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Using Flash to Send mail with ASP Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|