Title: Incorrect Credentials
Last modified: February 2, 2021

---

# Incorrect Credentials

 *  Resolved [TrulineGraphics](https://wordpress.org/support/users/trulinegraphics/)
 * (@trulinegraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/)
 * I have a Mailgun account and I’ve used the plugin to sync with other sites so
   I’m not sure why I’m getting this error, but all emails fail and the log shows
   an error of the credentials being wrong. Inside my mailgun I use the same API
   key for all sites and they’ve worked in the past. When your plugin says incorrect
   credentials, is it referring to the email sending from address and a password
   or is it saying the API is wrong? Any help on what this error means would help.
   Thanks in advance.

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

 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13989703)
 * Hi,
 * Did you install any plugin extensions?
 *  Thread Starter [TrulineGraphics](https://wordpress.org/support/users/trulinegraphics/)
 * (@trulinegraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13989789)
 * I did not, just the PostSMTP plugin. I used the API secret key Mailgun gives 
   me like I normally do. I setup all the MX, CNAME and subdomains per Mailgun’s
   instruction and their dashboard confirms everything is good on that side. Mailgun
   itself is a little confusing because their menus have API menus for each “domain”
   as well as the main account. I tried both API keys just for giggles, neither 
   worked.
 * For the record, the site is Divi based and I’m just using the Divi form. But 
   the errors are showing up just using the “Send a test” function from inside the
   PostSMTP plugin.
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13989795)
 * can you paste the session transcript? from the plugin mail logs.
 * remove private data before paste.
 *  Thread Starter [TrulineGraphics](https://wordpress.org/support/users/trulinegraphics/)
 * (@trulinegraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13989932)
 * I have removed the email addresses from the code below. This is the transcript
   from the test email that failed. It’s the same every time.
 *     ```
       https://api.mailgun.net:443
   
       Your credentials are incorrect.
   
       --Raw message follows--
   
       Array
       (
           [from] => SEND TO EMAIL REMOVED
           [to] => Array
               (
                   [0] => MY EMAIL REMOVED
               )
   
           [subject] => Postman SMTP Test (heyloumedia.com)
           [h:X-Mailer] => //wordpress.org/plugins/post-smtp/)
           [h:Content-Type] => multipart/alternative
           [h:Sender] => EMAIL REMOVED
           [cc] => 
           [bcc] => 
           [h:message-id] => acc6f83e31ce9e971a7674c32cec43c8@heyloumedia.com
           [text] => Hello!
   
       Sent by Postman 2.0.20 - https://wordpress.org/plugins/post-smtp/
       ```
   
 *  [darkallman](https://wordpress.org/support/users/darkallman/)
 * (@darkallman)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13990232)
 * Just for your info, when I updated to the latest plugin version, I had to re-
   enter my password in the settings to get it working.
 * When I rolled back, the same issue… I had to re-enter my credentials to get it
   working. There is a difference in how password is stored/used in the scripts.
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13990495)
 * [@darkallman](https://wordpress.org/support/users/darkallman/)
    I had issues 
   with logger extension, did you use it?
 *  [darkallman](https://wordpress.org/support/users/darkallman/)
 * (@darkallman)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13990551)
 * Yes, I had that enabled as well.
    I have a test environment which you could check
   out for testing. give me an email at randall [at] lievelabels [dot] nl Then I
   can give you access.
 *  Thread Starter [TrulineGraphics](https://wordpress.org/support/users/trulinegraphics/)
 * (@trulinegraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-13992759)
 * darkallman, for the password are you referring to the fallback email menu? I 
   know that screen in the settings has a username/password field but those are 
   blank on mine. I never setup the fallback email failure stuff up. Is that possible
   issue?
 * For my site I did a connectivity test and it does the following:
    api.mailgun.
   net:25 = Service Not Available api.mailgun.net:465 = Service Not Available api.
   mailgun.net:587 = Service Not Available Mailgun API – api.mailgun.net:443 – OPEN
 * Not sure if the lack of connection with the other ports are a problem? It seems
   like there’s definitely something missing. For credentials I don’t know what “
   password” I would need.
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-14010459)
 * Hi folks,
 * Just following up on this thread – could you confirm if you are still having 
   a problem, and if so what the problem is? Please also let us know if this issue
   is solved.
 * Thank you!
 * Kind Regards,
    Tim
 *  [roadsunknown](https://wordpress.org/support/users/roadsunknown/)
 * (@roadsunknown)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-14039147)
 * I have the same error, maybe the similar issue. When I create a staging copy 
   of a site on a different domain, the “Domain Name” in PostSMTP settings is changed
   automatically by PostSMTP rather than keeping the original value from production.
 * mg.mydomain.com (in Production)
    mg.staging.mydomain.com (in Staging after copy
   from Production)
 * As this is not a valid domain with my Mailgun account, I get the error “Your 
   credentials are incorrect.”
 * Why does SMTP automatically change the Domain Name, pulling from the Site Domain
   setting and adding the “mg.” (which isn’t the same for all domains)? Odd.
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-14045921)
 * Hi [@roadsunknown](https://wordpress.org/support/users/roadsunknown/),
 * I haven’t seen this myself – do you use any kind of app/plugin/server tool to
   create your staging site? I am wondering if that is seeing your domani and adding
   the ‘staging’ into the URL perhaps?
 * Kind Regards,
    Tim

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

The topic ‘Incorrect Credentials’ 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/)

 * 11 replies
 * 5 participants
 * Last reply from: [Tim](https://wordpress.org/support/users/tneville/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/incorrect-credentials/#post-14045921)
 * Status: resolved