armins77 Posted April 8, 2010 Report Share Posted April 8, 2010 (edited) Kād vēlos pārveidot funkciju, kas sūta E-pastu. // check to see if verificaton code was correct if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){ // if verification code was correct send the message and show this page mail("cickens@inbox.lv", 'Kontaktu forma:'.$subject, $_SERVER['REMOTE_ADDR']."Ziņa: ".$message, "$from"); // delete the cookie so it cannot sent again by refreshing this page setcookie('tntcon',''); Kād gribu uzlikt lai pirms IP un E-pasta ir kāds teksts rāda kļūdu. Edited April 8, 2010 by armins77 Quote Link to comment Share on other sites More sharing options...
briedis Posted April 8, 2010 Report Share Posted April 8, 2010 eeeeeeeeem. Varētu mēģināt skaidrāk izteikties, lūdzu? :) Quote Link to comment Share on other sites More sharing options...
armins77 Posted April 8, 2010 Author Report Share Posted April 8, 2010 Kad man ir tāds formatējums mail funkcijai uz E-pastu atnāk: test@test.lv 81.195.8.239Ziņa: Pārbaudes ziņa. Bet es cenšos dabūt šādi, bet man nesanāk. :( Sūtītāja E-pasts: test@test.lv Sūtītāja IP: 81.195.8.239 Sūtītāja ziņa: Pārbaudes ziņa. Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted April 8, 2010 Report Share Posted April 8, 2010 (edited) vairāk pie atstarpēm un rindu sakartojuma japiestrādā! Es pats nekļūdos izmanto <br /> Edited April 8, 2010 by Snaip3Rs Quote Link to comment Share on other sites More sharing options...
chizijs Posted April 9, 2010 Report Share Posted April 9, 2010 (edited) mail("cickens@inbox.lv", 'Kontaktu forma:'.$subject, $_SERVER['REMOTE_ADDR']."\n Ziņa: ".$message, "$from"); \n ir tas pats, kas <br/> Edited April 9, 2010 by chizijs Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted April 9, 2010 Report Share Posted April 9, 2010 Ta jau es ar kaut ko zinu! :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.