Toms Posted February 22, 2005 Report Share Posted February 22, 2005 Nu es suutu, viss taa kaa vajag. php kodaa. smtp.latnet.lv ir ieksh php.ini kur tam jaabuut. Peec maila nosuutiishanas atnaak errors no deamon.. Karoce errors uz suutiitaaja mailu. Neko nesaprotu kaapeec taa, jau 4 stundas shtukoju/mekleeju. Pat biju uzlicis pats sev mailserver, bet kaut kaa negaaja vispaaar. Ai, nocakareejos bezjeegaa. Taatad, jautaajums/luugums: Beidzot normaali un peec kaartas kaads uzrakstiet, kam kur ir jaabuut kaa ierakstiitam, lai mail() straadaatu. Kam kur ieksh php.ini u.c. Kaadiem smtp kur jaabuut.... (zinu, ka smtp atkariigs no provider, bet nevar sev uzlikt mailserver un tad to kaa smtp?) Link to comment Share on other sites More sharing options...
рпр Posted February 22, 2005 Report Share Posted February 22, 2005 man visiem serveriem php.ini failaa SMTP = localhost paarliecinies vai tev visi nepiecieshamie porti valjaa, vai ir noraadiitas atpakaljadreses utt. ja tev tas griezjaas uz linuxa, saakumaa suuti lokaalajiem lietotaajiem, ja kaadas probleemas skaties maillogos. Link to comment Share on other sites More sharing options...
Toms Posted February 22, 2005 Author Report Share Posted February 22, 2005 Atpakaljadreses? Man uz WinXP staav. Tev Linux? Ja nee, tad Tev ir pasham savs mailservers uzinstaleets? Linuxii jau arii ir pasham mailservers. Tur noteikti kaut kas forshi nokonfigots... Link to comment Share on other sites More sharing options...
Roze Posted February 22, 2005 Report Share Posted February 22, 2005 Peec maila nosuutiishanas atnaak errors no deamon.. Karoce errors uz suutiitaaja mailu.Šis jau ir gana labi, jo nozīmē, ka mails tiek izsūtīts tikai to atgriež latneta mailserveris. Vai vari iepeistot tā maila saturu? man visiem serveriem php.ini failaa SMTP = localhost Šis gan manuprāt tiek ņemts vērā tikai uz windows strādājošam php. Un tad ar šķiet ka noteikti vajag kaut kādu Mail Transpor Agentu / Servisu darbināt. Bet nu tā jau vislabāk der provaidera smtp serveris. Link to comment Share on other sites More sharing options...
рпр Posted February 22, 2005 Report Share Posted February 22, 2005 Šis gan manuprāt tiek ņemts vērā tikai uz windows strādājošam php. Un tad ar šķiet ka noteikti vajag kaut kādu Mail Transpor Agentu / Servisu darbināt. Bet nu tā jau vislabāk der provaidera smtp serveris. 14048[/snapback] nē, tas parametrs uz abiem osiem strādā, tur tie citi parametri bija vairāk priekš logiem. Link to comment Share on other sites More sharing options...
Toms Posted February 22, 2005 Author Report Share Posted February 22, 2005 Funkcija mail() man izskataas shitaa: mail('kam@kur.lv','subectinjsh','body textinjsh'); Un errors saka shitaa (atsuutiitais): Sender address rejected, 554 Error: no valid recipients. Link to comment Share on other sites More sharing options...
рпр Posted February 22, 2005 Report Share Posted February 22, 2005 paņem norādi normālu atpakaļadresi ar headeriem. tieši pārtulkojot kļūdas paziņojumu kam@kur.lv ir nederīgs mails, bet pieļauju, ka tu sūti uz citu, lai saglabātu savu anonimitāti. Link to comment Share on other sites More sharing options...
Toms Posted February 22, 2005 Author Report Share Posted February 22, 2005 Tikko svaigi PC paarinstaleeju, uzliku apaci php (peronfigured paku). Ieksh php.ini [mail function] SMTP = localhost sendmail_from = postmaster@localhost Un nosuutiiju ar shaadu kodu: ini_set(SMTP, "mail.latnet.lv"); $message = 'kaut kas baigs'; if (mail("xxx@xxx.lv", "the subject", $message, "From: yyy@{$_SERVER['SERVER_NAME']}\r\n" . "Reply-To: yyy@{$_SERVER['SERVER_NAME']}\r\n" . "X-Mailer: PHP/" . phpversion())){ echo 'Ir OK'; } else{ echo 'Nav OK'; } Protams, xxx un yyy vietaa ir eksisteejoshas adreses. Paraadiijaas, ka Ir OK. Uz mailu nekas nepienaaca. Pat ne errori :) Aizgaaju, izmazgaaju acis, mosh kaut ko palaidis garam. Nez, bik izmainiiju kodu: ini_set(SMTP, "mail.latnet.lv"); $message = 'kaut kas baigs'; if (mail("xxx@xxx.lv", "the subject", $message, "From: yyy@xxx.lv\r\n" . "Reply-To: yyy@xxx.lv\r\n" . "X-Mailer: PHP/" . phpversion())){ echo 'Ir OK'; } else{ echo 'Nav OK'; } Arii paraadiija, ka viss OK, bet mails nepienaak.... arii bez erroriem. Jupis vinju raavis, kur kluuda? Link to comment Share on other sites More sharing options...
Toms Posted February 22, 2005 Author Report Share Posted February 22, 2005 heijaaa!!! Nezinu kas notika, bet maili saaka iet, viss OK. Kods shitaads: ini_set("SMTP","mail.latnet.lv"); //ini_set( "smtp_port", 25 ); ini_set("sendmail_from","te@te.lv"); if (mail("xxx@xxx.lv","This ssTETE","This is the TETETETE body","From: te@te.lv\r\nContent-type: text/plain\r\n\r\n")) { print "Successs"; } else { print "Failed"; } Izmainiiju iekh php.ini smpt un sendmail_from. Briinumi. Nekaa nesaprotu, jo pashos saakumos, kad shitaa meegjinaaju, nekas neizdevaas. Stulbums. Mosh kaut ko palaidu garaam. HWZ. Katraa zinjaa, thanks for help. bucinjas!! :) Link to comment Share on other sites More sharing options...
Recommended Posts