Need help with this.
We have several support email addresses. A case is created when a customer sends us an email to one of those email addresses. We are using only one case record type. When a case is created from Email-to-Case, we want to set a product family value based on what email address it is.
If the email address is su[email protected], set the product family value to "Apple."
If the email address is sup[email protected], set theproduct family value to "Orange."
How do I do this with a Case Trigger or Apex?