View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Form sent to email address depending on option chosen

Thread began 8/18/2009 6:01 pm by MsEvette | Last modified 4/05/2010 11:59 am by MsEvette | 5381 views | 11 replies

Jason ByrnesWebAssist

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:

php:
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:

php:
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"".($WAGLOBAL_Contact_Email_BCC)  ."");

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...