Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Generic send file through the mail command?

Posted on 1997-03-05
1
Medium Priority
?
267 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
[X]
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
1 Comment
 
LVL 2

Accepted Solution

by:
Rincewind earned 300 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

636 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