Formulaire mail flash asp/php
Bonjour,
J'ai un petit souci pour le remplissage d'un formulaire mail. Je ne sais pas trop ou placer mon adresse mail ou sera envoyé le formulaire:cry:
voila un peu ce que donne les codes:
Bouton dans le fla:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
for (i=1; i<_parent.fields_descriptions.length; i++) {
if (_parent[_parent.fields_descriptions[i][1]]!=undefined) {
this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2];
}
}
this.recipient=_parent.rec;
i=undefined;
getURL("contact."+_parent.serv, "_blank", "POST"); |
Page .asp:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <%
for i=1 to 7
message=Request("message")
next
message=message + Request("message")
smtpServer = "mail.ml16.ch"
smtpPort = 25
name = Request("Your_Name:")
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "from " & name
myMail.From = Request("Your_Email:")
myMail.To = Request("info@gcimmo.fr")
myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
myMail.Configuration.Fields.Update
myMail.Send
%> |
Voila, si quelqu'un a la solution, ce serait vraiment cool!
Merci.