Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I send a mail

Status
Not open for further replies.

be12dune09a

Programmer
Nov 17, 2005
24
RO
I tryed with
<?
ini_set("SMTP","localhost");
ini_set("smtp_port","25");
mail("giru.cosmin@gmail.com", "ceva", "alceva");
?>

it did not work
instead of localhost I put mail."my_server.com
 
What OS are you working on?
Probably Windows - the directives you showed are only valid in Windows. What it doesn't say but is assumed is that you have some kind of mail server software running on the machine.
If you don't it will not work.
 
i HAVE A SMTP SERVER I PUT ini_set("SMTP","SMTP.HOUSTNAME.COM");
BUT IT STILL DOESENT WORK
I AM RUNNING IT UNDER WINDOWS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top