• 10 odgovora
  • 3.893 pregleda
Poblem sa skriptom za slanje mejla 14.09.2009. u 15:40 · pre 208 meseci #1
Radim jedan sajt u flashu i dobio sam php skriptu za slanje mejlova i komentara sa sajta, pa ne znam da je podesim. Ako neko moze da pomogne , postavicu je ovde
Code:

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]]!=_parent.fields_descriptions[i][2]) {
            this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2];
        }
        _parent.reset_txt(_parent["t"+i], _parent.fields_descriptions[i][1], _parent.fields_descriptions[i][2]);
    }

    this.recipient=_parent.rec;
    i=undefined;
    getURL("contact."+_parent.serv, "_blank", "POST");
    
}
Potpis
Skype : trujagroup
msn : [email protected]
Re: Poblem sa skriptom za slanje mejla 14.09.2009. u 17:27 · pre 208 meseci #2
Proveri na koji nacin ta skripta salje mail (pretpostavljam sa mail funkcijom)
Vidi za svaki slucaj da li ti hosting podrzava taj nacin slanja maila(probaj bez flash-a cisto da znas jel radi).

Iz ovog AS sve sto se tice php-a je to da funkcija getURL ima za parametar taj contact.php koji ce biti pozvan.
Ostavi taj php fajl ili link do cele skripte, jer iskeno ovaj actionscript sto si prilozio nema neke veze sa php-om.

Ako sumnjas na AS, mozda je bolje da pitas na Flash forumu.
Re: Poblem sa skriptom za slanje mejla 14.09.2009. u 21:25 · pre 208 meseci #3
dobio sam od jednog poznanika iz venecuele tako da nemam link

evo coda

Code:

<%
    for i=1 to 7
         message=message + "<strong>"&Request("field_"&i&"_descr")&"</strong>&nbsp;&nbsp;&nbsp;"&Request("field_"&i)&"<br>"
    next
         message=message + Request("message")    
        smtpServer = "mail.trujagroup.com"
        smtpPort = 25
        

        name = Request("your_name")
        Set myMail = CreateObject("CDO.Message") 
        myMail.Subject = "from " & name
        myMail.From = Request("your_email")
        myMail.To = Request("recipient")
        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
    
%>



ne znam gde treba tu da stoji moja mejl adresa na koju treba da stizu mejlovi, stavio sam smtp
Potpis
Skype : trujagroup
msn : [email protected]
Re: Poblem sa skriptom za slanje mejla 14.09.2009. u 21:31 · pre 208 meseci #4
Izbacuje mi gresku 401 - Autorization Required

Internal server error

We’re sorry for the inconvenience, but there has been an internal server error. Please click on the back button to return to the former page.
Potpis
Skype : trujagroup
msn : [email protected]
Re: Poblem sa skriptom za slanje mejla 14.09.2009. u 21:41 · pre 208 meseci #8
Pre da je ASP(ne koristim ga pa ti ne mogu pomoci), mozda je bolje da pitas na drugom forumu, ili da se samo tema tamo prebaci.
Re: Poblem sa skriptom za slanje mejla 14.09.2009. u 21:48 · pre 208 meseci #9
ekstenzija je .asp, tek sam ja neiskusan , ali sam ovo nasao o tome

ASP - Active Server Pages


(asp)

A Microsoft specification for dynamic web pages created using Visual Basic or Jscript (engines for Perl and REXX are also available). Pages written to this specification carry the extension .ASP and are similar to CGI scripts which generate code on the fly. ASP pages can combine HTML, scripts, and ActiveX server components.
Potpis
Skype : trujagroup
msn : [email protected]
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme