使用“windows”按钮通过zimbra发送电子邮件命令提示符 [英] Send emails through zimbra using "windows" command prompt

查看:93
本文介绍了使用“windows”按钮通过zimbra发送电子邮件命令提示符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过zimbra使用Windows命令提示符发送电子邮件,没有任何第三方软件?

解决方案

我认为提出这个问题的最好地方是访问 Zimbra论坛 [ ^ ]。你有更高的机会让那些有过这种产品经验的人。


你不能没有任何第三方软件而是使用zimbra,因为你的zimbra已经是第三方了。 :-)



首先,不要使用命令提示符(CMD.EXE)。使用它是一个常见的错误。仅使用要启动的应用程序的文件名,使用第二个参数,即命令行。请参阅:

http://msdn.microsoft .com / zh-cn / library / system.diagnostics.process.start.aspx [ ^ ]。



如果你真的想要没有第三方,你应该没有第三方就做。例如,您可以使用:

http: //msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx [ ^ ]。



在任何情况下,你都会需要一些服务作为主系统的切入点。它可以是SMTP服务器,某些Web服务或邮件网站等。



-SA


< blockquote> Zimbra应公开您可以验证的SMTP端口,然后通过发送电子邮件。查看他们在传出smtp设置上的链接[ ^ ]了解如何配置它。



发送电子邮件方面从命令行,如果您的系统安装了powershell,您只需运行一个简单的脚本即可。查看从Windows命令行发送电子邮件以查看要运行的脚本,以及然后只需插入您的服务器详细信息,凭据,邮件主题,正文,地址,您就应该完成。


Is there any way to send emails through zimbra using windows command prompt, without any third party software?

解决方案

I think the best place to ask this question would be on the Zimbra forums[^]. You have a much higher chance of getting someone who has experience with this product there.


You cannot do it "without any third party software" but with zimbra, because your zimbra is already third party. :-)

First of all, don't use "command prompt" (CMD.EXE). Using it is a common mistake. Use just the file name of the application you want to start and, second parameter, it's command line. Please see:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx[^].

If you really want it without third party, you should do it without third party. For example, you can use this:
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx[^].

In all cases, you will need some service serving as an entry point into the main system. It could be SMTP server, some Web service or mail Web site, etc.

—SA


Zimbra should expose and SMTP port that you can authenticate to and then send emails via. Check out their link on outgoing smtp settings[^] to see how to get it configured.

In terms of sending an email from the command line, if your system has powershell installed you can just run a simple script. Check out sending emails from the windows command line to see what script to run, and then just plug in your server details, credentials, message subject, body, to and from address and you should be done.


这篇关于使用“windows”按钮通过zimbra发送电子邮件命令提示符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆