Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom newsletter provider View modes: 
User avatar
Member
Member
Peter - 3/24/2011 3:37:04 PM
   
Custom newsletter provider
Hi,

We have lists which contain thousands of subscribers in our membership database and we would like to utilise the kentico newsletter module.

The idea is to read a list of subscribers from our membership database and somehow feed it into kentico newsletter.

Currently on the send page, there is a field which can be populated with email address, which is giving me some ideas but for that I would need to override the CMS.Newsletter provider.

I was wondering if anyone has done something similiar.

Thanks,
Peter

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 4/5/2011 4:34:15 AM
   
RE:Custom newsletter provider
Hello,

we've been solving this issue over the e-mails (since Peter has a valid maintenance for his site) and I'd like to share our resolution for this issue:

In general, there are two possible ways of achieving the above mentioned aim:

1) You can populate the subscriber list within the newsletter module. This way it is not necessary to customize anything and you have a great control over them. Please see more details in our Developer's Guide: devnet.kentico.com/docs/devguide/subscriber_import_and_export.htm.

2) If you don't want to import your subscribers to the Kentico CMS database, you can amend the following code-behind: ~\CMSModules\Newsletters\Tools\Newsletters\Newsletter_Issue_Send.aspx.cs within the btnSend_Click method:

//IssueProvider.SendIssue(issueId, txtSendToSpecified.Text);
IssueProvider.SendIssue(issueId, "youremail@domain.com;youremail2@domain.com");


As you can see, there is a chance to specify the e-mails manually in the second parameter of the SendIssue method. Basically, you can do that in any of those 3 if statements (in mean sending to all subscribers, scheduled sending or sending to specified ones).

You can define new SqlConnection as shown here: devnet.kentico.com/docs/devguide/displaying_data_from_external_database_or_web_service.htm.

Please note, with such customization we can't guarantee that it will proceed all your 10000 smoothly. That's why I would still advise to import your uses to our Kentico CMS database. However, at the end the decision is up to you.

Best regards
Ondrej Vasil

User avatar
Member
Member
mshongwe-mrpricegroup - 10/4/2012 2:54:45 AM
   
RE:Custom newsletter provider
Hi,

I also have a similar question. I have my subscribers sitting on the Kentico CMS database. I would like to send using the IssueProvider.SendIssue(issueId, "youremail@domain.com;youremail2@domain.com"); method however I have 100 000 emails that I would like to pass as the second parameter. I want to know if this is the best way or is there another way of doing it.

I am afraid that it might impact on the performance.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/4/2012 4:30:21 AM
   
RE:Custom newsletter provider
Hi,

this method was created for testing purposes only - sending issue to the testing e-mail servers.

I would recommend you to use IssueProvider.SendIssue(issueId) or IssueProvider.SendIssue(issueId, datetime) both of these will handle that the e-mails will be sent to all of the subscribers who are subscribed under selected issue.

Best regards,
Martin Danko

User avatar
Member
Member
mshongwe-mrpricegroup - 10/4/2012 10:00:37 AM
   
RE:Custom newsletter provider
Hi,

Thank you. However my reason, was that my newsletter has 200 000 people and I would only like to send to a 100 000 not all of them.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/5/2012 12:56:58 AM
   
RE:Custom newsletter provider
Hi,

In this case I would recommend you to customize one of the dafault methods and filter e-mails inside the method based on your preferences.

Best regards,
Martin Danko

User avatar
Member
Member
usrandhe-gmail - 12/8/2013 11:44:00 PM
   
RE:Custom newsletter provider
Hi,

this method was work properly ,but when tried " IssueProvider.SendIssue(issueId, datetime) ". Newletter issue will not be send propely half of data is missing.

if used email address it works properly.

is it problem with issue design ?


User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/19/2013 3:33:05 AM
   
RE:Custom newsletter provider
Hi,

This problem shouldn't be caused by the design.

What are your e-mail settings? Are you using e-mail queue? Are you storing sent e-mails? What is the batch size, etc.?

Best regards,
Martin Danko

User avatar
Member
Member
usrandhe-gmail - 12/19/2013 3:38:56 AM
   
RE:Custom newsletter provider
nested macro cause the issue . after removeing it ,it works.

Thanks for reply.