Multiple email is sent to customer while using stripe gateway
-
There are multiple emails sent at different random times from our smtp to client.
This happens randomly, and most of the time it only sends one email. But when times when it’s sending, it can send up to 13 times to customers, time range from customer’s order time to the next day, for example:“20200816 0058
20200816 0058
20200816 0058
20200816 0058
20200816 0058
20200817 0102
20200817 0102
20200817 0102
20200817 0102
20200817 0102
20200817 0103
20200817 0103
20200817 0103”these are one incident where server sends 13 emails to the same customer with the same order.
There’s currently nothing wrong with other payment types, any suggestion?
Version 4.5.0
-
Hey there!
What are the emails that are sent? Is this the WooCommerce new order email? Something else?
yes, the new order emails,
there are always 2 emails sent:
email title: New order #xxxxxxx (to site admins)
and
email title: Invoice for order #xxxxxx (to customers)these 2 emails are sent every time.
I would recommend first checking if it’s an issue with WooCommerce creating these emails, or if the issue is with your server sending them.
A good way to do that is to install a third-party email log plugin such as this one:
https://www.ads-software.com/plugins/email-log/Install and activate that plugin and then when this happens next, check that plugins logs. Do the emails appear multiple times in that log? if not the issue is not with WooCommerce or WordPress. In that case the issue would be between your server sending the email and the customer receiving it.
If your mail server is experiencing issues, it may duplicate the message. Additionally if a customer’s email provider is having issue or their mailbox is full, there can sometimes be duplicate issues.
Try this first and let us know what you see.
Please also include a copy of your sites System Status Report in your next reply. You can get this by going to WooCommerce > Status
Hey there!
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Hi, i did reply with email please check the below content:
we did have all the email logs because we’re using WP SMTP pro, and all the logs showing that all emails are sent from Woocommerce (or plugins) because it does have all the email logs sending to the same customer multiple times.
which exactly matches the email sent from out Gmail server.and there is our status report:
`
### WordPress Environment ###WordPress address (URL): https://www.seekitshop.com
Site address (URL): https://www.seekitshop.com
WC Version: 4.4.1
REST API Version: ? 1.0.15
WC Blocks Version: ? 3.1.0
Action Scheduler Version: ? 3.1.6
WC Admin Version: ? 1.4.0
Log Directory Writable: ?
WP Version: ? 5.4.2 – There is a newer version of WordPress available (5.5)
WP Multisite: –
WP Memory Limit: 1 GB
WP Debug Mode: –
WP Cron: ?
Language: en_AU
External object cache: –### Server Environment ###
Server Info: nginx/1.10.3
PHP Version: 7.3.21-1+ubuntu16.04.1+deb.sury.org+1
PHP Post Max Size: 128 MB
PHP Time Limit: 900
PHP Max Input Vars: 3000
cURL Version: 7.47.0
OpenSSL/1.0.2gSUHOSIN Installed: –
MySQL Version: 5.5.5-10.0.38-MariaDB-0ubuntu0.16.04.1
Max Upload Size: 128 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 4.4.1
WC Database Prefix: wp_
Total Database Size: 63.02MB
Database Data Size: 48.99MB
Database Index Size: 14.03MB
wp_woocommerce_sessions: Data: 2.82MB + Index: 0.10MB + Engine MyISAM
wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_order_items: Data: 0.60MB + Index: 0.26MB + Engine MyISAM
wp_woocommerce_order_itemmeta: Data: 3.40MB + Index: 2.56MB + Engine MyISAM
wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_payment_tokens: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_woocommerce_payment_tokenmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_actions: Data: 2.06MB + Index: 0.81MB + Engine MyISAM
wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_actionscheduler_logs: Data: 1.43MB + Index: 1.09MB + Engine MyISAM
wp_aryo_activity_log: Data: 2.31MB + Index: 0.00MB + Engine InnoDB
wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_comments: Data: 1.63MB + Index: 0.64MB + Engine MyISAM
wp_hfcm_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_layerslider: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_layerslider_revisions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_options: Data: 11.47MB + Index: 0.51MB + Engine MyISAM
wp_postmeta: Data: 11.51MB + Index: 4.71MB + Engine MyISAM
wp_posts: Data: 5.47MB + Index: 0.44MB + Engine MyISAM
wp_revslider_css: Data: 0.10MB + Index: 0.00MB + Engine MyISAM
wp_revslider_css_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_sliders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_sliders_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_social_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_termmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
wp_terms: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
wp_term_relationships: Data: 0.04MB + Index: 0.10MB + Engine MyISAM
wp_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_um_metadata: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_usermeta: Data: 1.78MB + Index: 0.99MB + Engine MyISAM
wp_users: Data: 0.07MB + Index: 0.07MB + Engine MyISAM
wp_wcpdf_invoice_number: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
wp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_customer_lookup: Data: 0.11MB + Index: 0.09MB + Engine MyISAM
wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_product_lookup: Data: 0.47MB + Index: 0.41MB + Engine MyISAM
wp_wc_order_stats: Data: 0.17MB + Index: 0.11MB + Engine MyISAM
wp_wc_order_tax_lookup: Data: 0.06MB + Index: 0.07MB + Engine MyISAM
wp_wc_product_meta_lookup: Data: 0.04MB + Index: 0.06MB + Engine MyISAM
wp_wc_reserved_stock: Data: 0.07MB + Index: 0.00MB + Engine MyISAM
wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_zapier_history: Data: 0.19MB + Index: 0.04MB + Engine MyISAM
wp_wdp_orders: Data: 0.05MB + Index: 0.03MB + Engine MyISAM
wp_wdp_order_items: Data: 0.04MB + Index: 0.05MB + Engine MyISAM
wp_wdp_rules: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
wp_wpmailsmtp_emails_log: Data: 1.52MB + Index: 0.19MB + Engine InnoDB
wp_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wpmm_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_yoast_indexable: Data: 1.37MB + Index: 0.50MB + Engine MyISAM
wp_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_yoast_primary_term: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_yoast_seo_links: Data: 0.05MB + Index: 0.01MB + Engine MyISAM
wp_yoast_seo_meta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM### Post Type Counts ###
attachment: 712
avada_faq: 20
nav_menu_item: 84
page: 23
post: 10
product: 586
product_variation: 4
revision: 263
shop_order: 2150
shop_order_refund: 33
slide: 6
um_directory: 1
um_form: 3
wpcf7_contact_form: 1### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (28) ###
LayerSlider WP: by Kreatura Media – 6.11.2
Advanced Custom Fields PRO: by Elliot Condon – 5.9.0
Advanced Dynamic Pricing for WooCommerce: by AlgolPlus – 3.0.4 – Installed version not tested with active version of WooCommerce 4.4.1
Activity Log: by Activity Log Team – 2.5.2
Autoptimize: by Frank Goossens (futtta) – 2.7.6
bbPress: by The bbPress Contributors – 2.6.5
Contact Form 7: by Takayuki Miyoshi – 5.2.1
Convert Plus: by Brainstorm Force – 3.5.12
Custom Order Numbers for WooCommerce: by Tyche Softwares – 1.2.10 – Installed version not tested with active version of WooCommerce 4.4.1
Avada Builder: by ThemeFusion – 3.0.2
Avada Core: by ThemeFusion – 5.0.2
Avada Custom Branding: by ThemeFusion – 1.2
Header Footer Code Manager: by 99robots – 1.1.7
Heartbeat Control by WP Rocket: by WP Rocket – 2.0
Jetpack by WordPress.com: by Automattic – 8.8.2
Members: by MemberPress – 3.0.10
Preoders for WooCommerce PRO: by Bright Plugins – 1.0.5 – Installed version not tested with active version of WooCommerce 4.4.1
PWA: by PWA Plugin Contributors – 0.5.0
Slider Revolution: by ThemePunch – 6.2.22
Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.5 – Installed version not tested with active version of WooCommerce 4.4.1
WooCommerce Attach Me!: by Lagudi Domenico – 18.2 – Installed version not tested with active version of WooCommerce 4.4.1
WooCommerce Stripe Gateway: by WooCommerce – 4.5.2 – Installed version not tested with active version of WooCommerce 4.4.1
WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.6.0 – Installed version not tested with active version of WooCommerce 4.4.1
WooCommerce Zapier: by OM4 – 2.0.4 – Installed version not tested with active version of WooCommerce 4.4.1
WooCommerce: by Automattic – 4.4.1
Yoast SEO: by Team Yoast – 14.8
WP Mail SMTP Pro: by WPForms – 2.3.1
WP Maintenance Mode: by Designmodo – 2.2.4### Inactive Plugins (8) ###
Flexible Shipping: by WP Desk – 3.11.3 – Installed version not tested with active version of WooCommerce 4.4.1
HubSpot All-In-One Marketing – Forms, Popups, Live Chat: by HubSpot – 7.40.0
Nextend Social Login: by Nextendweb – 3.0.24
Preoders for WooCommerce: by Bright Plugins – 1.0.5 – Installed version not tested with active version of WooCommerce 4.4.1
The Events Calendar: by Modern Tribe
Inc. – 5.1.4WC Hide Shipping Methods: by Rynaldo Stoltz – 1.4
WooCommerce Twilio SMS Notifications: by SkyVerge – 1.14.4 – Installed version not tested with active version of WooCommerce 4.4.1
WP Mail SMTP: by WPForms – 2.2.1### Settings ###
API Enabled: ?
Force SSL: –
Currency: AUD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)Connected to WooCommerce.com: –
### WC Pages ###
Shop base: #19794 – /shop-full-width/
Cart: #19809 – /cart/
Checkout: #19811 – /checkout/
My account: #19814 – /my-account/
Terms and conditions: ? Page not set### Theme ###
Name: Avada Child
Version: 1.0.0
Author URL: https://theme-fusion.com
Child Theme: ?
Parent Theme Name: Avada
Parent Theme Version: 7.0.2
Parent Theme Author URL: https://themeforest.net/user/ThemeFusion
WooCommerce Support: ?### Templates ###
Overrides: Avada/woocommerce/cart/cart.php version 3.8.0 is out of date. The core version is 4.4.0
Avada/woocommerce/checkout/form-pay.php
Avada/woocommerce/checkout/review-order.php
Avada/woocommerce/checkout/thankyou.php
Avada-Child-Theme/woocommerce/emails/admin-new-order.php
Avada/woocommerce/loop/loop-start.php
Avada/woocommerce/single-product/add-to-cart/variable.php
Avada/woocommerce/single-product/short-description.php
Avada/woocommerce/single-product/tabs/additional-information.php
Avada/woocommerce/single-product/tabs/description.phpOutdated Templates: ?
Learn how to update
### Action Scheduler ###
Complete: 7,873
Oldest: 2020-08-23 15:18:18 +0000
Newest: 2020-08-26 06:22:25 +0000Pending: 4
Oldest: 2020-08-26 11:35:12 +0000
Newest: 2020-09-05 00:46:05 +0000### WooCommerce Zapier ###
Database Version: ? 12
Detailed Logging Enabled: No
Legacy Mode Disabled: ? Yes
SSL: ? Yes
REST API Authentication Key(s): ? 0
Task History Record Count: ? 2125
Webhook #3: Zapier #93861779
– Status: disabled
– Trigger: order.created
– Delivery Count (Last 30 Days): 467
Deleted Webhook Delivery Count: 1658Thank you for that.
I would recommend first trying to disable the “WP Mail SMTP Pro” plugin and place a test order. That way you can rule out that plugin as an issue.
If that doesn’t help, you’ll want to do a full conflict test. We have a guide on how to test for conflicts here:
https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4During the conflict testing, you’ll want to use the default Twenty Twenty theme and have only the WooCommerce plugin active.
We are pretty sure SP mail smtp pro is not an issue here, as all the other emails are correctly generated and sent, with no duplication at all. And all the paypal, bank transfer payment types have no issue mentioned too. Only stripe gateway sometimes triggers multiple email sending after an already made order. Is this a first issue regarding stripe gateway?
Hey @dsychung
Can I ask a few things here:
* Can you install WP Mail Log – this will show if WooCommerce is requesting the email to be sent multiple times.
* Can you replicate this, and if so can you replicate this with only WooCommerce and Stripe active?
* Are there any order notes duplicated?
* Is the email content the same across each of these duplicates?Thanks,
Yes
* Yes, WP mail log is active – it is triggered multiple times and each duplicated sending logs show in the wp mail log as well.
* No, we don’t know when it’ll happen, most of the time is correct(1 email to 1 user after new order)
* there are no order notes in these orders, the orders looks exactly the same as a normal order, everything untouched, only the email is sending multiple times
* yes, email contents exactly the same, some are sent within a secound, some send 3-4 mails within a minute, some couple of hours later. all with same content, very wierdHey @dsychung
Thanks for detailing that for me – For one of the problem orders where this has happened, if you replicate the order from the front-end (product and address) – does the same thing happen?
Do you have any plugin active that could be triggering this repeated email? Any fatal error logs for the same time as these orders?
I appreciate the frustration you must be feeling about this and I’d love to help out more but being able to replicate this is the best way of understanding what is causing it.
Thanks,
Hi we’ve tried a couple of times, and the order and the email sent was correct(no multiple email sent), as mentioned, it happens maybe 1 time after a day or few weeks.
The most recent incident is about 5 days ago with another stripe payment on 4 products purchase. (we normally have more than 10 to 20 orders a day)The new order email sent 8 times to the same customer within 1.5mins time. SMTP and email all have correct logs. however this customer is a random customer and dont know why it happened.We’ve tried a few method to replicate the issue and no use. it’s really frustrating.
and the only pattern we see here is that they all use stripe as payment.Any idea?
Hey @dsychung
I can appreciate how frustrating this is for you, as it is frustrating being unable to provide any good next steps.
Being able to replicate the issue is the first step in our troubleshooting process so as we’re not able to do that, we’re not able to find a cause.
If you look at the orders, is there a trend that it is every 20th order or similar? If you enable the debug logs in the Stripe settings, is anything logged via the logs that may highlight this: WP Admin > WooCommerce > Status > Logs
Is it the same product that is ordered for orders this happens to?
Thanks,
Hi @dsychung – Any luck with the request above?
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
- The topic ‘Multiple email is sent to customer while using stripe gateway’ is closed to new replies.