Jump to content
php.lv forumi

PHP mail funkcija


Copy

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...