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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MailTO: command line arguments under Win XP

Status
Not open for further replies.

hayo

MIS
Sep 14, 2001
56
DE
Hi !

I have a program, which submits an email request as follows:

mailto:Danny?cc=ZXINTGFII001?Subject=German%20telephone%20data?Body=Hello,%0Aplease find attached the latest data.%0ARegards%0AHayo?attach="\\pc0446\myData\mydata.txt"

This command is being sent to ShellExecute, and it works without problems on Windows NT 4.0.

Now I try to execute same command under Windows XP, and I get errors. When I try to execute the complete command, then an error like "something is wrong with your command line input. please check syntax".
When I cut off the attachment part:

mailto:Danny?cc=ZXINTGFII001?Subject=German%20telephone%20data?Body=Hello,%0Aplease find attached the latest german telephone data.%0ARegards%0AHayo

then I get no error, but everything after "Danny" (which is written correctly to "To:") is written to "CC:" in the Outlook mail display.

Whats wrong here ? can anybody help me please ?

Hayo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top