Click here to Skip to main content
15,887,962 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Is there any way to send emails through zimbra using windows command prompt, without any third party software?
Posted
Comments
Member 9716938 22-Jan-13 14:15pm    
I have zimbra desktop installed on my computer..

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.
 
Share this answer
 
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
 
Share this answer
 
Comments
Member 9716938 22-Jan-13 14:51pm    
my organisation has zimbra mail server, i just want to send a confirmation mail from a "batch" file when a ceratin operation completes.
Sergey Alexandrovich Kryukov 22-Jan-13 14:55pm    
I already answered! If you want batch (quite explainable, as you probably have one), use it. And you can even use the batch file name in your parameter of Process.Start.
—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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900