?
Solved

Generic send file through the mail command?

Posted on 1997-03-05
1
Medium Priority
?
265 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
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…
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…

752 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