Forcing BCC: when e-mailing

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

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

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

Hi Chris,

Thanks for looking at this one.

I guess that what I’m looking for, and I’ve been out of town and not able to play around much, is this:

I’ve created a number of detail viewers (templates) for various types of organizational e-mails, all populated from a multi-record section called “eblasts”. (Press releases, event announcements, membership expiration notices, etc. all having a slightly different layout)

I want to be able to send the viewer that was created by these templates to an e-mail list that is generated by another multi-record editor called “artists” which would be filtered by various criteria ie: all members, only members who haven’t paid for the current year, etc.

Right now I’m doing this manually by:

1) Creating a viewer with embedded CSS styling, opening the viewer for the particular e-mail in Internet Explorer, then using the built in “send page as e-mail” function, creating an e-mail of the page.

2) Generating a filtered e-mail list from the “Artists” section and copying and pasting the resulting e-mail list into the BCC: field of the e-mail generated in step 1.

3) Addressing the e-mail To: field with the appropriate return address and sending the e-mail from the appropriate e-mail account.

I’d like to automate the process from CMSB so that once the eblast was created, it could be sent to the appropriate list without leaving the CMSB interface.

I like the basic approach that Djulia outlined above, but want to make sure that the generated e-mail list will only be entered into the “BCC:” field, That the appropriate “To:” address is filled in (from a “pull down” or “check box” list field) and that the e-mails get sent out in batches that are defined by “e-mails per batch” and “batches per hour” fields.

Hope that makes it clearer.

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