OpenEMM Support Forum Index OpenEMM Support
Use this forum to get and provide free help regarding OpenEMM
 
 TOP   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

(Still) Can't get Target Based emails to work

 
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Using OpenEMM
View previous topic :: View next topic  
Author Message
doubledutch



Joined: 21 Aug 2008
Posts: 15

PostPosted: Fri Oct 03, 2008 3:53 pm    Post subject: (Still) Can't get Target Based emails to work Reply with quote

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
View user's profile Send private message
ma
Site Admin


Joined: 03 Aug 2006
Posts: 512
Location: Munich, Germany

PostPosted: Fri Oct 03, 2008 5:59 pm    Post subject: Reply with quote

You should use the expression

creation_date = current_timestamp
_________________
The OpenEMM Team
Back to top
View user's profile Send private message Visit poster's website
doubledutch



Joined: 21 Aug 2008
Posts: 15

PostPosted: Sat Oct 04, 2008 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message
ma
Site Admin


Joined: 03 Aug 2006
Posts: 512
Location: Munich, Germany

PostPosted: Sat Oct 04, 2008 12:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Using OpenEMM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group