# PHP Mailer Problem

**URL:** https://forum.kirupa.com/t/php-mailer-problem/83112
**Category:** Uncategorized
**Created:** [March 16, 2005, 4:37am UTC](https://forum.kirupa.com/t/php-mailer-problem/83112 "2005-03-16T04:37:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![klavier](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@klavier](https://forum.kirupa.com/u/klavier)
#### Post date: [March 16, 2005, 4:37am UTC](https://forum.kirupa.com/t/php-mailer-problem/83112/1 "2005-03-16T04:37:43Z")

</div>

hi, i am having problems with this mailer that i created, it keeps saying  
**Warning** : mail() expects at least 3 parameters, 1 given in **/home/student/jcala/www/mailer.php** on line \*\*20

\*\*which is  
mail($email,“CC”,$bundle);

i am trying to use an array that will CC to multiple people, i was trying to get a loop in there some how but could get it.  
if anyone can help i would greatly appreciate it!  
thanks james

CODE:  
html\>  
\<head\>  
\<Title\> A PHP Mailer \</Title\>  
\</head\>  
\<body\>  
\<?php  
$nl="\<p\>";  
$eMail[] = array( ‘Ethan’, ‘email@email.com’ );  
$eMail[] = array( ‘Kelly’, ‘email@email.com’ );  
$eMail[] = array( ‘Mike’, ‘email@email.com’ );  
$recipient=$\_POST[‘email’];  
$reply="Dear " . $\_POST[‘name’] . ",  
";  
$reply .= “Your information has been received. Thank you for filling out the form.”;  
$reply .= " We will have someone go over your comments ";  
$reply .= “and get back to you by email soon.”;  
$reply .= "

Sincerely,  
Homer Simpson  
Acme Enterprises ";  
mail($recipient,“Your Comments”,$reply);  
$bundle=$\_POST[‘comments’] . "

" . $name . "

" . $recipient;  
mail("MYEMAIL@email.com",“Customer”,$bundle);  
mail($email,“CC”,$bundle);  
?\>  
\<?php print " Thank you " .$\_POST[‘name’] . “,  
\<p\>” ?\>  
\<?php print “You will hear from us very soon.  
\<p\>Acme Enterprises”; ?\>  
\</body\>  
\</html\>
