• Resolved dbasdekis

    (@dbasdekis)


    Hello! I am trying to set up the ecards plugin. I want to create 20 single ecards that will appear on separate pages on the website I am creating. The ecards are looking as expected, the email looks very nice as well. I have created 5 so far, in 5 separate posts with 5 different ids. [ecard id=””]. The problem is when I try to send an ecard I get the same email 5 times. When I had 4 cards, I got 4 emails. So the number of cards I create, seems to be linked to the number of emails I get. Is there a way to fix this issue?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ciprian

    (@butterflymedia)

    That looks very strange. I tried to replicate this now on 2 different websites, one a production website with lots of plugins and custom code, and the other one a fresh WordPress installation. I only receive one eCard.

    It must be something else triggering the duplicate emails.

    I am using the native wp_mail() function. Do you have any mail-related plugins? SMTP ones?

    Thread Starter dbasdekis

    (@dbasdekis)

    The only mail related plugin I have is the contact form 7. Could there be some conflict with this? I will try to disable it and send another test.

    This is the page I am having the issue with. If you click on one of the 3 first postcards and send a test, you will probably be able to replicate the issue.

    Plugin Author Ciprian

    (@butterflymedia)

    No, it’s not that. The test page you provided is showing me 4 forms on the same page, because you are using a lightbox functionality.

    Basically, when you have one for on a post or a page, you get one email.

    In your case, you have 4 forms (they are hidden and only appear as a lightbox when you click) on one page. Or 5, or 6. So when you send one, you send all of them.

    You can solve this by opening each post separately, instead of a lightbox.

    I can also solve this by changing the sending behaviour from a POST request to AJAX, but that would take a while, as I would need to change the plugin’s codebase quite a bit.

    Thread Starter dbasdekis

    (@dbasdekis)

    Thank you for your reply. I am testing to see if this is the case, but I am still not sure.

    Each card is a separate post with a different ecard id. I pull all these in a page as lightbox, correct. The weird thing is that if I open each post separately, for example this post that contains only one postcard, I still get 5 emails.

    Plugin Author Ciprian

    (@butterflymedia)

    It’s the same, actually. I checked the source code and I saw 4 eCard forms.

    Only one is visible, but the rest of them are still there in a popup.

    If you hot CTRL+U (or right-click and View Source), and then CTRL+F to search for “<form” you will see 4 of them.

    I don’t know how your theme is built. I never had this issue reported before.

    I will try to make a small change by the end of today and push an update to see if I can code a workaround.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I get the same email many times.’ is closed to new replies.