novicepunter Posted November 13, 2009 Share Posted November 13, 2009 Hi - I have a really simple mailing system - but how do I make the addresses go into the bcc field? Many thanks Novicepunter select_count = document.getElementsByName("selected[]").length; for (i = 0; i < select_count; i++) { selected_i = document.getElementsByName("selected[]"); if( selected_i.checked == true) { if( selected_i.accept != "" && selected_i.accept != null) { if(dst_count > 0) { addresses = addresses + "<?php echo getMailerDelim(); ?>"; } addresses = addresses + selected_i.accept; dst_count++; } } } if(dst_count == 0) alert("No address selected."); else location.href = "<?php echo getMailer(); ?>"+addresses; Link to comment https://forums.phpfreaks.com/topic/181367-php-mailing/ Share on other sites More sharing options...
JonnoTheDev Posted November 13, 2009 Share Posted November 13, 2009 By adding it as an extra header. Read the function guide in the php manual & search text for bcc. http://uk2.php.net/manual/en/function.mail.php The code you have posted has no relevence. Link to comment https://forums.phpfreaks.com/topic/181367-php-mailing/#findComment-956781 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.