Troubleshooting Email Delivery Errors (SMTP)

Modified on Tue, 10 Mar at 11:41 AM

When you send a document (Invoice, Purchase Order, etc.) via email from Erplain after enabling SMTP, the system uses your own Email provider's server. If a delivery fails, Erplain will display an error message directly from that server.


This guide helps you identify if the issue is a setting in Erplain or if you need to contact your email service provider.

Reading the Error

Most email errors follow this pattern: Expected response code "250" but got code "XXX" with message "..."

  • 250 is the expected code, the sign that everything has gone well.
  • Any other code (535, 550, 421, etc.) is a rejection message from your email provider, not Erplain.


There are 4 categories of codes, each starting with a different number:

  • 2xx (success)
  • 3xx (redirection)
  • 4xx (temporary failure)
  • 5xx (permanent failure)


Identifying the Source

1/ Errors from the email Provider (External)

These errors mean Erplain is working correctly, but your email server rejected the request for another reason.

Error CodeMeaningExplanation
535Authentication FailedYour password or username is incorrect. If you have two-factor authentification enabled, you likely need an "App Password."
550 5.7.60Permission DeniedYou are trying to send as a different email than the one you logged in with. Check your "Send As" permissions.
554 / 550Spam / BlockedYour Email provider flagged the email as spam or the recipient's server blocked your IP address.
421 / 451Temporary FailureYour server is busy or down. Wait 15 minutes and try again.


Who to contact: Your internal IT department or your email provider (Microsoft 365, Google, etc.).


2/ Errors from Erplain Settings (Internal)

These errors usually happen during the initial setup or if settings were changed.

ErrorMeaningNecessary action
Connection TimeoutHostname/Port issueCheck that your SMTP Host (e.g., smtp.office365.com) and Port (usually 587) are correct.
Certificate ErrorEncryption mismatchEnsure your "Encryption" setting (SSL or TLS) matches what your provider requires.
Missing From FieldConfiguration errorEnsure your "Reply-to" or "From" email is filled out in Erplain's SMTP settings.


Who to contact: Erplain Support.

Relevant points of contact

Error messagePoint of contact
"Invalid Credentials" or "Authentication failed"Your IT / Email Provider
"Client does not have permissions to send as this sender"Your IT / Email Provider
"Connection could not be established" (Timeout)Erplain Support
"Message rejected" or "Spam detected"Your IT / Email Provider
"Relay access denied"Your IT / Email Provider



TIP

Using Microsoft 365? Most "550" and "535" errors are solved by creating an App Password or ensuring SMTP AUTH is enabled in your Microsoft Admin Center.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article