xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 mail( "xfr33@inbox.lv", "Pasūtījums", "Firmas nosaukums = $email, Vards, uzvards = $name, Kontaktinformacija = $info, Prece = $prece", "From: $email" ); Nu, te ir kāda kļūda?? Man liekas ka nav! Link to comment Share on other sites More sharing options...
andrisp Posted July 21, 2008 Report Share Posted July 21, 2008 Ah, laikam taču vajadzēja tomēr šito iekš php.ini labot. Tur pat, kur SMTP uzstādījumi, varēja norādīt arī From adresi. Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 tā from adrese ir vienalga kāda adrese? vai arī ja man ir tas mail.livas.lv serveris jāliek livas epasta adresi? Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 nu vsjo esmu aizgājis sviestā.... tātad php.ini [mail function] ; For Win32 only. SMTP = srv14.000webhost.com smtp_port = 25 ; For Win32 only. ;sendmail_from = xfr33@inbox.lv Kļudas apraksts Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 <xfr33@inbox.lv>... we do not relay <> in C:\WEB\htdocs\send.php on line 8 Warning: Cannot modify header information - headers already sent by (output started at C:\WEB\htdocs\send.php:8) in C:\WEB\htdocs\send.php on line 9 un send.php <?php $email = $_REQUEST['email']; $name = $_REQUEST['name']; $info = $_REQUEST['info']; $prece = $_REQUEST['prece']; mail( "xfr33@inbox.lv", "Pasūtījums", "Firmas nosaukums = $email, Vards, uzvards = $name, Kontaktinformacija = $info, Prece = $prece", "From: $email" ); header( "Location: http://www.google.lv" ); ?> NEKO NESAPROTU VAIRĀK :@ :D Link to comment Share on other sites More sharing options...
Aleksejs Posted July 21, 2008 Report Share Posted July 21, 2008 Atkarīgs no mail.livas.lv konfigurācijas, taču klientiem parasti ļauj "RELAYot" ar jebkādām adresēm. Link to comment Share on other sites More sharing options...
Aleksejs Posted July 21, 2008 Report Share Posted July 21, 2008 Atkomentē to e-pasta adresi php.ini failā. Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 epasta adrese no ini faila ir xfr33@inbox.lv + servera adrese ir srv14.000webhost.com Link to comment Share on other sites More sharing options...
Aleksejs Posted July 21, 2008 Report Share Posted July 21, 2008 Cik redzu no TEvis ieliktā, tad pirms mainīgā sendmail_from iekš php.ini ir semikols, kas nozīmē, ka šis mainīgais ir aizkomentēts. Rekur vēl bija kaut kas par mailu konfigurēšanu: http://php.lv/f/index.php?showtopic=9018&hl=mail Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 noņēmu to semikolu, bet pat kļūdas apraksts nemainās.... :( tevis iedotajā linkā ir pamācība ar @mail. ir kāda starpība starp mail un @mail? Link to comment Share on other sites More sharing options...
Aleksejs Posted July 21, 2008 Report Share Posted July 21, 2008 (edited) @ zīme pirms PHP funkcijas nodrošina to, ka PHP neģenerē error/warning paziņojumu, ja funkcija izpildās nesekmīgi. P.S. Pēc semikola noņemšanas apache pārstartēji? Edited July 21, 2008 by Aleksejs Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 damn... uz es jau domāju ka viss aizgāja :( :D es restartēju pēc katras izmaiņas php.ini! arī pēc semikola noņemšanas! Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 nevarētu būt vaina servera nosaukumā? Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 ok, saprotu, ka neiebraukšu... :( :@ ir kāda iespēja to formu, kad uzspiež saglabāt txt failiņā uz kompja? Link to comment Share on other sites More sharing options...
andrisp Posted July 21, 2008 Report Share Posted July 21, 2008 Ir jā, protams. Link to comment Share on other sites More sharing options...
xfr33 Posted July 21, 2008 Author Report Share Posted July 21, 2008 un pastāstīsi lūdzu? Link to comment Share on other sites More sharing options...
Recommended Posts