Forcing BCC: when e-mailing

19 posts by 6 authors in: Forums > CMS Builder
Last Post: August 12, 2010   (RSS)

Hi all,

A client of mine wants to make sure that their e-mail lists (now in a field in a CMSB multi-record section) can't be sent except through the use of a BCC: field. I guess they've had one too many gaffs where e-mails were sent using the To: or CC: Field, exposing their entire list to the world.

Oh, the list is always pulled from the same table but with different search criteria based on the contents of a second or third field.

I took a quick look at some of the PHP email scripts out there but am leery of just grabbing one because of the potential for messing things up and forf creating security or system overload issues. Then there's the issue of interfacing with CMSB.

Has anyone had any experience in this area, and with breaking a recipient list down automatically so that there are only a predetermined number of e-mails sent at a time.

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Forcing BCC: when e-mailing

By flamerz - January 24, 2010

i use this soft:

http://www.xellsoft.com/TurboMailer.html

its easy to import csv mails.. and still no problems with this mailer.

i dont know how to do this from CMSB.

Re: [gkornbluth] Forcing BCC: when e-mailing

By Djulia - January 24, 2010

Hi,

You can perhaps use the function sleep ?
http://www.php.net/manual/en/function.sleep.php

...and to look at here :
http://www.webmasterworld.com/forum88/260.htm

Djulia

Re: [gkornbluth] Forcing BCC: when e-mailing

By Djulia - January 24, 2010 - edited: January 24, 2010

require_once "lib/viewer_functions.php";

$req1="SELECT email from {$TABLE_PREFIX}newsletter";

$result = mysql_query ($req1);
echo mysql_error();

$between_delay = 10; $send_delay = 1;

for ( $sent=0; $row = mysql_fetch_array($result); $sent++ ) {
if ( ($sent % $between_delay) == 0 )
sleep( $send_delay );
$emailall = $row[0];

$subject = 'Test newsletter';
$message = 'This is a test.';


// set headers as per your requirements
$headers = 'From: xxxxx@xxxxxx.xxx' . "\r\n" .
'Reply-To: xxxxx@xxxxxx.xxx' . "\r\n" .
'BCC: [url "http://www.interactivetools.com/forum/forum.cgi?url=mailto%3Axxxxx%40xxxxxx.xxx%27"]xxxxx@xxxxxx.xxx'[/#0000ff][/url] . "\r\n" .
'X-Mailer: PHP/' . phpversion();

if ( mail($emailall, $subject, $message, $headers) ) {
echo 'Message sent!';
} else {
echo 'Message failed, contact webmaster for more info!';
}

}

Re: [Djulia] Forcing BCC: when e-mailing

By Djulia - January 24, 2010

The code above functions for me (but must be certainly optimized).

Djulia

Re: [Djulia] Forcing BCC: when e-mailing

By Djulia - January 24, 2010

In fact, I am not certain that it is the good solution:
http://www.hosthideout.com/showthread.php?t=3163

Re: [Djulia] Forcing BCC: when e-mailing

Wow Thank you all

a great beginning.

Has anyone integrated the BCC issue with CMSB?

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Forcing BCC: when e-mailing

By Djulia - January 24, 2010 - edited: January 24, 2010

Can't this page help you ?
http://www.php.net/manual/en/function.mail.php

[font "Courier New"]$headers .= "BCC: xxxxx@xxx.com"[font "Courier New"];

Re: [Djulia] Forcing BCC: when e-mailing

By Chris - January 25, 2010

Hi Jerry,

I'm not sure what you mean by integrating the BCC issue with CMSB. What kind of integration are we talking about?
All the best,
Chris