WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Two emails / Double send problem
- AuthorPosts
- 13 November, 2017 at 5:26 pm #32756
This is a followup on this closed thread.
I have been in contact with mailgun support and supplied them with screenshots from the log files.
They claim (and this seems to be supported by the log files) that they are receiving the email twice (like it’s two different emails). This is the reply that I got from them.
Thanks for providing this information. From what is provided, these messages are not duplicates, in the sense our system created 2 of the same message, but rather, are unique sends of the same message to our system. The message-IDs differ, and thus, indicate each messages was a separate request made to our system. Please let us know if you have any questions.
Here are the screenshots of the email log files from mailgun.
https://mailgun.zendesk.com/attachments/token/KrWYKx0VZKDaV4AHTYNjrAecj/?name=example-3.png
https://mailgun.zendesk.com/attachments/token/c17nJL0wjI0BiErdK3xbFyvp6/?name=example.png
https://mailgun.zendesk.com/attachments/token/iqJl56PFw8GMQHnFbdoH2U6YV/?name=example-2.png
https://mailgun.zendesk.com/attachments/token/LeBqh3jx3ZNiLlnx663WmHynf/?name=another-example-1.png
https://mailgun.zendesk.com/attachments/token/nHqAn5broUy5hRT7NzRkqZAJG/?name=another-example-2.png
https://mailgun.zendesk.com/attachments/token/zoXgSJY84Z8RiHibQsK42v3qX/?name=another-example-3.png13 November, 2017 at 5:34 pm #32757depending on your mail (order emails templates etc ) setup , this might well be the case
and might not necessarily constitute an error15 November, 2017 at 8:21 am #32818In my WP-Pizza order settings I have the shop email address set.. (like [email protected])
https://i.imgur.com/5WvoFY7.pngThen I am using the WP-Pizza template settings to send this email to a normal gmail (like [email protected])
https://i.imgur.com/Kx8U9QN.pngIt’s this 2nd email that is sent twice to mailgun, on what seems to be completely random orders. (which in terms means it’s being printed twice in the shop)
And this is my email server settings
https://i.imgur.com/gZAYYyW.pngAre there any log files or anything like that I can check, to find out what is causing this problem?
15 November, 2017 at 12:13 pm #32823>https://i.imgur.com/Kx8U9QN.png
you are sending 4 emails (at least)
one to the customer and one (or more) to “additional email addresses”
for reasons only you will know you are NOT sending any to your shop ….
edit: sorry that’s not true. i was expectting this to be wppizza v3.x . you are of course using an old version therethere’s also one more to the shop (email no 3) + another to some gmail account (in your template that sends to the shops – email no 4)
>https://i.imgur.com/gZAYYyW.png
it makes no difference what you have set there as it’s not enabled15 November, 2017 at 1:40 pm #32826That all sounds right 🙂
The only one that I am having trouble with is
+ another to some gmail account (in your template that sends to the shops – email no 4)
That is the one I am sending to a normal @gmail.com account (This one) and that is the one that is randomly being sent twice.
Ps. I will for sure be updating to 3.0 and adding a 2nd locations to this shop. I would just really like to solve this problem, so my client can stop calling me and complaining that I am double printing orders.
15 November, 2017 at 3:09 pm #32827obviously, the programming of the plugin doesnt randomly change to send 2/duplicate emails for no reason
do you have any customised coding somewhere ? perhaps something using the on order execute hook ?
how are you “printing” things ? wppizza doesnt do any printing (unless you are using the cloudprint plugin, in which case: did you do anything with the filters in that one ?)what i can say though is that of the 1000’s of users of the plugin not once has this been reported (other than by yourself of course)
15 November, 2017 at 4:09 pm #32828There is no custom coding, and I have ruled out the printing being a problem, as I can see two emails in the inbox and in mailgun. So it’s only printing two copies, because there is actually two emails.
I totally get what you are saying and I have no doubt it’s something that I am some how at least partially responsible for.
One thing that I did suspect that it could be, is that we have implemented a payment gateway called quickpay.net which may have required some custom coding in the integration. Maybe the callback from Quickpay is somehow responsible for causing the mail to be sent twice. However in my mind, I ruled that out, as I concluded it would result in two orders being placed, and not just two emails being sent, for the same order.
- AuthorPosts
- The topic ‘Two emails / Double send problem’ is closed to new replies.