custom recipient filter not working
-
Hi,
i’m playing around with this plugin. My use case would be to send mails with attachements to an given mail-adress. The adress comes from an ACF-field. In the documentation i found the following:
function change_email_recipient() { // Fetch email from options field $email = get_field('mail_field'); return $mail; } add_filter( 'af/form/email/recipient', 'change_email_recipient', 10, 0 ); add_filter( 'af/form/email/recipient/key=FORM_KEY', 'change_email_recipient', 10, 0 ); add_filter( 'af/form/email/recipient/id=ID', 'change_email_recipient', 10, 0 );
For me, this looks like, what i need. But: I’t doesn’t work. I hard-coded a recipient adress, but it doesn’t send a mail to this adress.
Could anybody help, please.
Thanks,
Stephan.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘custom recipient filter not working’ is closed to new replies.