Welcome to WebmasterWorld Guest from 54.146.201.80

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)

New User

joined:Sept 22, 2011
posts:38
votes: 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 Sept 24, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Apr 17, 2002
posts:601
votes: 0


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]