Let me get this right...
$mymail // If you put an email adress it works, right. You are calling
variable $mymail... But, what does contain that var? You are calling
$mymail, there has to be a database, or something of those 10 mails you
said. -If i'm getting you the point right- If not, my mistake.
Or you might use something like this:
// mail list
$to = 'yourma...@example.com' . ', ';
$to .= 'yourma...@example.com';
If my answer is wrong for you. Plrease reffer to:
http://docs.php.net/manual/en/function.mail.php -as Richard said.-
> From: rquadl...@gmail.com
> Date: Tue, 13 Jul 2010 15:02:14 +0100
> To: j.hendrick...@comcast.net
> CC: firstname.lastname@example.org
> Subject: Re: [PHP] Help with template file and email
> On 13 July 2010 14:56, Joey Hendricks <j.hendrick...@comcast.net> wrote:
> > Hello,
> > I have been working on a birtday invite program. The form takes 10 names
> > and 10 email addresses. I think the problem is the $to variable in my
> > function. I get this warning-Warning: mail() [function.mail]: SMTP server
> > response: 550 5.5.0 <f> domain name required in.....
> > Could someone help me with this my email is j.hendrick...@comcast.net Thank
> > you so very much!
> mail(' j.hendrick...@comcast.net', 'Test email', 'This is a test email');
> and I get the following entry in my PHP's mail.log ...
> mail() on [-:2]: To: j.hendrick...@comcast.net -- Headers:
> Pretty simple stuff.
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Do you have a story that started on Hotmail? Tell us now