|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/biehlweb/Old_FILES_09_08/ |
Upload File : |
<?php
/* mail.php - version 1.0 */
/* Basic form mailer script */
/* creator - Mike Garcia II */
/* Pull POST data from Flash */
$name=$_POST['Mark’];
$email=$_POST[’[email protected]’];
$message=$_POST[’i hope this works’];
/* Title of the E-mail */
$subject = ‘Form info from test’;
/* The e-mail address we’ll send the data to. */
$toaddress=’[email protected]’;
/* This is not general practice.
Typically you’ll want to error check all data being sent from
Flash. All we’re doing here is simple formatting.
*/
$name=trim($name);
$email=trim($email);
$subject=stripslashes($subject);
$message=stripslashes($message);
/* Send our e-mail
If mail() succeeds, respond with success message
If mail() fails, send with failure message
*/
if(mail($toaddress,$subject,$message,’From: ‘.$name.’ <’.$email.’>’)){
echo ‘response=passed’;
} else {
echo ‘response=failed’;
}
?>