|
Columns . . . : 1 71 Browse . SEU==> EMAIL FMT ** ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 *************** Beginning of data ************************************* 001.00 EMAIL: PGM 001.01 IWS4010: MONMSG MSGID(IWS4010) EXEC(GOTO CMDLBL(TAG3)) 002.00 STRPCO PCTA(*NO) 002.01 TAG3: STRPCCMD PCCMD('"start mailto:"') PAUSE(*NO) 003.00 ENDPGM ****************** End of data **************************************** -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of as400tech@xxxxxxxxxxx Sent: 07 February 2006 14:23 To: midrange-l@xxxxxxxxxxxx Subject: Re: Start New Outlook Email From iSeries. > message: 8 > date: Mon, 6 Feb 2006 17:57:49 -0600 (CST) > from: Scott Klement <midrange-l@xxxxxxxxxxxxxxxx> > 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. > Ordinarily, I would use the iSeries for email, but in this case it would require that the user maintain a cross reference database on the iSeries. And since the people that will be using this are not the most computer literate, I just figured it would be easier on him if I popped up a blank email so he could fill in what he wanted. Thanks, Terry Anderson -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/docs/quotes.html -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
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.