6 min read
Nov 28, 2024

Unauthorized error when sending an email?

Here you can see how to send emails correctly.

Overview

The first thing is that in this article we assume that the unauthorized error refers to connecting to the SMTP server, not to the Dymo API fetch itself.

Sometimes authentication may fail because one or more credentials are not correct.

The first thing to do is to check that the credentials match.

  • Check that the SMTP domain that will be used to send the emails is correctly spelled.
  • Check that your SMTP server supports secure connections if you have the option set to true.
  • Regarding the user, keep in mind that it will depend on how the SMTP server is configured. You might need to provide just the username, the full email address, or possibly something else entirely.
  • Make sure the password is correct, and also verify that your SMTP provider/server does not use a different authentication system, as is the case with Gmail, for example.
  • Check that your country is allowed in the payment gateway.

If after checking and making sure that the credentials are correct, check the status of your SMTP server and your account, that the connections are not being refused.

Authentication exceptions

Gmail (Google)

Some email providers, such as Gmail (Google), do not allow direct connections from external applications using regular credentials.

If you use Gmail's SMTP server, you must generate and use an app password instead of your regular account password. This can be configured in the security section of your Google account.

Google App Passwords

Have more questions?

You can contact us to try to solve the problem you are experiencing - Contact.