PHPMailer - Get form to send to an additional email address per form page

0 replies · opened Aug 22, 2018

Aagent8designAug 22, 2018

Hi,

I'm hoping you can help.

I've got a site setup where there are distributors for the main company. Each regional distributor needs their own page in the site with a contact form. The output of the form will go to the main company and the regional distributor. Two emails.

So I need to get the form on a distributor page to email to the main company (a default single address) plus send to the email address of the individual distributor that the page has been created for.

I've looked at the PHPMailer support info and can see how to add additional recipients of the email notification but can't see how I can do this without sending copies to every single regional distributor.

Is there a way I can set a hidden field in the form for a regional distributor that includes the email address which can then be used within the sendemail.php? That way the code would say send to mail@maincompany.com then an additional send to 'hidden field'?

Thanks,
Nick.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard