Hi Daniel,

On Wednesday, 2007-01-31 15:31:06 +0100, Daniel Ulmer wrote:

> I am writing a C# program where I have to open the default mail client and
> attach a file. In the web are several rumours about the mailto: command
> taking an "attach" attribute or not. I tried a lot - it does not work.

It depends on what syntax the mail program understands, Mozilla based
clients use attachment=... in the mailto: URI, others need an --attach
or -a option.

> Is it possible to get this piece of code?

Take a look at the {OOoPath}/program/senddoc script. However, since you
mentioned C# I somewhat assume you're in the Windows world, then you
might need to get acquainted with MAPI.

  Eike

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't send personal mail to the [EMAIL PROTECTED] account, which I use 
for
 mailing lists only and don't read from outside Sun. Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to