yes, I've read the tutorials 🙂 let me say the one you guys have here is much easier to understand than a few others I've read.
Okay, I'm just starting out trying to learn php but I built a site for me and some friends in html and some flash and I wanted to do an email form, well I couldn't do it myself at all so after some search I found a good free one but I needed to make an adjust ment to it and the people who made it, understandably wouldn't help me because it was free, and I was hoping someone here could help.
I want to change it so that instead of just emailing to one person's address it can email to several
// Recipient of message (This can be changed via the form itself)
$recipient = 'me@website.net';
// Subject of message (This can be changed via the form itself)
$subject = 'Joining Us';
// This is a list of domains that can run EZ FormMail. Do not include
// www, just the actual domain/ip address!
$referers = array('website.com', 'domain2.com', 'domain3.com');
// This is the page that users will be redirected to after the form is
// processed successfully.
$success_url = 'thanks.html';
// Your site URL
$siteurl = 'http://www.website.com';
is it as simple as just changing the $recipient to
$recipient = array('me@website.com', 'me2@website.com', 'me3@website.com');
or is there anything else I must do?
thanks for the help 🙂
edit: I guess not, I get this when I just add the array
Warning: mail() expects parameter 1 to be string, array given in C:\web\A001\join\ez_formmail.php on line 152
Warning: Cannot add header information - headers already sent by (output started at C:\web\A001\join\ez_formmail.php:152) in C:\web\A001\join\ez_formmail.php on line 153
edit#2: changed the Subject from "Another newbie asking for some help" to "Form mailer to multiple addresses" is that better?