[TYPO3-english] Powermail - Is it possible to dynamically change the address the email is send to?

Muriel le Pair typo3 at strangefruit.nl
Wed Feb 29 16:31:43 CET 2012


Hi,

I need to change the actual address that the email is send based on a 
certain condition.

The example below changes the name and emailadress of the recipient but 
does not change the emailadress there the e-mail is send to.

Is it possible to dynamically change the address the email is send to?

plugin.tx_powermail_pi1 {
   email {
     # Settings for mail to the default receiver(s)
     recipient_mail {

       # Sender name (overwrite)
       sender.name = TEXT
       sender.name.value = change test

       # Sender email (overwrite)
       sender.email = TEXT
       sender.email.value = info at mydomain.nl

       # Reply name
       reply.name = TEXT
       reply.name.value = change test

       # Reply email
       reply.email = TEXT
       reply.email.value = info at mydomain.nl

       # Search for an email where feuser has uid X
       email_query = TEXT
       email_query.value = SELECT email FROM fe_users WHERE uid = 
###UID123### AND disable = 0 AND deleted = 0
   }
}

With the extension wt_dynamictarget it's possible to change the 
emailadress of the recipient based on a certain condition. The only 
trouble is that I can't figure out how to add my own query.

--
kind regards,

Muriel le Pair


More information about the TYPO3-english mailing list