Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Off Topic / Other:
PHP Question: Multiple Recipients in Form - One Dynamic

 

 


Keltam2
User

Jan 14, 2010, 4:15 PM

Post #1 of 2 (62906 views)
Shortcut
PHP Question: Multiple Recipients in Form - One Dynamic Can't Post

Hi there!
I was hoping someone might be able to help me out - I'm looking for the PHP code that would allow multiple recipients to receive a form submission. The form is a work order and the recipients would be a static email address, and the address of the person who submitted it. Currently the code is:if ($id == 'battlecreek') {
$recipient = 'workorderbc@hinmancompany.com';

and I need to add in the dynamic address field: $_POST['Email']

I haven't been able to find anything like this on any forums or PHP sites - I've tried a dozen different combinations of commas and semi-colons, and I'm sure i'm just putting the wrong punctuation in the wrong place. Any help would be terrific - thanks for your time!

Kelly


Donna
Staff


Jan 18, 2010, 10:19 AM

Post #2 of 2 (62782 views)
Shortcut
Re: [Keltam2] PHP Question: Multiple Recipients in Form - One Dynamic [In reply to] Can't Post

Hi Kelly,

We generally don't provide support for scripts that aren't made by us, but ... if you're using the standard php mail() function there's some examples of multi email formats here:

http://us.php.net/manual/en/function.mail.php

I hope this helps. :)

Donna

--
support@interactivetools.com