Hi there Canvas,
I added this to the form.php
/-------------------------------------------------
Form Processor Multiple Emails
---------------------------------------------------/
if( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
if( $_POST['template-contactform-selectinput'] == 'option-1' ) {
$toemails[] = array(
'email' => 'RentalOffice@amberlands.com', // Your Email Address
'name' => 'rental' // Your Name
);
} elseif( $_POST['template-contactform-selectinput'] == 'option-2' ) {
$toemails[] = array(
'email' => 'Maintenance@amberlands.com', // Your Email Address
'name' => 'maintenance' // Your Name
);
} else {
$toemails[] = array(
'email' => 'Maintenance@amberlands.com', // Your Email Addresss
'name' => 'landscaping' // Your Name
);
}
}
And I added this to the index.html form:
<div class="col_two_third col_last">
<select id="template-contactform-selectinput" name="template-contactform-selectinput" class="sm-form-control border-form-control">
<option value="rental">Rental Information</option>
<option value="maintenance">Maintenance Request</option>
<option value="landscaping">Landscaping Request</option>
</select>
</div>
Unfortunately the form stopped working, so I know I messed up. More SMTP errors. Forgive me for all the questions, I am an amateur at this...
I both kept in and removed this from the form.php and it still did not work
/-------------------------------------------------
Receiver's Email
---------------------------------------------------/
$toemails = array();
$toemails[] = array(
'email' => 'rentaloffice@amberlands.com', // Your Email Address
'name' => 'Amberlands Realty' // Your Name
);