Skip to content

Comments

Fix: parameterize SMTP config and standardize Send-PasswordExpiryNotification#11

Merged
leonardokr merged 1 commit intomainfrom
fix/issue-6-password-expiry-notification
Feb 18, 2026
Merged

Fix: parameterize SMTP config and standardize Send-PasswordExpiryNotification#11
leonardokr merged 1 commit intomainfrom
fix/issue-6-password-expiry-notification

Conversation

@leonardokr
Copy link
Owner

Summary

  • Convert hardcoded SMTP server, FromAddress, and SearchBase to mandatory parameters
  • Add [CmdletBinding(SupportsShouldProcess)] for consistency
  • Convert all parameters to PascalCase matching repository convention
  • Add new parameters with proper validation (ExpireInDays, TestRecipient, LogDirectory, Language)
  • Remove redundant Import-Module (handled by #Requires)
  • Remove unnecessary switch-to-bool intermediate variables

Closes #6

…fication

- Convert hardcoded SMTP server (x.x.x.x), FromAddress, and SearchBase
  to mandatory parameters
- Add CmdletBinding(SupportsShouldProcess) for consistency with other scripts
- Convert all parameters to PascalCase (SearchBase, TestMode, EnableLogging,
  etc.) matching repository convention
- Add new parameters: ExpireInDays, TestRecipient, LogDirectory, Language
  with proper validation
- Remove redundant Import-Module (already handled by #Requires)
- Remove unnecessary switch-to-bool intermediate variables
- Add Creation Date to .NOTES for consistency

Closes #6
@leonardokr leonardokr force-pushed the fix/issue-6-password-expiry-notification branch from 85a7f2a to 4b337b6 Compare February 18, 2026 22:26
@leonardokr leonardokr merged commit 9f5ffdc into main Feb 18, 2026
1 check passed
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.

Bug: SMTP server hardcoded as placeholder in Send-PasswordExpiryNotification.ps1

1 participant