WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-to-lead for Salesforce CRM
[resolved] Additional emails not being sent (10 posts)

  1. groomedmonkey
    Member
    Posted 6 months ago #

    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/

  2. Nick Ciske
    Member
    Plugin Author

    Posted 6 months ago #

    Where did you put your code?

    Can WordPress normally send emails to these addresses?

  3. Nick Ciske
    Member
    Plugin Author

    Posted 6 months ago #

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

  4. Nick Ciske
    Member
    Plugin Author

    Posted 6 months ago #

    @groomedmonkey - were you able to get this working?

  5. groomedmonkey
    Member
    Posted 6 months ago #

    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.

  6. Nick Ciske
    Member
    Plugin Author

    Posted 6 months ago #

    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?

  7. groomedmonkey
    Member
    Posted 6 months ago #

    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.

  8. Nick Ciske
    Member
    Plugin Author

    Posted 6 months ago #

    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.

  9. groomedmonkey
    Member
    Posted 6 months ago #

    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.

  10. groomedmonkey
    Member
    Posted 6 months ago #

    Are there any specific server requirements I could be missing?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.