简体   繁体   English

我的 Window Machine 中没有安装 Outlook。 如何使用powershell发送邮件?

[英]I do not have outlook installed in my Window Machine. How to send mail using powershell?

I wrote one script using powershell for my work and I want to send the output every time the script run.我使用 powershell 为我的工作编写了一个脚本,我想在每次脚本运行时发送输出。 Problem is that I do not have Outlook installed on my Window machine.问题是我的 Window 机器上没有安装 Outlook。 Is there a way to send email using powershell without having outlook installed on Window Machine ?有没有办法使用 powershell 发送电子邮件而无需在 Window Machine 上安装 Outlook? I am using powershell v2 /v3 .我正在使用 powershell v2 /v3 。

you can use the send-mailmessage commandlet to send emails from a powershell script.您可以使用send-mailmessage commandlet 从 powershell 脚本发送电子邮件。 No need for a dedicated mail client.无需专用邮件客户端。

Technet Send-MailMessage Technet Send-MailMessage

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何在Windows 7计算机上安装mssqlcli。 - how i install mssqlcli on my windows 7 machine. 我的客户端计算机中有多个tnsnames.ora文件。 如何在环境变量中选择一个正确的文件? - I have multiple tnsnames.ora files in my client machine. How to select one correct file in environment variables? 如何在我的 Windows 机器上找到 JDK 的安装位置? - How do I find where JDK is installed on my windows machine? 如何使用 cmd 提示符检查我的设备上安装了多少个 Python 版本? - How do I check how many versions of Python I have installed on my device using the cmd prompt? 我必须从源代码安装Ruby才能在Windows计算机上安装Ruby 2.2.0和Rails 4.2.0吗? - Do I have to install Ruby from source to get Ruby 2.2.0 and Rails 4.2.0 installed on my windows machine? 我是否需要在我的机器上安装 Python 才能在虚拟环境中运行代码? - Do I need to have Python installed on my machine to run a code in a virtual environment? 我有几个Linux命令,我想在Windows机器上运行。 如何在Windows上从Python运行Linux命令 - I have a couple of Linux commands, which i want to run on windows machine. How to Run Linux commands from Python on Windows 我无法在我的 Windows 家用机器上安装 Docker Desktop 2.3.0.2。 我的机器是最新的 - I cannot install Docker Desktop 2.3.0.2 on my Windows Home machine. My machine is up to date 在Windows的Docker中,如何从我在机器上拥有的容器访问在我的开发机器上运行的webapi? - In Docker for windows, how do i access a webapi running on my dev machine from the container i aslo have on my machine? 安装了全局挂钩后,如何知道窗口何时开始移动以及何时停止移动? - With my global hook installed, how do I know when a window begins to move and when it stops moving?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM