Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Getting the SMTP error number

Featured Replies

Is there any way to get the actual SMTP error number? 

The result of EmailSend is either 1 or ERROR

EmailLast Error gives a text description.

I'd really like the number when I'm trying to debug from the email server logs.

Hi Dave,

If there is an error that occurred on the SMTP side of things the plugin will return that error. For instance if a server requires TLS but it wasn't specified in the connect function you may see the error :

530 5.7.0 Must issue a STARTTLS command first. 

I am assuming you are asking about the "530 5.7.0" part of that error message. There is no way in the Email plugin to just get that code. The Email plugin will just relay back the error message that the server throws which usually includes the code and some kind of explanation of it. I suppose you could try and parse that out but it may be difficult to make dynamic. 

  • Author

The reason I asked was that the error message I got back when trying to solve my current issue was simply "Can't send command to SMTP host" which as far as I can find is not a SMTP error message.

But your explanation of how the plugin works clears it up for me. If it is a SMTP error returned I will see the code. I can live with that.

Thanks.

 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.