|
Thanks for the explanation. I've been using the & in HTML forever and I never new. -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement Sent: Monday, February 06, 2006 5:58 PM To: Midrange Systems Technical Discussion Subject: RE: Start New Outlook Email From iSeries. > The part that I can't get to work is to pre-fill the subject. > mailto:someone@xxxxxxxxxxxxx&subject=test works when it is typed into > the browser address, but not when I use "Start > mailto:someone@xxxxxxxxxxxxx&subject=test" from dos or STRPCCMD. That's because the "&" character has a special purpose on a DOS prompt. But, frankly, you don't want to use "&" here, anyway. You want to use a question mark to separate the URI from it's parameters. The following works just fine for me: PGM STRPCO MONMSG IWS4010 STRPCCMD PCCMD('start mailto:someone@xxxxxxxxxxxxx?subject=test') + PAUSE(*NO) ENDPGM > I only get the email address but the subject is blank and a message > telling me that subject is not recognized as a valid internal or > external command. Yep, that's because the "&" character is being treated specially. So what you end up with is two commands... one that starts the mail client, and another that consists of "subject=test" which isn't a valid command. Change it to "?" and it should work (as above) > Maybe I missed this, but is there a reason you are not using the > emailing capabilities of the iSeries? Yep, that would be much, much smarter.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.