Copy Posted October 21, 2010 Report Share Posted October 21, 2010 Sveiki! Tātad no php.net dabūju šādu skriptu: <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> viņš darbojas. Izmantojot programmu ArGoSoft Mail Server .NET Free uz Win7 un atverot windows live mail, e-pasts pienāk un viss ir skaisti. Jautājums tāds, vai šis skripts ies, ja uzlikšu viņu uz reāla web servera kur ir linux, nevis tikai uz http://localhost. Jo neizskatās ka te kautkur būtu jānorāda porti vai smt serveri u.t.t. Respektīvi vai darbosies uz reālas web lapas nevis uz localhost. Paldies! Quote Link to comment Share on other sites More sharing options...
briedis Posted October 21, 2010 Report Share Posted October 21, 2010 (edited) Ja tur viss būs nokonfigurēts kā nākas (mailserveris, tas ir), tad viss strādās, jā. Edited October 21, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
Copy Posted October 21, 2010 Author Report Share Posted October 21, 2010 Briedi, tas bija tas ko gribēju dzirdēt! paldies Tev! 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.