<?php
/**
 * NORTHWIND, 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 brief.
 *
 * 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} {company} {event} {eventdate} {guests} {venue}
 *   {budget} {message} {site} {date}
 *   These get swapped for the real details when the email is sent.
 *   Spell them exactly, in lower case, or they will print as written.
 *
 *   {eventdate}  the day of THEIR event
 *   {date}       the moment the brief was sent. Two different things.
 */


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

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

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


// =========================================================================
//  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 brief: {event}, {eventdate}, {guests}';

/** The first line, above the brief. */
$INTRO_TO_YOU = 'A brief came in through the website.';

/** The last line, below the brief. */
$FOOT_TO_YOU = 'Reply to this email and it goes straight back to them.';


// =========================================================================
//  4. THE EMAIL THAT GOES TO THEM
// =========================================================================

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

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

/**
 * 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 the brief. Here is what we have:

  Event  : {event}
  Date   : {eventdate}
  Guests : {guests}
  Venue  : {venue}
  Budget : {budget}

One of us will read it properly and come back to you within one
working day, with questions first and a shape for the day second.
There is no charge for that.

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 brief is with us and we will come back to you within one working day.';

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

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


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

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

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

/** Where briefs 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 brief 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:  events@yourdomain.com
 *                 wrong:  events
 *
 *   '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.
// =========================================================================
