voldemarz Posted January 6, 2006 Report Share Posted January 6, 2006 Seku reku ir kods no "PHP soli pa solim" graamatas, bisku palabots: http://paste.php.lv/3106 Paziņojuma kļūda izskatās šādi: Parse error: syntax error, unexpected T_STRING in x:\home\localhost\www\send_sms.php on line 32 graamataa pirms mail ziimes veel bija "@" simbols, kas tipa liek neizvadiit standarta kluudas pazinojumus, bet man nez kapeec, vinju nebgribeeja nept pretii un rakstiija, ka vins esot unexpected, tapeec izneemu.. bet anyway 32 rindaa rada, ka ir kluuda.. skatiijos, skatiijos... kas tur iisi nav riktiigi, mosh kaut kas jau ieprieks? kaads drosi vien teiks, ka sitaa vairs uz LMT un TELE2 sms aizsuutiit nevar (kaut kas taads iepriekseejos topikos par mail uzpeldeeja), bet man galvenais, lai vins tik suuta, lai straadaa, po ka nekas neaiziet, es tik gribu zinaat, kaa to konkreeto piemeeru uzkiileet ejosu.. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 6, 2006 Report Share Posted January 6, 2006 (edited) standarta kljuuda iesaaceejiem --> sajaa gadijumaa kljuuda nav 32 rindinjaa bet ieprieksh truukst ; edit: biezji vien kljuuda ir iepriekseejaa rindinjaa, it iipashi aizmarshiibas kljuudas... edit 2: padomaa kaa taa rindinja lasaas kopaa $mainiigais="kautkas " @mail...... protams ka tad tas @ galiigi tur ir garaam ;) $mainiigais="kautkas "; @mail...... sadi buutu pareizi Edited January 6, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
SkyD Posted January 6, 2006 Report Share Posted January 6, 2006 Man ar ir viens jautaajums par shito teemu: ieksh F:/windows/php.ini = rindinjas mail funkcijai: [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = skyd@inbox.lv Nu bet izmet pazinjojumu: "Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in .... " Ports = 25 un SMTP = localhost ..!! Kas pa prob?! Link to comment Share on other sites More sharing options...
Paulinjsh Posted January 6, 2006 Report Share Posted January 6, 2006 Tev tak izejošais mailserveris nestāv uz localhost! Link to comment Share on other sites More sharing options...
SkyD Posted January 6, 2006 Report Share Posted January 6, 2006 kur tad?:DD Link to comment Share on other sites More sharing options...
voldemarz Posted January 6, 2006 Author Report Share Posted January 6, 2006 (edited) to SkyD http://help.inbox.lv/index.php?qid=85 P.S. to all: nafig sitais forums tik leens? vai tas taa tikai man? aaa, paldies Grey_Wolf Edited January 6, 2006 by voldemarz Link to comment Share on other sites More sharing options...
SkyD Posted January 6, 2006 Report Share Posted January 6, 2006 bljaa.. pie SMTP tag ieliku smtp.inbox.lv, bet uzraada = "Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\web\vg\index.php on line 92" !!! Un 92rinda = $send = mail("skyd@inbox.lv", "From: skyd@inbox.lv", "From: skyd@inbox.lv"); Un jaa.. Tam PHP.ini failam jaatrodas, kur? Php mapee, vai uz /windows/ mapes?!! Link to comment Share on other sites More sharing options...
voldemarz Posted January 6, 2006 Author Report Share Posted January 6, 2006 windows vroģe bi Link to comment Share on other sites More sharing options...
php_Stopp Posted January 6, 2006 Report Share Posted January 6, 2006 tev pateica http://help.inbox.lv/index.php?qid=85 - ieiej un apskaties. ne jau tas ir mailserveris ;) tur ir salistēti mailserveri katram providerim. tev tik jāzina tavs provideris un vai viņš atļauj te sūtīt.. Link to comment Share on other sites More sharing options...
SkyD Posted January 6, 2006 Report Share Posted January 6, 2006 hmm.. nu jaa ir man - Apollo, tātad - smtp.apollo.lv :D bet pa to sendmail_from .. // ir uzlikts tur : skyd@inbox.lv!!!!!!!! Ja saka, ka nav uzstaadiits, tad neatljauj suutit.. wtf?!:D Link to comment Share on other sites More sharing options...
php_Stopp Posted January 6, 2006 Report Share Posted January 6, 2006 (edited) from adrese var būt kautvai 'resns@duraks.haha' ja nemaldos, tad tai pat nav obligāti jābūt validai e-pasta adresei: kaut vai 'es esmu jauks' Edited January 6, 2006 by php_Stopp Link to comment Share on other sites More sharing options...
SkyD Posted January 6, 2006 Report Share Posted January 6, 2006 nu jaa, ok.. Bet kapeec man saka = "Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\web\vg\index.php on line 92" Link to comment Share on other sites More sharing options...
php_Stopp Posted January 6, 2006 Report Share Posted January 6, 2006 tāpēc, ka tev laikam jau vispār sendmail_from nav uzstādīts (vai ir tukšs) Link to comment Share on other sites More sharing options...
litt Posted January 6, 2006 Report Share Posted January 6, 2006 Ja nemaldos, tad pēc php.ini izmaiņām ir jārestartē apacis Link to comment Share on other sites More sharing options...
SkyD Posted January 7, 2006 Report Share Posted January 7, 2006 (edited) ir man sendmail_from uzstaadiits, un apacis arii tiek restarteets.. :P~ <? $from = header("From: skyd@inbox.lv"); $send = mail("skyd@inbox.lv", "Teksts..", $from); if ($send) { echo 'Ok!'; } ?> Un vienalga spljauj aaraa, ka nav uzstaadiits.. bljaa.. !! Kur taa var buut!?!! Edited January 7, 2006 by SkyD Link to comment Share on other sites More sharing options...
Recommended Posts