Newsletter BCC

Mark Elliott asked on September 24, 2014 15:34

Is there a way when setting up a newsletter to add a BCC address?

Recent Answers


Brenden Kehren answered on September 25, 2014 04:54

Newsletters have subscribers. Each subscriber will receive (if they choose) individual emails so is there really a reason for a BCC?

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on September 25, 2014 16:26

Hello Mark,

Yes, I'm also curious about the answer to Brenden's question. If you are e.g. sending out 1000 newsletters, why would somebody like to receive a copy of the same 1000 e-mails?

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

Mark Elliott answered on September 25, 2014 17:11

Well we are currently using a BCC on our newsletters to determine how quickly our current CMS is processing and sending them out. As we move over to Kentico this may or may not be an issue but was just wondering how might accomplish this.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 25, 2014 17:48

You can specify how fast (or slow) you want to send emails in Kentico if you use the email queue. You can batch emails being sent into 10 or 100 or 10000 if you'd like.

Essentially what's going to happen is when the newsletter is sent, it will create an email record for every subscriber with the specific content. So if you have 10,000 subscribers, all of those emails will be created and sent to the email queue. Then the email queue processes the queue based on whatever you have specified in the batch setting. So if you have 100 as the batch, the first 100 will be processed. Then the next time the email queue is ran/processed, the next 100 will be sent.

You can also modify the scheduled task that process the email queue to run at different intervals (say once every minute vs. once every 15 minutes).

0 votesVote for this answer Mark as a Correct answer

Mark Elliott answered on September 25, 2014 17:58

Thanks, will investigate using the email queue.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 25, 2014 20:40

Mark,

There shouldn't be much investigation aside from settings and such, that's the central point for all emails to be sent out of by default. The newsletter module uses it by default. You'd have to write custom code to NOT use it.

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on September 26, 2014 15:24

Hello Mark,

Yes, this should be possible to achieve by connecting to the event when EmailInfo is created and add customization there.

So you will need to use the Global events

and use the following event:

    public override void Init()
    {
        EmailInfo.TYPEINFO.Events.Insert.Before += Insert_Before;
    }

    void Insert_Before(object sender, CMS.DataEngine.ObjectEventArgs e)
    {
        var email = e.Object as EmailInfo;
        email.EmailCc = "test@sdf.sd";
    }

For more details please also read the following article: Code customization in Kentico CMS 6

This is of course just a simple example and you can create a custom logic there.

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

Mark Elliott answered on September 26, 2014 15:33

Thanks! That's great to know in case I still need to provide this functionality once we move over to Kentico.

Mark

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.