Jump to content
php.lv forumi

funkcija mail


voldemarz

Recommended Posts

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

jaa novaacu..

 

edit: Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\web\vg\index.php on line 2

Errors! Un php.ini man atrodas F:\php-4.4.0-Win32\php.ini un F:\windows\php.ini - abos tika redigjeets .. A mosh PHP.ini failaa ir jabuut noraadei uz windows mapi, kur atrodas tas php.ini fails, tjip kuraa diskaa..:P

Edited by SkyD
Link to comment
Share on other sites

Pats kods nav uzrakstīts pareizi, manuālī taču ir rakstīts piemērs, to būtu nokopējis vispirms..

<?php
$to	  = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]';
mail($to, $subject, $message, $headers);
?>

Un papildus var sākumā pierakstīt: ini_set('sendmail_from', '[email protected]');

Varbūt tas līdzēs kļūdu apslāpēt.

Link to comment
Share on other sites


×
×
  • Create New...