Return to Snippet

Revision: 8796
at October 8, 2008 16:43 by gfazioli


Initial Code
if( isset( $_POST['name'] ) && 
	isset( $_POST['email'] ) &&
	isset( $_POST['subject'] ) &&
	isset( $_POST['message'] ) ) {
	
	$to = 'Jon <[email protected]>';
	
	mail($to, strip_tags( $_POST['subject'] ), stripslashes( utf8_decode( strip_tags( $_POST['message'] ) ) ), 'From: '.strip_tags( $_POST['name'] ).'<'.$_POST['email'].'>' );
}

Initial URL
http://www.undolog.com

Initial Description
The right way to send a mail with POST params

Initial Title
Formatting PHP mail params

Initial Tags
php, mail

Initial Language
PHP