homepage Welcome to WebmasterWorld Guest from 54.242.126.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Sample working mail form using PHP
Bubzeebub



 
Msg#: 5162 posted 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

10+ Year Member



 
Msg#: 5162 posted 1:04 pm on Sep 24, 2004 (gmt 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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved