discourse/spec/lib/email
Jake Goldsborough 9d96390181 Add logging for Net::SMTPError
Adds rescue block to catch all Net::SMTPError subclasses during email
delivery and log detailed error information for debugging purposes. The
error is re-raised to maintain existing retry behavior.

This provides visibility into all SMTP errors that aren't already
handled by the skip logic, including authentication failures, server
busy errors, and unknown responses. Existing skip behavior for fatal
and syntax errors is preserved.

Log output includes the specific error class (e.g. Net::SMTPUnknownError,
Net::SMTPAuthenticationError) and server response data when available.

Includes test coverage for error logging with and without server
response data.
2025-11-06 12:58:50 +00:00
..
authentication_results_spec.rb DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00
cleaner_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
email_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
message_builder_spec.rb FEATURE: disable outlooks reaction via email (#35674) 2025-10-29 16:25:19 +11:00
processor_spec.rb DEV: Incorrect site setting modifications in specs (#33708) 2025-07-19 01:36:51 +02:00
receiver_spec.rb FIX: Make system user fallback optional for category email (#35536) 2025-10-22 15:01:36 +08:00
renderer_spec.rb DEV: Reset DiscoursePluginRegistry after spec (#25369) 2024-01-22 08:51:36 -06:00
sender_spec.rb Add logging for Net::SMTPError 2025-11-06 12:58:50 +00:00
styles_spec.rb DEV: Preserve ids/classes in emails (#32084) 2025-03-31 20:58:45 +01:00