How i can send an email from my server to my EMAIL?

Leonardo Corea 0 Reputation points
2025-02-27T20:18:20.63+00:00

I have Windows Server, i want details about events of the system at least the date and hour of the shutdown of the server send to my email from CMD or some program.

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,591 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue-MSFT 40,266 Reputation points Microsoft External Staff
    2025-02-28T06:31:34.7866667+00:00

    Hi Leonardo Corea,

    You can try the PowerShell cmdlet Send-MailMessage which sends an email message.

    Please refer to the following link for details

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7.4

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.