Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: email
Is there any way to send emails through zimbra using windows command prompt, without any third party software?
Posted 22-Jan-13 8:15am
Comments
Member 9716938 at 22-Jan-13 14:15pm
   
I have zimbra desktop installed on my computer..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You cannot do it "without any third party software" but with zimbra, because your zimbra is already third party. Smile | :)
 
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
  Permalink  
Comments
Member 9716938 at 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 at 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

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



Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 3 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100