Posts

Showing posts from October, 2025
PowerShell Script: Database Health Check Email PowerShell Script: Database Health Check Email # Mail Server information $SMTPServer = "smtp.gmail.com" $SMTPPort = "587" $UserName = "ramesh30.m@gmail.com" $Password = "Gmail application security password here" # Adding email addresses $to = "ramesh30.m@gmail.com" $from = "ramesh30.m@gmail.com" $cc = "rameshmamillapalli@outlook.com" $subject = "Database Report | $(Get-Date)" # HTML styling for report $head = @" <style> h1 { background-color: aqua; display: block; width: fit-content; margin-left:auto; margin-right:auto; font-size: 15px; } h2 { background-color: aqua; display: block; width: fit-content; margin-left:auto; margin-right:auto; padding:5px; } table { border-width:1px; border-style:double; border-color:beige; border-collapse:collapse; border:1px solid black; padding:5px 10px; margin-left:auto;...