• Resolved yewzy

    (@yewzy)


    All Woocommerce emails are unable to be delivered. This error occurs:
    Client error:POST https://graph.microsoft.com/v1.0/me/sendMailresulted in a400 Bad Requestresponse: {"error":{"code":"ErrorParticipantDoesntHaveAnEmailAddress","message":"A participant without an email address is not all (truncated...)

    The From email used is not a shared mailbox, and just to be sure, I’ve also tried with another email address (the one I used to authenticate, and the same error still occurs). I’ve also enabled the setting in POST STMP to Prevent plugins and themes from changing the from address, and made sure the email address in Woo is also the same.

    This only occurs in Woocommerce, as my other emails, eg. from Ninja Forms, is able to be sent out without any issue (same from address and same receiver).

    I’ve tried implementing a fallback using a Gsuite account, and the email is able to be sent out successfully using the fallback account. I understand that O365 is doesn’t like it when the reply-to address in not in the organization, but it is strange that order confirmation emails to buyers are also not working (same from and reply-to address).

    Here is the diagnostic log:

    Mailer: postsmtp
    HostName: domain.org
    cURL Version: 7.62.0
    OpenSSL Version: OpenSSL/1.0.2k
    OS: Linux sg-nme-web.main-hosting.eu 3.10.0-962.3.2.lve1.5.26.3.el7.x86_64 #1 SMP Wed Aug 14 08:29:59 EDT 2019 x86_64
    PHP: Linux 7.4.8 C
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
    WordPress: 5.6.1 zh_CN UTF-8
    WordPress Theme: Hello Elementor
    WordPress Plugins: 3D FlipBook : Dflip Lite, Advanced Custom Fields, Checkout Field Editor and Manager for WooCommerce, Code Snippets, Custom Post Type UI, DynamicConditions, WooCommerce eGHL Payment Gateways, Knowledge Base for Documents and FAQs, Elementor Pro, Elementor, Event Tickets Plus, Event Tickets, Form Vibes - Database Manager for Forms, Site Kit by Google, Guest Author, Happy Elementor Addons, Insert PHP Code Snippet, Jetpack by WordPress.com, Leaflet Map, LiteSpeed Cache, Loco Translate, Maximum Products per User for WooCommerce, Members, mPDF addon for PDF Invoices, Newsletter - Addons Manager, Newsletter - Import (advanced), Newsletter - Instasend (BETA), Newsletter - Office 365 Headers Removal, Newsletter - WP Users Integration, Newsletter, Ninja Forms - Addon Manager, Ninja Forms - Conditional Logic, Ninja Forms - Multi-Part Forms, Ninja Forms - Post Creation, Ninja Forms - Save Progress, Ninja Forms - Layout & Styles, Ninja Forms - File Uploads, Ninja Forms - User Management, Ninja Forms - Webhooks, Ninja Forms, Paid Memberships Pro, Paid Memberships Pro - Add Member From Admin, Paid Memberships Pro - Email Templates Add On (.org), Paid Memberships Pro - Pay by Check Add On, Paid Memberships Pro - Register Helper Add On, Paid Memberships Pro - Set Expiration Dates Add On, Paid Memberships Pro - WooCommerce Add On, Office 365 for Post SMTP Extension, Post SMTP, WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels, Redirect URL to Post, Related Posts By Taxonomy, Rank Math SEO, Pinyin Slugs, The Events Calendar Category Colors, The Events Calendar, TranslatePress - Multilingual, Events Tickets Extension: Virtual / Online Event Tickets, Events Tickets Extension: Ticket Email Settings, TranslatePress - Only translate certain paths, Unsplash, WooCommerce, Asset CleanUp: Page Speed Booster, WP User Avatar, WPO365 | LOGIN
    WordPress wp_mail Owner: /home/domains/domain.org/public_html/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php
    WordPress wp_mail Filter(s): TRP_Translation_Render->wp_mail_filter, wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_args
    WordPress wp_mail_from Filter(s): pmpro_wp_mail_from
    WordPress wp_mail_from_name Filter(s): pmpro_wp_mail_from_name
    WordPress wp_mail_content_type Filter(s): pmpro_wp_mail_content_type
    WordPress phpmailer_init Action(s): \Wpo\Mail\Client::init
    Postman: 2.0.20
    Postman Sender Domain (Envelope|Message): domain.org | domain.org
    Postman Prevent Message Sender Override (Email|Name): Yes | Yes
    Postman Active Transport: Office365 API (https://amazonses.com:443)
    Postman Active Transport Status (Ready|Connected): Yes | Yes
    Postman Deliveries (Success|Fail): 3384 | 147
    Postman Stealth Mode: Yes
    
    • This topic was modified 3 years, 9 months ago by yewzy.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi @yewzy,

    Please set a ‘reply-to’ address in Post SMTP. If you could let us know what effect that has it would be most appreciated.

    Thanks.

    Kind Regards,
    Tim

    PS – in future, as this is regarding an extension, you must post in the PostmanSMTP.com forums here. We are not permitted to support extensions on this forum.

    Thank you.

    Kind Regards,
    Tim

    Thread Starter yewzy

    (@yewzy)

    Hi @tneville.

    Thanks for getting back to me. Noted concerning the support location.

    I’ve done as you asked, and the result is the same. I compared the session transcript in VS Code, and besides differing messageID and order details, everything else is the same.

    Hi @yewzy,

    Can you check that your from email in WooCommerce settings matches your Office 365 account?

    Kind Regards,
    Tim

    Thread Starter yewzy

    (@yewzy)

    Yes, I’m only using one email address. However, my admin email is not the same as the email used to send emails, would that cause any conflicts?

    Hi @yewzy,

    No, your WordPress site admin email doesn’t need to match. Can I just check that your sender override email also matches your Office 365 address?

    Kind Regards,
    Tim

    Thread Starter yewzy

    (@yewzy)

    Yes, that is correct.

    Thread Starter yewzy

    (@yewzy)

    It just occurred to me that I authenticated Post STMP with an admin account with full permission to read, manage and send as the mailbox in question. May that be the problem? Is there a way for me to re-authenticate using the actual mailbox account?

    Hi @yewzy,

    Just checking, but did you create the Azure app from the account you are sending from?

    If you are talking about regranting the OAuth, you can do this from the Post SMTP settings screen – it is under the ‘Actions’ heading. From memory, something like ‘Reset OAuth 2.0 permissions’, or similar.

    Kind Regards,
    Tim

    Thread Starter yewzy

    (@yewzy)

    Ahh, I did not. The App is created from an admin account with full control of that particular mailbox.

    I am unable to reauthenticate, even after clicking reset. After filling in the new appId and appSecret, there is not an option to authenticate; and test-emails fail with an ‘invalid_client’ error.

    Hi @yewzy,

    Can you try recreating the Azure app under the user that you are sending from?

    Kind Regards,
    Tim

    Thread Starter yewzy

    (@yewzy)

    Update: Test emails are sending now. Maybe that was a temporary server issue (?)

    Unfortunately, the problem still occurs. Other emails work, but Woocommerce emails still refuse to send.

    Edit: Just saw your message. Yes, I have done so, and the issue persists.

    • This reply was modified 3 years, 9 months ago by yewzy.
    Thread Starter yewzy

    (@yewzy)

    I am suspecting that it is still sending using the previous configuration, as emails are being sent out even after I used a wrong client secret.

    I am still unable to reauthenticiate as the option is not there, even after resetting. It just states ‘Office 365 is configured!’

    Hi @yewzy,

    Please can you post here? I think it might be a suitable location. Just link to this thread and I will drop you a reply.

    Kind Regards,
    Tim

    Thread Starter yewzy

    (@yewzy)

    Noted. Pasting the link here in case anyone else is facing the same issue: https://postmansmtp.com/forums/topic/unable-to-deliver-woocommerce-emails/

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Office 365 unable to deliver Woocommerce Emails’ is closed to new replies.