Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Generic send file through the mail command?

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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

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…
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

766 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