> 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



This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.