<?php
/**
 * ORCHARD, FILL THIS IN
 * =========================================================================
 *
 * This is the only file you need to change. Everything below is a setting
 * or a piece of wording. There is nothing to program.
 *
 * HOW TO EDIT IT
 *
 *   1. Open this file in a plain text editor. Notepad is fine. Word is not.
 *   2. Change only the text between the ' quote marks.
 *   3. Keep every quote mark and every semicolon ; exactly where it is.
 *   4. Save, upload, and send yourself a test order.
 *
 * IF THE PAGE GOES BLANK AFTER YOU EDIT
 *   You deleted a quote mark or a semicolon. Undo your last change.
 *   Straight quotes only: '  not  ’
 *
 * WORDS IN CURLY BRACKETS
 *   {name} {email} {phone} {box} {address} {message} {site} {date}
 *   These get swapped for the real order details when the email is sent.
 *   Spell them exactly, in lower case, or they will print as written.
 */


// =========================================================================
//  1. THE ONE YOU MUST CHANGE
// =========================================================================

/** Every order is emailed here. */
$TO = 'hello@7uptheme.com';

/** Your business name. Shown as the sender, and in the emails. */
$TO_NAME = 'Orchard';


// =========================================================================
//  2. THE ADDRESS YOUR MAIL IS SENT FROM
// =========================================================================

/**
 * Leave this empty and the script uses noreply@ your own domain.
 *
 * Once your site is live it is better to write it out in full, like
 * 'noreply@yourdomain.com'. It must be on a domain you own, or your mail
 * may be treated as forged and end up in spam.
 */
$FROM = '';


// =========================================================================
//  3. THE EMAIL THAT COMES TO YOU
// =========================================================================

/** The subject line. */
$SUBJECT_TO_YOU = 'New box order: {box} for {name}';

/** The first line, above the order details. */
$INTRO_TO_YOU = 'A new order came in from the website.';

/** The last line, below the order details. */
$FOOT_TO_YOU = 'Reply to this email and it goes straight to the customer.';


// =========================================================================
//  4. THE EMAIL THAT GOES TO YOUR CUSTOMER
// =========================================================================

/** Set this to false to stop sending the customer a copy. */
$SEND_COPY = true;

/** The subject line of their copy. */
$SUBJECT_TO_CUSTOMER = 'We have your order';

/**
 * Their whole message. Write it exactly as you want it to read.
 * Blank lines here become blank lines in the email.
 */
$MESSAGE_TO_CUSTOMER = "Hello {name},

Thank you for your order. Here is what we have:

  Box     : {box}
  Deliver : {address}
  Phone   : {phone}

We will reply with the total and the first delivery date, usually
within one working day. Nothing is charged until the box arrives.

If anything above is wrong, just reply to this email.";


// =========================================================================
//  5. WHAT THE VISITOR SEES ON THE PAGE
// =========================================================================

/** After the form is sent. */
$MSG_THANKS = 'Thank you. Your order is with us and we will reply by email, usually within one working day.';

/** If the order could not be saved or emailed. {email} becomes your address. */
$MSG_FAILED = 'Sorry, something went wrong at our end and the order did not save. Please email us at {email} instead.';

/** If somebody sends a lot of orders very quickly. */
$MSG_TOO_MANY = 'That is several orders in a short time. Please wait a little while, or email us instead.';


// =========================================================================
//  6. OPTIONS YOU CAN USUALLY LEAVE ALONE
// =========================================================================

/** How many orders one visitor may send in an hour. Use 0 for no limit. */
$MAX_PER_HOUR = 5;

/**
 * A page to send people to after ordering, for example 'thank-you.html'.
 * Leave it empty to show the built in thank you instead.
 */
$REDIRECT_AFTER = '';

/** Where orders are saved. Only change this if your host asks you to. */
$LOG_DIR = __DIR__ . '/storage';


// =========================================================================
//  7. ONLY IF YOUR EMAIL DOES NOT ARRIVE
// =========================================================================

/**
 * Leave 'enabled' as false to begin with. Most hosts send fine without it.
 *
 * If your test order never arrives, or always lands in spam, fill this in
 * and change false to true. You are telling the script to sign in to your
 * own mailbox and send from there, which arrives far more reliably.
 *
 * WHAT GOES IN EACH LINE
 *
 *   'host'    The outgoing mail server. Whoever gives you email tells you
 *             this. It usually looks like smtp.yourdomain.com, or
 *             smtp.gmail.com, or mail.yourhost.com.
 *
 *   'port'    587 in most cases. Use 465 only if your provider says so.
 *
 *   'secure'  'tls' goes with port 587.
 *             'ssl' goes with port 465.
 *             Use whichever pair your provider lists. They come as a pair.
 *
 *   'user'    YOUR FULL EMAIL ADDRESS. The whole thing, including the @
 *             and everything after it, exactly as you would type it to
 *             log in. Not just the part before the @.
 *
 *                 right:  orders@yourdomain.com
 *                 wrong:  orders
 *
 *   'pass'    THE PASSWORD FOR THAT MAILBOX. The same password you would
 *             use to read that email yourself.
 *
 *             Gmail, Outlook and Yahoo will NOT accept your normal
 *             password here. They make you create a separate "app
 *             password" in your account security settings, then you paste
 *             that in instead. If signing in keeps failing, this is
 *             almost always the reason.
 *
 * TWO THINGS THAT CATCH PEOPLE OUT
 *
 *   1. $FROM near the top of this file should be the SAME address as
 *      'user' below. Many providers refuse to send a message that claims
 *      to come from a different address than the one signing in.
 *
 *   2. The password sits in this file as ordinary text. Use a mailbox
 *      created for the website rather than your personal one, and never
 *      put this file somewhere public.
 *
 * Cannot find these details? Search your provider's help pages for
 * "SMTP settings" or "email client settings".
 */
$SMTP = [
    'enabled' => false,               // change to true once the four below are filled in
    'host'    => 'smtp.example.com',  // your outgoing mail server
    'port'    => 587,                 // 587 with tls, or 465 with ssl
    'secure'  => 'tls',               // 'tls' for port 587, 'ssl' for port 465
    'user'    => 'you@example.com',   // your full email address
    'pass'    => '',                  // that mailbox's password, or an app password
];


// =========================================================================
//  Nothing below this line. Close the file and save it.
// =========================================================================
