• I’ve got Postman setup with a Gmail account. Sending works fine, but for some reason the bcc is ignored. When looking at the log the email shows all the headers, including the bcc, but it does not send to that address.

      $send_to = $user_email;
      $subject = 'Welcome!';
      $headers[] = 'Content-Type: text/html; charset=UTF-8';
      $headers[] = 'From: Example Web<[email protected]>';
      $headers[] = 'Reply-To: [email protected]';
      $headers[] = 'Bcc: [email protected]';
      $message = 'Message body.';
    
      wp_mail( $send_to, $subject, $message, $headers );

    Any ideas what it might be?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support M Haseeb

    (@haseeb0001)

    @user43215 Hi,

    I hope you are doing well.

    Please share Post SMTP diagnostic test report.
    Thanks

    Thread Starter user43215

    (@user43215)

    Hello,
    Thanks for the quick reply. Here’s the report:

    Mailer: postsmtp
    HostName: [redacted].com
    cURL Version: 7.66.0
    OpenSSL Version: OpenSSL/1.1.1q-fips
    OS: Linux giowm1305.siteground.biz 3.12.18-clouder0 #3 SMP PREEMPT Wed May 25 12:13:20 EEST 2022 x86_64
    PHP: Linux 7.4.33 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
    WordPress: 6.1.1 en_US UTF-8
    WordPress Theme: the7dtchild
    WordPress Plugins: Polylang, Post SMTP, Native PHP Sessions for WordPress, Ultimate Addons for WPBakery Page Builder, Classic Editor, Classic Widgets, Contact Form 7, Custom Sidebars, Download After Email, The7 Elements, WooCommerce FedEx Shipping Plugin with Print Label, USPS Live Rates, GA Google Analytics, GDPR Cookie Compliance, WPBakery Page Builder, LearnDash LMS - Notifications, LearnDash ProPanel, LearnDash LMS - WooCommerce Integration, Private content, Re-Add Text Justify Button, Slider Revolution, LearnDash LMS, SiteGround Optimizer, SiteGround Security, Content Protector, Tin Canny LearnDash Reporting, Uncanny LearnDash Groups, Uncanny Toolkit for LearnDash, Uncanny LearnDash Toolkit Pro, WooCommerce Stripe Gateway, WooCommerce Shipping & Tax, WooCommerce, WPFront Notification Bar
    WordPress wp_mail Owner: /home/customer/www/<meta http-equiv="content-type" content="text/html; charset=utf-8">[redacted].com/public_html/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php
    WordPress wp_mail Filter(s): wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_args
    WordPress phpmailer_init Action(s): wpcf7_phpmailer_init, PostsmtpMailer->phpmailer_smtp_init
    Postman: 2.2.1
    Postman Sender Domain (Envelope|Message): [redacted].com | [redacted].com
    Postman Prevent Message Sender Override (Email|Name): Yes | Yes
    Postman Active Transport: SMTP (smtp:tls:oauth2://smtp.gmail.com:587)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 10805 | 1349
    Plugin Support M Haseeb

    (@haseeb0001)

    @user43215

    let me reproduce this case and get back to you soon with updates.

    Thanks

    Plugin Support M Haseeb

    (@haseeb0001)

    @user43215 are you using any custom code to add BCC email or you are using Post SMTP Message tab “Additional Email Addresses” section to add BCC email address ?

    Thread Starter user43215

    (@user43215)

    @haseeb0001 I am using custom code as you can see up top. I can’t use the “additional email addresses” section because I only want to send a BCC for one very specific type of email, not every email sent from the site.

    Plugin Support M Haseeb

    (@haseeb0001)

    @user43215 We are looking into it and will get back to you soon with updates.

    Thanks

    Plugin Support M Haseeb

    (@haseeb0001)

    @user43215

    I have tested this on my staging website, and BCC is working fine, so maybe there will site a specific issue in your website or code.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Getting Bcc to work?’ is closed to new replies.