Bunkertor 7 Posted October 25, 2007 Report Share Posted October 25, 2007 Sveiki, Kas vareetu buut par iemeslu, ka nestraadaa pilniigi parasts mail scripts, kas pirms tam straadaaja bez probleemaam. Ideja ir taada, ka ar POST paliidziibu variabli tiek savaakti no html formas un nosuutiiti. Ja es meeginu aizsuutiit testu, kur saneemeejs ir uzraadiits mans koleega, kas seezh blakus, vinsh testu sanjem. Ja suuta kaads no aarpasaules, vinsh neko nesanjem. Buushu pateiciigs par idejaam! <?php error_reporting(E_ALL); ini_set('display_errors', 1); $to = "mail@example.com"; $name = $_POST['name']; $acct = $_POST['acct']; $street1 = $_POST['street1']; $phone = $_POST['phone']; $street2 = $_POST['street2']; $fax = $_POST['fax']; $town = $_POST['town']; $email = $_POST['email']; $ount = $_POST['ount']; $person = $_POST['person']; $zipper = $_POST['zipper']; $ordnu = $_POST['ordnu']; $q1 = $_POST['q1']; $q2 = $_POST['q2']; $q3 = $_POST['q3']; $q4 = $_POST['q4']; $voice = $_POST['voice']; $subject = "Message From $name"; $message = "Name: $name\nAccount: $acct\nStreet1: $street1\nStreet2: $street2\nTown: $town\nCountry: $ount\nPost Code: $zipper\nPhone: $phone\nFax: $fax\nE-mail: $email\nOrder Number: $ordnu\nPerson: $person\nInvoice: $voice\nTut Pack: $q1\nTut Split: $q2\nEmperor Pack: $q3\nEmperor Split: $q4"; mail($to, $subject, $message, "From: $name <$email>\nX-Mailer: PHP/" . phpversion()); header( "location: redir.html" ); ?> Link to comment Share on other sites More sharing options...
Delfins Posted October 25, 2007 Report Share Posted October 25, 2007 mailers ir sabeigts vai atrubīts. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 25, 2007 Report Share Posted October 25, 2007 Ja es meeginu aizsuutiit testu, kur saneemeejs ir uzraadiits mans koleega, kas seezh blakus, vinsh testu sanjem. Ja suuta kaads no aarpasaules, vinsh neko nesanjem. pats jau esi uzrakstijis atbildi ... taatd kods nav vainiigs bet gan juseja (iekseja, areja) SMTP servera gljuki , vai Ugunsmuris.... + dazreiz ir ta kad sutot no localas kastes nestrada konstrukcija name<email> ... dies vien zin kapec, bet nu nestrada un viss..... (SMTP serveris atgriezj erroru) .... P.S. kads SMTP tev ir uzlikts (adrese caur kuru suti..) Link to comment Share on other sites More sharing options...
superKrona Posted October 25, 2007 Report Share Posted October 25, 2007 Varbūt beidzot uzlikts mailserverim spamfiltrs? Respektīvi, vai no ārpasaules sūtošie arī sūta tavam draugam vai uz citu e-pastu? Link to comment Share on other sites More sharing options...
Bunkertor 7 Posted October 25, 2007 Author Report Share Posted October 25, 2007 (edited) Paldies par atbildeem. pats jau esi uzrakstijis atbildi ...taatd kods nav vainiigs bet gan juseja (iekseja, areja) SMTP servera gljuki , vai Ugunsmuris.... Es jau arii it kaa taa domaaju, tachu shefiem, kuri no programmeeshanas neko nesaprot, es to pieraadiit nevaru :( P.S. kads SMTP tev ir uzlikts (adrese caur kuru suti..) Nezinu, mums ir provaideris, kuram kastes staav citaa pilseetaa un kaa vinsh ir tur to visu konfigureejis man nav ne jausmas, vinsh nesaka... Respektīvi, vai no ārpasaules sūtošie arī sūta tavam draugam vai uz citu e-pastu? Jaa, visi testi iet us vinja epastu. Edited October 25, 2007 by Bunkertor 7 Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 25, 2007 Report Share Posted October 25, 2007 (edited) uztaisi apsaluti primitivu skriptinju un sakuma teste ar vinju..... echo mail('testa@mails.lv', 'test', 'test', 'From: tavs@emails.lv'); ---- Cik noprotu Teste uz servera, nevis lokalas masinas.... -- vel var gadities ka dotajai IP ir nokljuvusi spamfiltra sarakstos (dota servera) --> tad uz ieksejo mailu ies , bet uz arejo nee.... --- Tev darba emails ir tads pats ka dotais domens? (mans@tetejamaisdomens.com)...? ----- Edited October 25, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
Bunkertor 7 Posted October 29, 2007 Author Report Share Posted October 29, 2007 Paldies visiem. Atrisinaajaas pats no sevis - izraadaas jauneeklis bija piemirsis kaut ko mail serverii uzkonfigureet. Diemzheel, es taa arii neuzzinaaju, kas tieshi bija nogaajis greizi. Link to comment Share on other sites More sharing options...
Recommended Posts