Welcome to WebmasterWorld Guest from 54.221.87.97

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Sample working mail form using PHP

     

Bubzeebub

2:27 am on Sep 24, 2004 (gmt 0)



Does anyone know of a few sites with working php scripts in their form? I'd like to take a look at how it was set up.

Knowles

1:04 pm on Sep 24, 2004 (gmt 0)

10+ Year Member



There are plenty of totorials out there. However here is a quick script that should woulr (however I am not testing it first).


<?
$to = "email@email.com";
$from = "email@email2.com";
$sub = "My Email";
$msg = "Hello World!";
mail($to, $sub, $msg, "From: $from");
?>

As usual check out the PHP.net Manual for Mail Funtion [us2.php.net]