Solved

Generic send file through the mail command?

Posted on 1997-03-05
1
248 Views
Last Modified: 2013-12-28
Is there a generic sendmail command that will send a file to a given location in Windows/NT 4, using Exchange 5 for the mail program.  I would like to do this through either a java application or applet.  Thanks.
0
Comment
Question by:sroberts
1 Comment
 
LVL 2

Accepted Solution

by:
Rincewind earned 150 total points
ID: 1776881
sendmail.exe will do the trick, you'll find it in the exchange resource kit and on TechNet. (Maybe it's an actual part of exchange 5, don't know that) Here's how to do this (from command line) and the drawbacks:

First, create a new exchange-client profile, using the properties of the inbox. Make sure this profile has at least a valid postbox assigned to it (microsoft exchange server properties)

Now, the command to send a file to somebody will look like this:
SENDMAIL -u profile name -p password -r recipient(s) [-c copy recipient(s)] [-s subject] [-m message] [-f file attachment(s)] [-v] [-?]

The drawbacks are:
This will not work from any random machine. The used profile MUST be installed on the local machine in order for sendmail to work.
And, maybe more serious, you'll be creating a security gap, because the password for the used profile (and thus the password for the used account) is plain visible when using this command from any readable file.

Hope this helps,
M.
0

Featured Post

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now