Re: How do I send from command line?

From: Howard Schwartz (theo@ccnet.com)
Date: Tue, 20 Jul 1999 02:01:00 -0400

Bob wrote:
> I finally got tired of this today and tracked it down to
> this registery key:
>
> REGEDIT4
>
> [HKEY_CLASSES_ROOT\mailto\shell\open\command]
> @="rundll32.exe url.dll,MailToProtocolHandler %l"
>
> If I change the @= line to read "\YARN\yarn.exe %l" then
> YARN does come up when I click on a mailto: link.
>
> What I need to know tho is how do I get that "%l", which is
> the email-address into yarn?
>
> I tried yarn -m, but it shows my inbox.
>
> I want yarn to open with sendmail dialog some how, with the
> To: address already filled in from the %l.
>
> Any one have any ideas?
>
> The @= thing will only open .exe files, .com and .bats don't
> work, as I tried them. I can write a program to translate
> the %l in a .exe but I still need to know how to get YARN to
> open in the Sendto dialog when there is messages in my
> INBOX.

A few ideas:

1) (the brute force method): When you see a mailto link on a webpage,
why not click the IE menu item ``view source''. Up comes and editor
and you cut the email address into the windows clipboard. Close the
edit window and click on the link. Up comes Yarn you say, displaying
your inbox. Hit ``M'' and paste in the e-mail address with the mouse
(i.e., all the windows versions support pasting from the clipboard to
a dos box -- with win 3.1 you need a freeware addon to do it).

Not elegant but gets the job done no?
2) Sounds like IE may only translate %l and pass it as an arg. to a
``MAPI compliant'' program? If it really will pass the email address
to a garden variety program, then compose your mail in an editor
window and save it to a file, say ``C:\tmp\send''.

Then try this:
@="perl.exe souppost /t%l /fC:\tmp\send"

Souppost is a perl script that takes an email ``to'' address and
filename (and whatever else you want in the header), makes it into
a Soup mail message, and adds it Yarn's reply.zip packet. Then you
are done. You can find the script at the YIRX website.

The only question is will ie really pass the email address to ANY
non MAPI program?