Amy’s Kitchen, Natural and Organic Foods

decrease text size increase text size

Retailers & Distributors

If you are a retailer or distributor and would like to sell Amy's products, please use this form contact us with your inquiry.
 
If you prefer, you can also call our Sales Department at 707-781-6600.


 

formmail->params->retailrecepient); /** * ------------------------------------------------- * handle the post * ------------------------------------------------- */ if ($_SERVER['REQUEST_METHOD'] == 'POST' and isset($_POST['Submit']) and $_POST['Submit'] == "Submit") { //Begin Error Checking $error = false; $html['error_message'] = "Please Fill In The Following:
\n"; // NAME if ($_POST['name'] == '') { //If the name field is blank $error = true; $html['error_message'] .= "-A Name
\n"; //Notice the (.=), this means that the following string is appended onto the existing string. } else { $clean['name'] = stripslashes($_POST['name']); } // EMAIL if ($_POST['email'] == '') { $error = true; $html['error_message'] .= "-An Email
\n"; } else if (! ereg ( "@..", $_POST['email'] )) { //Checks for the existance of an @ symbol and a . symbol, in that order. Notice the (!), which means NOT. $error = true; $html['error_message'] .= "-A Valid Email
\n"; } else { $clean['email'] = stripslashes($_POST['email']); } // COMMENTS if ($_POST['comments'] == '') { $error = true; $html['error_message'] .= "-Your Message to Amy's
\n"; } else { $clean['comments'] = stripslashes($_POST['comments']); } // ADD TO LIST $clean['add_to_list'] = ($_POST['add_to_list'] == 'add_to_list') ? "Yes" : "No"; // SUBJECT $clean['subject'] = stripslashes($_POST['subject']); if ($error == false) { //Send Email If No Error // BUILD THE MESSAGE AND SUBJECT $clean['message'] = "Sent: " . date ( "F jS, Y" ) . "\n" . "From: " . $clean["name"] . "\n" . "Email: " . $clean["email"] . "\n\n" . "-------------------------------------\n\n" . "Dear Amy's Kitchen,\n" . $clean["comments"] . "\n\n" . "From " . $clean["name"] . "\n\n" . "-------------------------------------\n\n" . "Web Use OK: " . $clean["add_to_list"]; $clean['subject'] = "Amy's Retailer & Distributor Online Contact: " . substr( $clean['subject'], 0, 15 ) . "..."; // SEND TO AMYS $mail = new Zend_Mail ( ); $mail->setBodyText ( $clean['message'] ) ->setFrom ( $clean['email'], $clean['name'] ) ->addTo ( $clean['recepient'] ) ->setSubject ( $clean['subject'] ) ->send (); // SEND TO CUSTOMER CONFIRMATION $mail = new Zend_Mail ( ); $mail->setBodyText ( "Thank you for your message! We'll be in touch soon." ) ->setFrom ( $clean['recepient'][0], "Webmaster" ) ->addTo ( $clean['email'], $clean['name'] ) ->setSubject ( $clean['subject'] ) ->send (); // DISPLAY THANK YOU echo "

Thank you! Your Email has been delivered.

"; exit; } else { // RETURN THE FORM WITH ERROR TEXT $html['name'] = (isset($clean['name'])) ? htmlentities($clean['name'], ENT_QUOTES, 'UTF-8') : ''; $html['email'] = (isset($clean['email'])) ? htmlentities($clean['email'], ENT_QUOTES, 'UTF-8') : ''; $html['subject'] = (isset($clean['subject'])) ? htmlentities($clean['subject'], ENT_QUOTES, 'UTF-8') : ''; $html['comments'] = (isset($clean['comments'])) ? htmlentities($clean['comments'], ENT_QUOTES, 'UTF-8') : ''; $html['add_to_list'] = (isset($clean['add_to_list']) AND $clean['add_to_list'] == 'Yes') ? 'checked' : ''; displayForm($html); exit; } } else { /** * ------------------------------------------------- * return the form * ------------------------------------------------- */ $html['name'] = ''; $html['email'] = ''; $html['subject'] = ''; $html['comments'] = ''; $html['add_to_list'] = 'checked'; $html['error_message'] = ''; displayForm($html); exit; } /** * ------------------------------------------------- * general functions * ------------------------------------------------- */ function displayForm($html) { echo <<Amy's Retailer & Distributor Form

{$html['error_message']}

Yes, you may use my comments on the Amy's Kitchen website or in other Marketing collateral. See Privacy Policy.

END; } ?>

Print Page