reflex84 Posted August 10, 2010 Share Posted August 10, 2010 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 More sharing options...
alexnofue Posted August 10, 2010 Share Posted August 10, 2010 Hi, have you check for mail headers? there is a really complete example in the user notes herehttp://co.php.net/manual/en/ref.mail.php Link to comment Share on other sites More sharing options...
thescientist Posted August 10, 2010 Share Posted August 10, 2010 you could try adding comma in between each email address. Link to comment Share on other sites More sharing options...
reflex84 Posted August 10, 2010 Author Share Posted August 10, 2010 Hi,Thanks guys for your help ... actually the comma worked - Great! (thanks thescientist).I will have a look at the link you provided me (alexnofue)D. Link to comment Share on other sites More sharing options...
reflex84 Posted August 10, 2010 Author Share Posted August 10, 2010 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 More sharing options...
thescientist Posted August 10, 2010 Share Posted August 10, 2010 what do your mail headers look like now? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.