PPRuNe Forums - View Single Post - PHP Mail() Query
View Single Post
Old 20th January 2008 | 02:04
  #8 (permalink)  
mrsurrey
 
Joined: Aug 2002
Posts: 181
Likes: 0
From: Surrey
Hi BOAC,

try your code with a space between the comma and the second email address.

also put a ' symbol directly before the first email address and another ' symbol directly after the second email address.

finally try saving the email addresses to a variable and then dropping that into the mail function as follows.

$to = '[email protected]' . ', '; // note the comma
$to .= '[email protected]';

mail($to, $subject, $message, $headers);
// note no ' sybmols before or after the $to variable





failing that how about just looping your code so that you send the email twice - once to each address?

MrS

Last edited by mrsurrey; 20th January 2008 at 02:16.
mrsurrey is offline  
Reply