Support » Plugin: Brilliant Web-to-Lead for Salesforce » Additional emails not being sent

  • Resolved groomedmonkey

    (@groomedmonkey)


    As per the “Other Notes” section I have set up additional email addresses that require a copy of the form contents:

    add_filter('salesforce_w2l_cc_admin_email_list','salesforce_add_emails');
    
    function salesforce_add_emails( $emails ){
    
        $emails[]='person1@asdf.com';
        $emails[]='person2@asdf.com';
    
        return $emails;
    }

    but no emails are being delivered. Checked spam folders and done Gmail searches. The “Send me a copy” checkbox successfully sends me back an email so I assume that this is a plugin-related issue?

    http://wordpress.org/plugins/salesforce-wordpress-to-lead/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    Where did you put your code?

    Can WordPress normally send emails to these addresses?

    Plugin Author Nick Ciske

    (@nickciske)

    Just verified this as working on my dev site, so it does not appear to be a bug in the plugin.

    Plugin Author Nick Ciske

    (@nickciske)

    @groomedmonkey – were you able to get this working?

    Hey, sorry for delayed response. Problem still exists.

    Code went into functions.php.

    I tested with Contact Form 7 to see if mail is being sent by WP and it works to the my address added in the above code – waiting to hear back from client to see if they receive the test to their account. It’s currently 2 gmails and a .org domain mail.

    Is there anything else I can do to debug this? I am not using any other email plugins.

    Plugin Author Nick Ciske

    (@nickciske)

    Are you sure the code is actually running? I have the code from the FAQ running just fine on my dev site, so the issue is either with the code in your functions.php or something else unique to your site.

    I assume you’re running the latest version of the plugin?

    e.g.

    Does a die(‘here’); in the function cause PHP to stop execution and print “here” (when you submit a form)?

    Can you post the exact code you’re using (with emails removed)?

    Does disabling all other plugins fix it?

    Does using a bundled theme (with the code in functions.php) fix it?

    Just disabled all plugins but this one (Version 2.2.5) and activated twentyfourteen. Added this to the bottom of the functions.php:

    /**
     * Add emails to Salesforce WP plugin - could be made redundant in future plugin update
     * http://wordpress.org/support/topic/plugin-wordpress-to-lead-for-salesforce-crm-send-multiple-email-notifications
     */
    add_filter('salesforce_w2l_cc_admin_email_list','salesforce_add_emails');
    
    function salesforce_add_emails( $emails ){
        die('here');
    //    $emails[]='email_redacted';
        $emails[]='email_redacted';
        $emails[]='email_redacted@gmail.com';
        $emails[]='email_redacted@gmail.com';
    
        return $emails;
    }

    The die('here'); didn’t produce the described behaviour so I assume that the code isn’t running for some reason.

    Plugin Author Nick Ciske

    (@nickciske)

    That’s the same code I have working on my dev site…

    Very weird, but as you said, the code doesn’t appear to be running, so it’s not a plugin bug — it’s something specific to your site/server.

    If you want me to debug your site, I’m happy to help, but that falls under premium support unfortunately.

    Sigh, yeah I hate the “only me” bugs. I’ll send you an email for a quote.

    Thanks for your help on this so far. If it wasn’t something so strange I believe we would of fixed it here.

    Are there any specific server requirements I could be missing?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Additional emails not being sent’ is closed to new replies.