Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
So if I use a CCK field token for sender or recipient it should work, right? Because if I use a token in one of those fields I get this:
Please enter a valid e-mail address for recipient.
This issue moved from #501722: HTML mail actions for Rules
Comment | File | Size | Author |
---|---|---|---|
#3 | mimemail.966514_02.patch | 1.99 KB | sgabe |
#1 | mimemail.966514_01.patch | 2.76 KB | sgabe |
Comments
Comment #1
sgabe CreditAttribution: sgabe commentedPlease try the attached patch.
Comment #2
crizWhen got this mimemail_rules_action_mail_validate() introduced?
Because of tokens and php evaluation we moved all validation to mimemail_rules_form_settings_process(). What about validating emails there? In this state php evaluation and tokens should be applied.
@patch
Don't forget that also php evaluation should be supported.
Comment #3
sgabe CreditAttribution: sgabe commentedHoly... You're right. I moved this segment here from the Drupal action form, but I see I shouldn't have. I guess it will be just simply removed.
Comment #4
butler360 CreditAttribution: butler360 commentedSorry, I don't follow what you're saying above. If I want to use tokens for sender and receiver do I apply the patch in #3? And are there any side-effects?
Comment #5
sgabe CreditAttribution: sgabe commentedThe patch removes the validation. The only side-effect is that you can enter an invalid e-mail address in the form, but I think in the most cases you will use tokens and PHP evaluation, so the validation is needless. Note that Rules actions doesn't use this kind of validation by default.
Comment #6
butler360 CreditAttribution: butler360 commentedOK, sorry for the delay, but the patch applies just fine and it seems to work. Thanks!
Comment #7
sgabe CreditAttribution: sgabe commentedCommitted to DRUPAL-6--1 branch, will be available in the development snapshot soon. Sorry for the inconvenience fellas.