Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a MSDOS batch file to insert subject heading in outlook

Status
Not open for further replies.

lowbk

Technical User
Nov 26, 2001
162
SG
HI, i need some advice on inserting a subject heading and pre-written message, via msdos batch file to outlook. (i am not spamming)

currently i have

Code:
outlook /c ipm.note /m email@email.com

but it doesn't insert subject heading or a pre-written message. i found mailto in microsoft support site that supposedly can perform the task. but how do i invoke mailto from a msdos batch file?

bk
 
If what you are trying to do is send email from DOS take a look at blat.

The answer is "42"
 
Hi, bk

AFAIK the only way to do what you want is to use a VBA macro, and invoke Outlook with the command line option to execute the macro. Then the macor can define all aspects of the email message (to: cc: bcc: subject body).

I have done this to enable sending email messages via Outlook from a legacy Clipper program. If you want the macro, let me know and I will post it here, or you can check out the VBA for Applications forum on this site.

However, if you don't need to use Outlook, then I agree completely with Franklin, Blat is very easy to use.

Jock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top