Mail group on a specific day

Hello

Not exactly a newbe but it's something I've never considered. I have a database with a list of users, and each user has an email that they are related. I want to set up the ColdFusion application o he sends an email to all members on a specific date. My question is: what is the best way to do it?

I've considered writing a script that runs each time a page is loaded to check dates and sending the group by e-mail if the current date is the date at which to email. Of course, this will affect the loading time of the page whenever you accessed. My next concern is that if I decide to go forward with this option, the script is just go check the date if the page is loaded that day.

Any input would be much appreciated.

Thank you

Steven

I think that a CFAdministrator task schedular would suffice your needs. You can creat a task schedulr and registry in CFAdmin and he would go every day to check, if today is the day to send a mail group.

Jayesh Viradiya

Tags: ColdFusion

Similar Questions

  • Web data sources for E-mail groups

    Hello

    I am struggling to find how to do a Web database search for groups of emails that someone is attached to. This Post mentions that you can ""display a specific web page visitors in a group of email "so I guess it's possible. "


    I'll build a custom update details of preference/Customer Center and is the last piece of the puzzle!  Very eager to get it figured out

    During my research of data generation:

    Contacts does not work as I can't add e-mail groups to a Contact view

    It doesn't seem to be in the data of visitors

    For objects Object Records/Custom Custom - should I create and update the custom object whenever I update the Email Group subscriptions? Seems an inelegant way to go about this...

    A contact group - a contact group membership doesn't seem to be the same as a group of e-mail? Or am I wrong on that?

    Any help appreciated

    See you soon

    Sandie

    I have now finally got it working!

    Under settings > Setup > site > I have created a list of choices 'Belonging to a Group Contact' and grabbed the scripts in database search Options, Web data search

    The GUID I used were found under settings > Setup > assets > Email groups - click on the small "i" beside the name to get looking for list of subscription data

    Yay!

    This post helped me a lot: example script to fill the checkbox in the form Eloqua10.

  • Processing of the steps of 40 + "cases" manage subscriptions to e-mail group, desired look instead of single list column

    I am creating a custom subscription management page and have about 40 groups of emails I would like users to be able to manage their preferences on. I want to format e-mail groups box to check and be in more than one column instead of a long list.

    I am running into trouble. First, I brought in all the e-mail groups as single contact fields check box. This turns the page in a super long list of e-mail - not desirable groups. I can set up the processing steps so that it works to subscribe or unsubscribe to groups of e-mail users, however, I want to look more aesthetic where the e-mail group options would be in the columns.

    I am wanting a solution for the boxes of the e-mail group to fall into the columns. However, when I use the approach of adding a custom field group > > column three custom > > then download a list of all the e-mail groups, can't do the processing steps allowing subscribes and cancels his subscription. In the steps of treatment, that it looks like the entire entity boxes wants to correspond with the group just email. I need the solution allowing each group of e-mail under the boxes to be able to map to a different electronic group at Eloqua and SFDC.

    Can someone help me?

    I want to be able to have my email subscription group text boxes in a list of multi-coloumn aesthetic, instead of one single long list. It is essential that the solution still allows processing steps to unsubscribe or subscribe users to this group of specific coordination with the box e-mail they either checked or disabled.

    Here, the answer is in the code.  What you need to do is to use CSS to create fake columns in your layout.  So what you need is a container wrapped around your input box element (and label).  The necessary code is likely to vary, but the example of bootstrap below is a good reference to highlight the code.  In this case, the container with a 'field-group' class is used to contain the entire box input element.


      
      
     

    In this example, the form-group class is what you want to style.  In the CSS, you will need to use the following text:

    . Form-group {width: 33%; float: left ;}}

    This style will cause the width of the form group confined to a fixed width of 33% and the left float attribute will allow the element to be removed from the flow of the document and create a type column in your page look.

  • Recover e-mail groups in Outlook Express

    Accidentally, I transferred my group of Outlook Express e-mail files (click the wrong button - I'm trying to copy my email).  The restore operation will not work.  Ideas?

    Are you talking about under lists of e-mail addresses or e-mail groups? Also what did you move since you've accidentally moved to outlook express? MCP. MCDST. LVL 80

  • How to create e-mail groups

    On the help instructions, to build a new Contact Group, you said opening your Windows Contacts, then on the toolbar click New Contact Group.  For some reason, this selection is not in my toolbar.  I've looked everywhere for it.  What I am doing wrong.  Already have e-mail groups, but need another.  How can I do.  Thank you!

     
    Vista - "New Contact" and "Contact Group on new" button missing
    http://www.Vistax64.com/tutorials/186477-new-contact-new-contact-group-button-missing.html
  • BlackBerry 10 e-mail groups

    Hey guys, I can't e-mail groups sync or creat on my activesync account, how can I do this on BB10? I've used this feature much OS7 and earlier versions.

    Hey mikecassell,

    Welcome to the community of BlackBerry Support Forums.

    Thanks for the question.

    Currently the groups cannot be created in the contacts application.

    Let me know if you have any other questions.

    See you soon.

  • Specify the Feeder program specific day (recurring)

    You can specify a program Feeder to only run one day recurrent? For example, run every third Wednesday of the month? or 20th day of each month?

    Not necessarily on drivers but there are decision sets the options which can look to see if a particular day of the month.

    So, you could have the charger works always daily / hourly, but in the program, use a decision rule to maintain contacts to a specific day of the month.

  • Migration of Lotus Notes e-mail groups in the hive

    Is it possible to reproduce our existing Lotus Notes e-mail groups in the hive?

    Edited by: dazimon June 23, 2011 07:59

    Sorry,

    Distribution list - my apologies for the jargon.

    Phil

  • Overview of reports against specific e-mail group

    I'm trying to create some e-mail reports that run against a specific group of Email emails. No idea how this is possible?

    Unfortunately, the only option I see is to individually select each email template but we are now at the point where we have hundreds. How can I rank them and any report on the emails within a specific group?

    I need this for the presentation of bounceback, history bounceback and you unsubscribe reports.

    Thank you!

    Hey,.

    For group email I usually use the sub report in the preview:

    In the guests in this report, please select the email group that you want to run the report and you can leave the "Emails to display" section without selection. Now, this will show you the detailed summary of your Emails under the Group Email selected within the specified date range.

    It will be useful.

    Kind regards

    Ankit

  • Mail for specific days of the user and specific and time

    Hello Experts,

    I use the program below to email each daily hour. This was intended for one person.

    Now I have to change my program to accommodate more than one person, and also, I should be able to send emails to people on time and different days. What is the best approach to
    declare
    x_val               long;
    x_cumm_val          long;
    x_title             long;
    x_cumm_title        long;
    x_footer            long;
    x_column_header     long;
    x_column_line       long;
    x_row_header        long;
    x_row_line          long;
    x_cumm_row_line     long;
    x_total_header      long;
    x_total_line        long;
    x_row               long;
    x_cumm_row          long;
    l_rec_time          varchar2(25);
    l_order_id          number;
    l_amt               number;
    l_cumm_amt          number;
    l_instant_cumm_amt  number;
    l_instant_game_id   number :=-1;
    l_instant_col_val   number :=2;
    l_instant_cumm_val  number :=0;--keep cummalative amt for instant
    l_product           varchar2(25);
    no_chance           exception;
    x_cnt               number :=0;
    l_date              date := trunc(sysdate);
    x_to                long ;
    c_cc                 long := '[email protected]';
    x_recipient          long := '[email protected]';
    x_exec_recipien      long := '[email protected]';
    x_gamma_recipient long := '[email protected]';
                                
                                
    
    CURSOR c_get_values IS
    select nvl(sum(act_amt),0)
    from hourly_sales
    where  trunc(sys_date) =l_date
    and nvl(confirmed,'!') = 'Y' 
    and to_char(to_date(rec_time,'HH24:MI'),'HH24:MI') = to_char(to_date(l_rec_time,'HH24:MI'),'HH24:MI')
    and order_id =l_order_id;
    
    CURSOR c_get_Instant_val IS
    select nvl(sum(act_amt),0)
    from hourly_sales
    where  trunc(sys_date) =l_date
    and nvl(confirmed,'!') = 'Y' 
    and to_char(to_date(rec_time,'HH24:MI'),'HH24:MI') = to_char(to_date(l_rec_time,'HH24:MI'),'HH24:MI')
    and product='INSTANT';
    
    CURSOR c_get_user IS
    select email_address
    from apex_user
    where user_name =p_person
    and default_schema ='LOTTO_BI';
    begin
    
         x_title := '<html><head> '
                    ||'<body>'
                    ||'<h3 align="left"><u><font color="#000080"> Hourly Sales for '||to_char(l_date,'FMMonth DD, YYYY')
                    ||'</font></u></h3></body></html>';
                
      x_cumm_title := '<html><head> '
                    ||'<body>'
                    ||'<h3 align="left"><u><font color="#000080"> Cumulative Hourly Sales for '||to_char(l_date,'FMMonth DD, YYYY')
                    ||'</font></u></h3></body></html>';
              
      x_column_header :=  '<table border="1" bordercolor="#000000" style="background-color:#ffffd2" width="400" cellpadding="3" cellspacing="3"> '
                           ||'<TR>  <TD>    </TD> ';
                                       
       x_footer := '<p>This Email is autogenerated. For any inquiry please '||
                        ' Email on <a '||
                        'href="mailto:[email protected]">[email protected]</a>.</p>'||
                        '<p> </p>'||
                        '<p> </p></body></html>';
                                   
        if p_person is not null then
            
            OPEN C_GET_USER;
            FETCH C_GET_USER INTO x_to;
            IF C_GET_USER%NOTFOUND THEN 
              x_val := 'No email address defined for '||p_person;
              raise no_chance;
            END IF;
            CLOSE C_GET_USER;
            x_cc := null;--do n0t copy operations when testing mail  
        else
        
          if ltrim(rtrim(to_char(SYSDATE,'DAY'))) in('FRIDAY','SATURDAY') then     
           x_to := x_recipient||' , '||x_exec_recipient;
           
            if ltrim(rtrim(to_char(SYSDATE,'DAY'))) = 'SATURDAY' then
                x_to := x_to||' , '||x_gamma_recipient;
            end if;     
           
          else
           x_to := x_recipient;
          end if;      
           
        end if;                 
                                                                       
                                
       for c1 in( select game_id,product product_id,b.display_name product,b.ordering
                  from hourly_sales a,
                       games b
                  where a.game_id =b.id
                  and b.active = 'Y'                  --<< Addition of condtion for active games only
                  and trunc(a.sys_date) =l_date
                  and nvl(a.confirmed,'!') = 'Y' 
                  group by a.game_id,a.product,b.display_name,b.ordering
                  UNION 
                  select -1,'INSTANT','Instant',l_instant_col_val
                  from dual
                  order by 4
                  )
    
                    loop--c1
                           
                        if c1.product is null then
                           x_val := 'Invalid or Unrecognized Product retrieved from database';
                           raise no_chance;                       
                        end if;
    
                        x_column_line := x_column_line|| '<TH> ' ||c1.product||' </TH>';
                        x_cnt := x_cnt +1;
                        
                        update hourly_sales
                        set order_id  = x_cnt
                        where  trunc(sys_date) =l_date
                        and nvl(confirmed,'!') = 'Y'
                        and game_id =c1.game_id
                        and product =c1.product_id;
                        
                    end loop;--c1
    
                    
                    x_column_line := x_column_line||' </TR>';
                    
                    if x_cnt =0 then
                        x_val := 'No Hourly sales data to send for '||to_char(l_date,'FMMonth DD, YYYY');
                        raise no_chance;
                   end if;
                     
                   
                    
                    for c2 in(select rec_time
                                 from rec_time
                                 group by rec_time
                                 order by 1
                                 ) 
                                 
                                 loop--c2
                                 
                                    l_rec_time := c2.rec_time;
                                    
                                    x_row_header := ' <TR> <TH>'||c2.rec_time||'</TH> ';
                                    
                                            for i in 1..x_cnt
                                           loop
                                            
                                                l_order_id := i;
                                                l_cumm_amt := null;--reset of cummulatice amt for each game
                                                
                                               if l_order_id = l_instant_col_val then --INSTANT Total Sales
                                                    
                                                  OPEN c_get_Instant_val;
                                                  FETCH c_get_Instant_val INTO l_amt;
                                                  l_instant_cumm_val := l_instant_cumm_val + l_amt;
                                                  IF c_get_Instant_val%NOTFOUND THEN
                                                    x_row_line := x_row_line||' <TD><p align="center"> - </p></TD> ';
                                                    l_cumm_amt := 0;
                                                  ELSE
                                                    x_row_line := x_row_line||' <TD><p align="center">'||to_char(l_amt,'999,999,999,999,999,999,999,999,999')||'</p></TD> ';
                                                   /* Assume @ this stage that if previous record <>0 for instant sales column
                                                      next record should have value else no hourly sales yet input.
                                                   */
                                                    if l_amt = 0 then
                                                     l_cumm_amt := 0 ;
                                                    else
                                                     l_cumm_amt := l_instant_cumm_val;
                                                    end if;
                                                     
                                                  END IF;
                                                  
                                                  CLOSE c_get_Instant_val;
                                                  
                                               ELSE
                                           
                                                OPEN c_get_values;
                                                FETCH c_get_values INTO l_amt;
                                                IF c_get_values%NOTFOUND THEN
                                                   x_row_line := x_row_line||' <TD><p align="center"> - </p></TD> ';
                                                   l_cumm_amt := 0;
                                                ELSE
                                                  x_row_line := x_row_line||' <TD><p align="center">'||to_char(l_amt,'999,999,999,999,999,999,999,999,999')||'</p></TD> ';
                                                 
                                                 if l_amt <> 0 then  
                                                   --save values into temp table for cummulative
                                                  insert into cumm_hourly_sales
                                                  (game_id,
                                                   amt)
                                                   values
                                                  (l_order_id,
                                                   l_amt);   
                 
                                                   select (sum(amt))
                                                   into l_cumm_amt
                                                   from cumm_hourly_sales
                                                   where game_id = l_order_id;
                                                 
                                                 else
    
                                                    l_cumm_amt := 0;
                                                 
                                                 end if;
                                                  
                                                END IF;
                                               
                                                CLOSE c_get_values;
                                               
                                                end if;
                                                
                                                   x_cumm_row_line := x_cumm_row_line||' <TD><p align="center">'||to_char(l_cumm_amt,'999,999,999,999,999,999,999,999,999')||'</p></TD> ';
    
                                            end loop;
                                            
                                       x_row := x_row||x_row_header||x_row_line;    
                                       x_cumm_row := x_cumm_row||x_row_header||x_cumm_row_line;    
                                       
                                       --reinitialise variables
                                       x_row_header := null;
                                       x_row_line := null;
                                       x_cumm_row_line := null;
                                       
                                 
     
                                 end loop;--c2
                                    
                                  x_total_header := ' <TR> <TH> Total </TH> ';
                                 --Total count
                                 for c3 in( select order_id,sum(act_amt)amt
                                            from hourly_sales
                                            where  trunc(sys_date) =l_date
                                            and nvl(confirmed,'!') = 'Y' 
                                            group by order_id
                                            union all
                                            select 2,sum(act_amt)amt--Total for Instant Sales (value 2 should be ok since order 2 do not exist on table) 
                                            from hourly_sales
                                            where  trunc(sys_date) =l_date
                                            and nvl(confirmed,'!') = 'Y'
                                            and product ='INSTANT' 
                                            group by 2
                                            order by order_id)
                                            
                                            loop                                                       
                                             x_total_line := x_total_line||' <TD><p align="center"><strong><em>'||to_char(c3.amt,'999,999,999,999,999,999,999,999,999.99')
                                                                   ||'</em></strong></p></TD> ';
                                            end loop;
                                                
                                                 x_row := x_row||x_total_header||x_total_line;                
                                                 x_val  :=  x_title||x_column_header||x_column_line||x_row||' </TABLE> '||x_footer;
                                                 x_cumm_val :=x_cumm_title||x_column_header||x_column_line||x_cumm_row||' </TABLE> '||x_footer;
                    
           
        apex_send_mail(  l_from => '[email protected]',
                                    l_to => x_to,
                                    l_body => x_val ,
                                    l_subject => 'Hourly Sales for '||to_char(l_date,'FMMonth DD, YYYY'),
                                    l_cc => x_cc
                                );
                                
        apex_send_mail(  l_from => '[email protected]',
                                    l_to =>  x_to,
                                    l_body => x_cumm_val ,
                                    l_subject => 'Cumulative Hourly Sales for '||to_char(l_date,'FMMonth DD, YYYY'),
                                    l_cc => x_cc
                                );
                                
                                
    exception
    when no_chance then 
    --send mail
    IF c_get_values%ISOPEN THEN CLOSE c_get_values;END IF;
    IF c_get_user%ISOPEN THEN CLOSE c_get_user;END IF;
    apex_send_mail(  l_from => '[email protected]',
                               l_to =>'[email protected]',
                               l_body => x_val ,
                               l_subject => 'Hourly Sales for '||to_char(l_date,'FMMonth DD, YYYY'),
                               l_cc => '[email protected]'
                            );
    when others then
     --send mail
     IF c_get_values%ISOPEN THEN CLOSE c_get_values;END IF;
     IF c_get_user%ISOPEN THEN CLOSE c_get_user;END IF;
     x_val :='Unexpected Error '||sqlerrm;
    apex_send_mail(  l_from => '[email protected]',
                               l_to =>'[email protected]',
                               l_body => x_val ,
                               l_subject => 'Hourly Sales for '||sysdate,
                               l_cc => '[email protected]'
                           );
    end;
    /

    Hey Kevin,

    If I understand your condition, you could do this with two tables:
    something like this:

    Table 1: Recipients_lookup
    
    DAY          RECIPIENTS
    MONDAY          [email protected],[email protected],[email protected]
    TUESDAY          [email protected],[email protected],[email protected]
    WEDNESDAY     [email protected],[email protected],[email protected]
    THURSDAY     [email protected],[email protected],[email protected]
    FRIDAY          [email protected],[email protected],[email protected]
    SATURDAY     [email protected],[email protected],[email protected]
    SUNDAY          [email protected],[email protected],[email protected]
    

    First, you must select the recipients in table 1 to help 'day' of sysdate. store in a global variable for that particular day.

    Insert date time records in table 2, something like this:

    Table 2: date_time_lookup
    
    DATE          TIME          SENT_FLAG
    30-Apr-10     10:00 AM     Y
    30-Apr-10     11:00 AM     Y
    30-Apr-10     12:00 PM     Y
    30-Apr-10     1:00 PM
    30-Apr-10     2:00 PM
    30-Apr-10     3:00 PM
    30-Apr-10     4:00 PM
    ...
    

    Once done, make your program (to generate/send by email) to run for the first hour of the day.
    Use dbms_lock.sleep (3600) to sleep for 1 hour then call your procedure again
    to do this, until you reach some "end time" (7 PM or so consider you want it to be sent only during working hours...) for the day, after which, your code still needs to wait until the next day.

    Tip: just go through this link on dbms_lock.sleep and use accordingly:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:6019886867656

    * This is based on my initial understanding of your condition. Could be too long :)

    Concerning
    Imran

  • What gives? Research (w / no luck) of E-mail groups in scoring model to drive E10...

    What I'm missing here, people? How is - E10 - I can search and locate groups specific e-mail through a filter of Contact Power Tools but I can't find the same groups of email through the rule of engagement model criteria scoring lead? It is specifically stated "emails in folders" - I must be missing something here - can someone please shed some light for me?

    Thank you!

    KC

    It is I understand that model E10 rating lead you cannot mark based on Group Messaging. You can only score e-mail based on the folders they reside in.

  • Mail crashes several times per day

    Two questions.

    1 mail blocks 5 - 10 times a day. Two things I noticed, it's: my junk mail will not empty and most of the spam is my gmail account. I can't erase my Junk folder and it always comes back to the unread state, with the blue dot on the front. Number of emails are a server, which brings me to the next question.

    2 How can I block an entire server?

    Thank you

    Try to connect directly to your Gmail account within a web browser and permanently delete your junk mail.

    Open Mail in SafeMode, now Shift while clicking on the icon of the Mail application.

    In the toolbar, go to the mailbox > rebuild.

    Leave Mail rebuild (this may take a while).

  • Formula to determine if a specific day of the week between two dates?

    I am creating a spreadsheet to track my time PD & holiday. I usually work weekends, and my vacation allowance includes a specific maximum number of Sundays a year. Is there a way to calculate how much Sunday fall between a date range (or any day of the week, by the way)?

    (i.e. If my vacation starts February 1, 2016 and ends March 2, 2016, Sunday how are included?)

    I know that I can calculate how many weeks have passed, using = Quotient (DateDiff (Start_Date, End_Date), 7), but it is possible to include two Sundays in a period of 7 days.

    Hi Eric,.

    Here is one approach.

    C2 = A2 + (7−WEEKDAY(A2,2))

    This concludes the first Sunday following the start date.

    D2 = STRIPDURATION ((B2−C2) ÷7)

    I formatted this column without decimal places to see full weeks of the first numbers Sunday.

    Quinn

  • Outlook Express to receive e-mail large file for 3 days of work

    Someone sent me an email with a very large file (about 20 MB) and OE tried to receive this message for 3 days with no progress.  I can't send or receive any other emails until it has been received, or better still, deleted.  Help!

    Just to add to the good advice of Brian, there is another thing you can do.

    Create a Message rule:

    Where the message size is size
    Delete server
    Click on size and place it for about 10 MB, and then click: Apply Now.

    Return to the Inbox, and then click send/receive. This should get rid of the message.

    Don't forget to go back to the rules of Message and either delete the rule, or uncheck it if you use it in the future.

    Bruce Hagen ~ MS - MVP [Mail]

  • Outlook deletes mails incoming mi after 7 days

    A few weeks ago Outlook 2007 application for self-archiving my box to the incoming letters. I agreed, but something went wrong. After this experience, it has become very complicated to open Outlook. I solved this by configuring SQL Server. Anyway, another problem worse took place simultaneously. Outlook automatically deletes my Inbox incoming mailbox, so all of the emails that are more than 7 days is deleted. And they disappear completely, they are not sent to the mailbox deleted, but completely missing. I don't have no 'recover deleted messages' in office, probably because it's a private account.

    How do I 1) retrieve deleted messages? (2) in order for Outlook stops delete e-mails?

    The missing messages are probably just hidden, not deleted.  Click view > current view and see if the last seven days is checked.  If this is the case, click on Messages at the top of the menu.

Maybe you are looking for