Support » Plugin: Post SMTP Mailer/Email Log » Incorrect Credentials

  • Resolved TrulineGraphics

    (@trulinegraphics)


    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)
  • Plugin Author yehudah

    (@yehudah)

    Hi,

    Did you install any plugin extensions?

    Thread Starter TrulineGraphics

    (@trulinegraphics)

    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.

    Plugin Author yehudah

    (@yehudah)

    can you paste the session transcript? from the plugin mail logs.

    remove private data before paste.

    Thread Starter TrulineGraphics

    (@trulinegraphics)

    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/
    

    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.

    Plugin Author yehudah

    (@yehudah)

    @darkallman
    I had issues with logger extension, did you use it?

    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

    (@trulinegraphics)

    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.

    Plugin Support Tim

    (@tneville)

    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

    (@roadsunknown)

    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.

    Plugin Support Tim

    (@tneville)

    Hi @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)
  • You must be logged in to reply to this topic.