Does the email need to be cc'd to the same GM email address regardless of which selection is made?
if not, what are the criteria to determine which address it should be sent to?
If it goes to the same address for each selection, just set the $WAGLOBAL_Contact_Email_BCC option in the WA_Globals.
If it goes to a different address, you will need to create an switch case statement like this:
if(isset($_POST['sendTo']) && $_POST['sendTo'] != "") {
switch($_POST['sendTo']) {
case "sales@domain.com":
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"salesGM@domain.com");
break;
case "service@domain.com":
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"serviceGM@domain.com");
break;
case "support@domain.com":
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"supportGM@domain.com");
break;
}
}
just after the following line in the WA_Universal_Email/WAUE_contact_1.php file:
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"".($WAGLOBAL_Contact_Email_BCC) ."");