Skip to content

fix and feature enhancement for SMTP - #801

Merged
poppastring merged 2 commits into
mainfrom
fix/issue-635-email-format-exception
Apr 13, 2026
Merged

poppastring merged 2 commits into
mainfrom
fix/issue-635-email-format-exception

Conversation

@poppastring

Copy link
Copy Markdown
Owner

PR Classification

Bug fix and feature enhancement for SMTP email configuration and admin email testing.

PR Summary

This PR strengthens SMTP email validation, improves error handling, and adds a test email feature to the admin UI.

  • BlogManager.cs: Enforces stricter "From" email validation, ensures valid recipients, and throws clear exceptions for misconfiguration.
  • AdminController.cs: Adds /admin/testemail endpoint for sending test emails and displays success/error messages using TempData.
  • site.config: Updates SMTP defaults to use SendGrid with SSL enabled.
  • Settings.cshtml and _Admin_EmailNotifications.cshtml: Preserves SMTP password, displays error alerts, and provides a SendGrid setup tip in the UI.

Enhance email address validation for sending emails, ensuring a valid "From" and at least one recipient. Add an admin action to send test emails and display error feedback in the settings view. Preserve SMTP password if not changed. Update ComposeMail to prefer NotificationEMailAddress.
Updated site.config to use SendGrid SMTP settings with SSL enabled. Added an informational alert in _Admin_EmailNotifications.cshtml recommending SendGrid and providing setup instructions.
@poppastring
poppastring merged commit 47be0f6 into main Apr 13, 2026
3 checks passed
@poppastring
poppastring deleted the fix/issue-635-email-format-exception branch April 13, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant