discourse/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.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
build_email_helper.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
cleaner.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
message_builder.rb FEATURE: disable outlooks reaction via email (#35674) 2025-10-29 16:25:19 +11:00
message_id_service.rb DEV: Remove old TODOs for message-id formats (#27196) 2024-05-28 13:57:09 +10:00
poller.rb FEATURE: Add hooks for email poller plugins (#21384) 2023-06-26 13:16:03 +08:00
processor.rb FIX: Prevent Email Processor errors when mail is blank or nil (#21292) 2023-05-18 10:39:37 +08:00
receiver.rb FIX: Make system user fallback optional for category email (#35536) 2025-10-22 15:01:36 +08:00
renderer.rb DEV: Add apply_modifier in Email::Renderer for html modifications (#25205) 2024-01-12 09:14:55 -06:00
sender.rb Add logging for Net::SMTPError 2025-11-06 12:58:50 +00:00
styles.rb UX: move quote and code dark mode styles to element selectors for emails (#35576) 2025-10-23 14:32:36 -04:00
validator.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00