Jump to content

Multiple Email addresses in PHP form


reflex84

Recommended Posts

Hi,I am enquiring about how to add multiple email addresses in my php form ... see my current code below:

	$to = "exampleemail@xxxxxx.com";	$bcc = "exampleemail@xxxxxx.com"; 	$subject = "Your UmdlotiAccommodation Advert Enquiry"; 	$sbody = '<table width="420" height="135" border="0" align="center" cellpadding="0" cellspacing="0">

As you can see - I do have a 'bcc' address but I would like to add more 'bcc' email addresses .... how would I do this?Do I just add another line of

$bcc = "exampleemail@xxxxxx.com";

below the current bcc address that I have there?Thanks,d

Link to comment
Share on other sites

Hi again,Actually it didn't work ... strange as I've had this problem before ... when I add more email addresses in the bcc (using comma's like thescientist mentioned above - which worked for all the email addresses in the bcc section), suddenly the 'to' doesn't work, ie: the email address in the 'to' field doesn't get the form submission.Any ideas why?d.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...