Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • How could you set a specific time for it , example using the code above - send an email at 4:00 pm for example Commented Jun 12, 2019 at 19:56
  • 9
    FYI this command is obsolete because it cannot guarantee secure connections. See this page for more information: learn.microsoft.com/en-us/powershell/module/… Commented Jul 1, 2020 at 0:42
  • Thank you. Although Send-MailMessage is obsolete, i still run it in Windows 10. This is the command I used to send from an outlook email to another. Send-MailMessage -To [email protected] -from [email protected] -Subject 'hi' -SmtpServer smtp.office365.com -UseSsl -Credential MyWindowLoginAccount Commented Feb 2 at 18:37