"; throw new Exception($error); } $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; } } } $body = 'This is a multi-part message in MIME format.'.$eol.$eol; $body .= '--'.$boundary.$eol; $body .= 'Content-Type: text/plain; charset=UTF-8'.$eol; $body .= 'Content-Transfer-Encoding: 8bit'.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; if ($mailto != '') { mail($mailto, $subject, $body, $header); } header('Location: '.$success_url); } catch (Exception $e) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $e->getMessage(), $errorcode); echo $errorcode; } exit; } ?> Contact Glenda S Wallace & GSWrite Communications Missoula Montana
Your Story Matters.
Ready to Share Like It Matters?
Montana Made. Professional. Package Rates & Loyalty Rewards.

Glenda S Wallace
THANKS FOR STOPPING BY TODAY.
CONTACT FORM
Need a fresh perspective on what Glenda S Wallace describes as Story Selling? We're hear for you.
Email
Let's Talk.
(406) 722-5397

Free Consultations.
Contact
Use Form
Snail Mail:

Glenda S Wallace
PO Box 139
Alberton Montana 59820
Marketing  •  Content  •  Websites  •  Training
Enjoy 47 seconds of
music by Ellie Nuno.
Glenda S Wallace Montana GSWrite Websites, Marketing & Content
Helping Clients Tell Their Stories
Follow GSWrite on Social Media.
DO IT RIGHT WHEN IT MATTERS! GSWrite...