• Resolved design

    (@meandesigns)


    Hi there, we have some forms set up and the user needs to receive an email notification once they submit. In the ‘To’ field I have tried adding {field:user_email} and tried using a field that get’s completed on the form {field:test_email} but I always get this error in my SMTP log: Mailer: Other SMTP You must provide at least one recipient email address.

    What am I doing wrong?

    Thanks so much for your help

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    This is strange. Are you sure your ACF Field is correctly named test_email in the form, and the email use a valid format?

    Can you try to set a static email directly in your ACFE Form > Email Action “To” setting? Use one of your email, see if the SMTP log works and if you receive the email.

    If you want to debug the email sent via the ACFE Form, and makes sure everything is correctly set, you can use the hook acfe/form/submit_email (see documentation). In that hook you can simply log acf_log($args) to check the email parameters right before it is sent. Usage example:

    add_action('acfe/form/submit_email/form=my-form', 'my_email_submit', 10, 3);
    function my_email_submit($args, $form, $action){

    // log email sent
    acf_log($args);

    }

    You can read more on how to enable the WP Debug mode and log data like that in our guide here if needed.

    Thanks!

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘Email action not working’ is closed to new replies.