

<?php
	$infoText = ''; // A short introductory text or sentence to be displayed above the contact form.
	$recipientEmail = 'me@example.com'; // The email address to send the message to.
	$recipientName = ''; // The recipient's name. If empty, the website name will be used.
	$subjectPrefix = '[My Blog]'; // A short text to precede the subject line.
	$adminDataEnabled = false; // Set to true to append administrative information about the sender to the sent email.
	$sessionLogEnabled = false; // Set to true to append information about the sender's interaction with the contact form to the email.
	$captchaEnabled = false; // Set to true to enable a spam protection question.
	$captchaSecret = 'SecretText'; // A secret text used to encrypt the captcha answer.
	$fields = // XML string for defining custom fields (see help page).
	'<fields>
		<field name="subject" size="50" label="Subject" content="Order" readonly="true" />

		<field name="article-1" size="100" and="item-1" label="Article" labelpos="above" lineup="true" content="Catalog (free)"/>
		<field name="quantity-1" type="number" and="item-1" or="quantity" width="80px" label="Quantity" labelpos="above" content="1"/>
		<field name="article-2" size="100" and="item-2" label="Article" labelpos="none" lineup="true" />
		<field name="quantity-2" type="number" and="item-2" or="quantity" width="80px" label="Quantity" labelpos="none" />
		<field name="article-3" size="100" and="item-3" label="Article" labelpos="none" lineup="true" />
		<field name="quantity-3" type="number" and="item-3" or="quantity" width="80px" label="Quantity" labelpos="none" />

		<field>Shipping address:</field>
		<field name="organization" type="org" size="50" label="Organization (e.g. company, association)" />
		<field name="name" type="name" size="50" mandatory="true" label="First and last name" />
		<field name="email" type="email" size="50" mandatory="true" label="E-mail address" />
		<field name="phone" type="tel" size="50" label="Telephone number (for any follow-up questions)" />
		<field name="addition" type="addition" size="50" label="Additional address information" />
		<field name="street" type="street" size="50" label="Street and house number" mandatory="true" />
		<field name="postcode" type="postcode" size="6" width="100px" label="Postcode" mandatory="true" lineup="true" />
		<field name="city" size="100" label="City" mandatory="true" />
		<field name="country" type="country" size="50" label="Country" />

		<field name="message" lines="3" size="500" label="Your Message..." />

		<!-- Examples for check boxes, radio buttons and drop-down box: -->

		<field name="gtc" type="check" mandatory="true" label="I accept the Terms and Conditions." />
		<field name="privacy" type="check" mandatory="true" label="I have read and understood the privacy policy." />

		<field>Would you like to subscribe to the free weekly newsletter?</field>
		<field name="newsletter" type="radio" label="Yes, please" />
		<field name="newsletter" type="radio" label="No, thanks" preset="true" />

		<field>How would you like us to contact you?</field>
		<field name="contact" type="dropdown" content=" please select" label="Contact via" />
		<field name="contact" type="dropdown" content="E-mail" />
		<field name="contact" type="dropdown" content="Phone" />

	</fields>';
	$mailTemplate = // HTML string for defining a custom email template (see help page).
	<<<EOM
		<b>Orderer:</b>

		Name: !name!
		E-mail: !email!
		Phone: !phone!

		<b>Ordered articles:</b>

		!quantity-1! x !article-1!
		!quantity-2! x !article-2!
		!quantity-3! x !article-3!
		
		<b>Shipping address:</b>

		?organization?
		!name!
		?additional?
		!street!
		!postcode! !city!
		?country?

		<b>Message:</b>

		!message!

		<b>Newsletter:</b> !newsletter!
		<b>%contact%:</b> !contact!
		<b>%gtc%</b> !gtc!
		<b>%privacy%</b> !privacy!
		EOM;
	include 'lib/contact.php';
?>
