[TYPO3-UG Denmark] SQL i tcdirectmail
Preben
con3855 at vip.cybercity.dk
Tue Sep 26 13:58:00 CEST 2006
Tobias Grønlund skrev:
> Hejsa,
>
> Er der nogen der har et eksempel på hvordan man henter informationer ud
> fra f.eks. tt_address via Raw SQL i tcdirectmail? Jeg har nogle
> specielle conditions der skal være for modtagerne.
>
> - Tobias
<snip>
SELECT distinct email, 1 as plain_only
FROM tt_address t
LEFT JOIN [tablename] ON t.uid = [tablename].[f_uid]
WHERE t.pid = 63
AND [condition2]
AND email != ''
</snip>
"1 as plain_only" sikrer at alle mails sendes som plaintext
--
preben
More information about the TYPO3-UG-denmark
mailing list