Skip to main content
marco84115
New Participant
November 11, 2016
Answered

Multiple contact forms

  • November 11, 2016
  • 1 reply
  • 197 views

Hi

Is there a way in to select a destination of email in just one contact-form?

I mean having like three options:

a.- person1@domain.com

b.- person2@domain.com

c.- person3@domain.com

send the form to just one of them?

Marco

    This topic has been closed for replies.
    Correct answer Rob Hecker2

    Sure. You would make it a select list or radio set within your form. The values would be the email addresses. Give it a name like "recipient" or whatever, then when the form is processed, assign the value like this:

    mail ($recipient, $email_subject, $emailcontent, $headers);

    . . .assuming that you are using PHP mail.

    1 reply

    Rob Hecker2
    Rob Hecker2Correct answer
    Brainiac
    November 11, 2016

    Sure. You would make it a select list or radio set within your form. The values would be the email addresses. Give it a name like "recipient" or whatever, then when the form is processed, assign the value like this:

    mail ($recipient, $email_subject, $emailcontent, $headers);

    . . .assuming that you are using PHP mail.