Title: Problem using Mailgun integration with API key
Last modified: October 10, 2022

---

# Problem using Mailgun integration with API key

 *  Resolved [cmac500](https://wordpress.org/support/users/cmac500/)
 * (@cmac500)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/)
 * Hello everyone,
 * I have a small but annoying problem that I hope we can fix with the help of the
   forum.
 * A few weeks ago I created a new website for the organization I work for. Immediately
   after that, I installed the iThemes Security plugin and configured it to send
   notifications to administrators under certain circumstances. Initially the site
   used the local email server, but after it was transferred to another domain I
   had to integrate the Mailgun service using your plugin. The service was configured
   through the use of an API key, not through SMTP credentials. Email communication
   is currently running smoothly, but there is one email created by the security
   plugin that the system keeps trying to send. The problem is that every attempt
   fails with an error message “The parameters passed to the API were invalid. Check
   your inputs!” (please see screenshot at the following link: [image](https://rcci.bg/wp-content/uploads/2022/10/Screenshot-10.10.2022.png)).
 * I am puzzled by the fact that attempts are being made to send the same email 
   even though I have disabled this type of notifications in the iThemes Security
   plugin. I am asking for your assistance or advice to fix the problem.`

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16085210)
 * [@cmac500](https://wordpress.org/support/users/cmac500/)
 * Hi,
 * Hope you are doing good.
 * Please share the Post SMTP diagnostic test report.
 * Thanks
 *  Thread Starter [cmac500](https://wordpress.org/support/users/cmac500/)
 * (@cmac500)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16087483)
 * [@haseeb0001](https://wordpress.org/support/users/haseeb0001/)
 * Hello,
 * Thanks for the reply. Here’s the diagnostic test report:
 *     ```
       Mailer: postsmtp
       HostName: rcci.bg
       cURL Version: 7.85.0
       OpenSSL Version: OpenSSL/1.1.1q
       OS: Linux vps.rapsource.net 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
       PHP: Linux 8.0.24 C
       PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
       WordPress: 6.0.2 en_US UTF-8
       WordPress Theme: Kadence Child
       WordPress Plugins: Advanced Custom Fields, Akismet Anti-Spam, iThemes Security, Custom Post Type UI, Duplicate Page, The Events Calendar: Virtual Events, Kadence Blocks - PRO Extension, Kadence Blocks – Gutenberg Blocks for Page Builder Features, Kadence Conversions - Popups, slide-ins, Kadence Custom Fonts, Kadence Pro - Premium addon for the Kadence Theme, Loco Translate, OneSignal Push Notifications, Post SMTP, Post Types Order, Redirection, SearchWP, Rank Math SEO, Simple Blog Stats, The Events Calendar, TranslatePress - Business, TranslatePress - Multilingual, UpdraftPlus - Backup/Restore, URL Shortify, User Role Editor, Asset CleanUp Pro: Page Speed Booster, WP Rocket
       WordPress wp_mail Owner: /home/rcci/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
       Postman: 2.1.10
       Postman Sender Domain (Envelope|Message): rcci.bg | rcci.bg
       Postman Prevent Message Sender Override (Email|Name): No | No
       Postman Active Transport: Mailgun API (https://api.mailgun.net:443)
       Postman Active Transport Status (Ready|Connected): Yes | Yes
       Postman Deliveries (Success|Fail): 28 | 113
       ```
   
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16089394)
 * [@cmac500](https://wordpress.org/support/users/cmac500/)
 * I can see failed emails’ “Send to” field is empty, something is overwriting it,
   
   Deactivate the Plugin “TranslatePress – Multilingual”, then test and let me know.
 * Thanks
 *  Thread Starter [cmac500](https://wordpress.org/support/users/cmac500/)
 * (@cmac500)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16095009)
 * [@haseeb0001](https://wordpress.org/support/users/haseeb0001/)
 * Thanks for the quick and adequate reply.
 * Based on the information provided, I found and was able to fix the problem. FYI,
   it was due to a misconfiguration in iThemes Security, not a rewrite of the strigs
   by TranslatePress.
 * Regards,
    Svetoslav
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16095768)
 * [@cmac500](https://wordpress.org/support/users/cmac500/) Great, thanks for updating
   me, can you share more detail about this issue? what you change in iThemes Security?
 *  Thread Starter [cmac500](https://wordpress.org/support/users/cmac500/)
 * (@cmac500)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16098699)
 * [@haseeb0001](https://wordpress.org/support/users/haseeb0001/)
 * In the plugin iThemes Security, various notifications (Security Digest, Site 
   Lockouts, Site Scan Results, etc.) can be enabled, and corresponding recipients
   can also be specified for them. We wanted to not receive a certain notification,
   but instead of turning it off, we removed all recipients. For this reason, the
   notification remained active, but no recipients were specified for it and the“
   Sent to” field was empty.
 * Thank you once again.
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16099700)
 * [@cmac500](https://wordpress.org/support/users/cmac500/) Great thank you so much.
 * We would appreciate a kind and honest review.
 * Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Problem using Mailgun integration with API key’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/problem-using-mailgun-integration-with-api-key/#post-16099700)
 * Status: resolved