Jump to content
php.lv forumi

suutu e-mailu


paulis

Recommended Posts

lieta taada,

taisu lapu kas suuta e-pastu:

 

<?php

mail("[email protected]", "My Subject", "Spams");

?>

 

man izmet shaadu erroru:

 

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in...

 

pameeginaaju arii shaadu skriptu:

 

<?php

mail("[email protected]", "the subject",$message,

"From webmaster@{$_SERVER['SERVER_NAME']}\r\n".

"Reply-To: webmaster@{$_SERVER['SERVER_NAME']}\r\n".

"X-Mailer: PHP/". phpversion());

?>

 

Rezultaats taads pats.

Apskatos savu php.ini:

 

[mail function]

; For Win32 only.

SMTP = localhost ; for Win32 only

sendmail_from = [email protected] ; for Win32 only

 

; For Win32 only.

sendmail_from = [email protected]

 

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").

;sendmail_path =

 

itkaa viss normaali, bet varbuut nee?

googlee palasiiju ka firewall-aa jaatver 25. ports un to izdariiju, bet izmainjas nekaadas.

 

kaads kaut ko vareetu ieteikt?

Link to comment
Share on other sites

×
×
  • Create New...