| View previous topic :: View next topic |
| Author |
Message |
doubledutch
Joined: 21 Aug 2008 Posts: 15
|
Posted: Fri Oct 03, 2008 3:53 pm Post subject: (Still) Can't get Target Based emails to work |
|
|
Hi, I'm still struggling in getting this to work using mysql. It must be me being very stuppid somewhere. The problem is that date based target groups don't appear to work.
From looking at the database it appears to me that the content of the database field:
dyn_target_tbl.target_sql
is used to create the target group. I edit that and put in there:
date_format(cust.creation_date, '%Y-%m-%d') = current_date
(Note the '-' which is the way mysql reports that field) a mysql query on the customer_1_tbl returns the relevant records but when I try to get the statistics for that target group on my entire recipient database it doesn't return any records.
What am I doing wrong? Any help would be greatly appreciated.
Thanks
Leon |
|
| Back to top |
|
 |
ma Site Admin
Joined: 03 Aug 2006 Posts: 512 Location: Munich, Germany
|
Posted: Fri Oct 03, 2008 5:59 pm Post subject: |
|
|
You should use the expression
creation_date = current_timestamp _________________ The OpenEMM Team |
|
| Back to top |
|
 |
doubledutch
Joined: 21 Aug 2008 Posts: 15
|
Posted: Sat Oct 04, 2008 9:53 am Post subject: |
|
|
Thanks ma and I tried that but when I do that and look for press the statistics button the result is zero which may be valid because at the exact time I press "statistics" I guess no-one has a record with
creation_date = current_timestamp
So how does that logic work? When is this check made? |
|
| Back to top |
|
 |
ma Site Admin
Joined: 03 Aug 2006 Posts: 512 Location: Munich, Germany
|
Posted: Sat Oct 04, 2008 12:52 pm Post subject: |
|
|
This was just a corrected version of your example. We use ist for birthday mails (you need a data field with the birthday, of course) like
birthday = current_timestamp
As comparison pattern you should select MMDD without year. Hour, minute and second are never considered. _________________ The OpenEMM Team |
|
| Back to top |
|
 |
|