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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to configure Linux to send mail from php

Status
Not open for further replies.

dogo1984

Programmer
Sep 1, 2002
24
DE
Hi.

I have installed a new System on my Server.

SUSE Linux 8.1 Professional.

Now i want to use it with PHP & Apache as my Webserver.

How had i to configure the Linux that i can send Mails from the machine to a person.

And how had i to configure the php.ini

thx for help.

see you on net and in forum..

byebye
 
dogo;

If you are asking how to have php send a email via a form you can always code it to do so

####################EXAMPLE######################

&quot;<$>&quot; should corrispond with a form field, alternatly you can use default text or address, if the item will always be the same.

<?
print &quot;<html><body>&quot;;
$recipient = &quot;$WHO YOUR'RE SENDING TO (field)&quot;;
$subject = &quot;Re: $form subject field&quot;;
$message = &quot;$form message field&quot;;
$extra = &quot;From: your name goes here&quot;;
mail($recipient,$subject,$message,$extra);
echo &quot;Sending...&quot;;
print &quot;</body></html>&quot;;
?>

Hopes this helps

KC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top