Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Scheduled tasks newsleeter depending on query View modes: 
User avatar
Member
Member
eagleag - 10/25/2010 4:03:04 AM
   
Scheduled tasks newsleeter depending on query
What is best way to do this:
Send out a newsletter using a "Scheduled tasks" (once a day). -> (I know: Scheduled task)

but how do I combine with next part?

The task should send the newsletter depending on a query :
SELECT * USERS WHERE birthday == (in 30 days)

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/25/2010 6:31:07 AM
   
RE:Scheduled tasks newsleeter depending on query
Hello,

You can create a custom scheduled task and send out the newsletters manually (please check the EmailQueueManager class in our API for sending newsletters). In the custem scheduled task you can get all the subscribers which meet your requirements.

Best regards,
Boris Pocatko

User avatar
Member
Member
eagleag - 10/25/2010 7:35:53 AM
   
RE:Scheduled tasks newsleeter depending on query
Is there anyway to send out the newsletters automatically? with NO user involvement?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/26/2010 9:38:08 AM
   
RE:Scheduled tasks newsleeter depending on query
Hello,

I am sory for the misunderstanding. Newsletters will be send out automatically, but you will have to create the code by yourself.

Best regards,
Boris Pocatko

User avatar
Member
Member
margy-e1fit - 9/23/2011 10:00:58 AM
   
RE:Scheduled tasks newsleeter depending on query
Hi, would the scheduled task for a birthday greeting, guess we could use the "newsletter" for the "card" work in the same context by grabbing the Birthdate field and then setting it so auto greetings are sent on the customer's birthdate?

Thank you for your help.
Margy Lang

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/23/2011 5:56:49 PM
   
RE:Scheduled tasks newsleeter depending on query
Hello,

Yes, the scheduler can be used to loop through all of the users once a day and if a given user has birthday this day, send him an email. Or you can use a Email template. But either way, you need to use the scheduler.

Best regards,
Boris Pocatko