Welcome Guest [Log In] [Register]
Viewing Single Post From: Outgoing Email with PHP
ElementalAlchemist
Member Avatar
ERROR: This title does not exist.
[ *  *  *  *  * ]
Let me dig up the old contact form I used to use for AlchemyIRC.

ElementalAlchemist digs. Please be patient during this process. It may take anywhere from one minute to a while.

It appears I have this, which sends the mail if something was sent.
Code:
 
if ($sent=="yes") {
echo "<h1>Your message was sent successfully.</h1>";
$email = filter_var($_REQUEST['email'], FILTER_SANITIZE_EMAIL);
$message = filter_var($_REQUEST['message'], FILTER_SANITIZE_STRING);
$to = filter_var($_REQUEST['dest'], FILTER_SANITIZE_EMAIL);
$subject = filter_var($_REQUEST['subject'], FILTER_SANITIZE_STRING);
mail( $to, $subject,
$message, "From: $email" );
}
Offline Profile Quote Post
Outgoing Email with PHP · Programming and Scripting Chat