Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Sample working mail form using PHP



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.


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]

Featured Threads

Hot Threads This Week

Hot Threads This Month