{"id":15017106,"date":"2021-10-29T00:24:07","date_gmt":"2021-10-29T00:24:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-mail-method-sent-mail-twice\/"},"modified":"2021-10-29T00:24:07","modified_gmt":"2021-10-29T00:24:07","slug":"php-mail-method-sent-mail-twice","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-mail-method-sent-mail-twice\/","title":{"rendered":"PHP Mail method sent mail twice"},"content":{"rendered":"<p>I&#8217;m using the PHP mail method with my form, <\/p>\n<p>but when I click on submit, the email is sent twice &#8230;<\/p>\n<p>I don&#8217;t why this happened<\/p>\n<p>my code works fine in the localhost without duplicating the email &#8230; so I think  the problem is not in my code <\/p>\n<p><strong>Note<\/strong>: I&#8217;m using <strong>PHPcode Snippet<\/strong> plugin in the WordPress to add the PHP code in my WordPress page<\/p>\n","protected":false},"template":"","class_list":["post-15017106","topic","type-topic","status-publish","hentry","topic-tag-php-mail"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15017106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15017106\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15017106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}