Solved

Generic send file through the mail command?

Posted on 1997-03-05
1
249 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

943 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

4 Experts available now in Live!

Get 1:1 Help Now