Is it possible [Archive] - SpeedGuide.net Broadband Community

View Full Version : Is it possible


grantdn
02-21-05, 01:51 AM
Hi guys

Thanx for your replies.

Does anybody know if it is possible to send mail attachments in outlook express from the dos command line. I have a client that runs dos software of ours and i really need to get this to work.

Please advise

Grantdn

TonyT
02-21-05, 07:44 AM
apparantly not with OE, may have to use a 3rd party command line mailer

http://www.okinfoweb.com/moe/general/gen_047.htm

can be done with full blown Outlook that comes w/ ms office:

http://www.outlookcode.com/d/forms/skedrpt.htm
http://www.outlook-tips.net/howto/commandlines.htm

Can I use command-line switches to send a message with an attachment to a particular recipient?

Yes, Outlook includes several useful command-line switches, documented in Help and in the Microsoft article "OL2000: Additional Command-Line Switches" (http://support.microsoft.com/support/kb/articles/q197/1/80.asp). You can even combine some of them, as in the command

"C:\ program files\microsoft office\office\outlook.exe"
/c ipm.note /m user@domain.dom
/a "C:\my documents\my file.doc"
which sends an attachment to a specific recipient. You must enter the command on one line in a DOS prompt or command window, taking care to use quotation marks around any filenames that include spaces.

If use Outlook (not OE) you could even create predefined shortcuts (sort of templates) of people regularly sent to, and call them from a batch or cmd file. You could even include in the batch or cmd file a pause that allows the sender to type in the path of the attachment if were real creative!