Problem with Target Based emails
Moderator: moderator
Problem with Target Based emails
Hi!
I want to send birthday newsletter to all people younger than 27. I'm using openemm 5.5.1. But the problem is that date based target groups don't appear to work.
I created a birthdaymailing target group with following definitions:
birthdate = current_timestamp (MMDD)
and age < 27
but nobody get the birthdaymail
If I add following definition:
or email = mymailadress@xx.xx I get the birthday mail
column target_sql in the dyn_target_tbl:
cust.age < 27 AND date_format(cust.birthdate, '%m%d') = date_format(current_timestamp, '%m%d') OR lower(cust.email) = lower('mymailadress@xx.xx')
If I execute the statement SELECT * FROM `customer_2_tbl`
WHERE age <27 AND date_format( birthdate, '%m%d' ) = date_format(
CURRENT_TIMESTAMP , '%m%d' ) it shows the right persons.
I don't know where the problem is. I hope anybody can help me.
I want to send birthday newsletter to all people younger than 27. I'm using openemm 5.5.1. But the problem is that date based target groups don't appear to work.
I created a birthdaymailing target group with following definitions:
birthdate = current_timestamp (MMDD)
and age < 27
but nobody get the birthdaymail
If I add following definition:
or email = mymailadress@xx.xx I get the birthday mail
column target_sql in the dyn_target_tbl:
cust.age < 27 AND date_format(cust.birthdate, '%m%d') = date_format(current_timestamp, '%m%d') OR lower(cust.email) = lower('mymailadress@xx.xx')
If I execute the statement SELECT * FROM `customer_2_tbl`
WHERE age <27 AND date_format( birthdate, '%m%d' ) = date_format(
CURRENT_TIMESTAMP , '%m%d' ) it shows the right persons.
I don't know where the problem is. I hope anybody can help me.
YES.
Also the column target_sql in the dyn_target_tbl looks correct.
cust.age < 27 AND date_format(cust.birthdate, '%m%d') = date_format(current_timestamp, '%m%d') OR lower(cust.email) = lower('mymailadress@xx.xx')
Also the column target_sql in the dyn_target_tbl looks correct.
cust.age < 27 AND date_format(cust.birthdate, '%m%d') = date_format(current_timestamp, '%m%d') OR lower(cust.email) = lower('mymailadress@xx.xx')