SQL query with a variable in a LIKE query
Posted: Wed Jul 11, 2007 11:44 am
Hi,
I am testing your product and I have to say it is very well done. I have a problem with a query in a like statement:
select numberofpage from accounts where email LIKE
'%{SENDER}%';
The sender variable is the one defined in the PO3mail loop.
As you state in your guide:
Note:
Addresses in the message can be written in form of:
· E-mail address only. For example:
john@yahoo.com
· Recipient's name and address. For example:
John Smith <john@yahoo.com>
· Several recipients separated with a semicolon. For example:
John Smith <john@yahoo.com>; Melissa Carver melissa@hotmail.com
I have the problem that the incoming mails sometimes are set as
John Smith <john@yahoo.com> and in my db the data for the email is john@yahoo.com. I thought that by using the wildcards this will be solved but it doesn't. Do you have a solution for this?
Thanks
Lorenzo
I am testing your product and I have to say it is very well done. I have a problem with a query in a like statement:
select numberofpage from accounts where email LIKE
'%{SENDER}%';
The sender variable is the one defined in the PO3mail loop.
As you state in your guide:
Note:
Addresses in the message can be written in form of:
· E-mail address only. For example:
john@yahoo.com
· Recipient's name and address. For example:
John Smith <john@yahoo.com>
· Several recipients separated with a semicolon. For example:
John Smith <john@yahoo.com>; Melissa Carver melissa@hotmail.com
I have the problem that the incoming mails sometimes are set as
John Smith <john@yahoo.com> and in my db the data for the email is john@yahoo.com. I thought that by using the wildcards this will be solved but it doesn't. Do you have a solution for this?
Thanks
Lorenzo