I am familiar with submitting a form and formatting it to an email address with PHP, but I have a client saying that with their last organization they had form submission set so incoming emails were categorized to particular folders. I am not familiar with this functionality.
I did a Google search ad nothing applicable came up, so I turned to StackOverflow.
I have a simple script that I use for most client forms:
$redirectTo = "http://www.somedomain.com";
$to = "person@email.com";
$from = "Contact Form";
$subject = "Contact Form Submission";
$headers = "From: $from\r\n";
$message = "";
$formFields = array_keys($_POST);
for ($i = 0; $i < sizeof($formFields); $i++)
{
$theField = strip_tags($formFields[$i]);
$theValue = strip_tags($_POST[$theField]);
$message .= $theField;
$message .= " = ";
$message .= $theValue;
$message .= "\n";
}
$success = mail($to, $subject, $message, $headers);
if ($success)
{
header("Location: " . $redirectTo);
}
else
{
echo "An error occurred when sending the email.";
}
Thoughts?
It isn’t possibile. It’s all handled client-side by using filters.