I have a php page that for the most part works as designed. I have one issue.
The page sends two emails, one after the other.
The first email only seems to work if one email address is used in 'To' section. As soon as I try to concatanate a string that contains, say, 2 or more email addresses, the email fails to send.
The syntax I am using is:
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
for example if I use $pfw_email_to ="email@example.com";. the function works fine and the email goes to firstname.lastname@example.org.
However, if I use, $pfw_email_to = "email@example.com; firstname.lastname@example.org"; the email fails to send to either. My original reason for looking at this is that I wanted to control the recipients from a string, so that if people change places / email address, etc I can simply have one string to alter leaving the base code intact.
Any ideas where my issue is, please?