Home All Groups Group Topic Archive Search About
Author
2 Mar 2007 3:56 AM
Newman99
I'm starting the default email client and passing ?subject= and &body=.

Is it possible to also pass an attachment?

I've Googled but can't find an answer :(

Thanks,

Author
2 Mar 2007 2:10 PM
Steve Easton
"Newman99" <nospam@nospam.com> wrote in message
news:TfNFh.9407$KE2.3841@trnddc06...
> I'm starting the default email client and passing ?subject= and &body=.
>
> Is it possible to also pass an attachment?
>
> I've Googled but can't find an answer :(
>
> Thanks,

With windows 2000 and above, yes using Shellexecute

--
Steve Easton
Author
2 Mar 2007 6:04 PM
Newman99
Steve Easton wrote:
> "Newman99" <nospam@nospam.com> wrote in message
> news:TfNFh.9407$KE2.3841@trnddc06...
>> I'm starting the default email client and passing ?subject= and &body=.
>>
>> Is it possible to also pass an attachment?
>>
>> I've Googled but can't find an answer :(
>>
>> Thanks,
>
> With windows 2000 and above, yes using Shellexecute
>

Well I guess that'll teach me to be careful what I ask for.  I should
have asked how to do it.

More searching revealed this example.

http://vb-helper.com/howto_send_outlook_express_attachment.html

This example requires Outlook Express to be your default e-mail program.

I'm now assuming there is no keyword such as "atttachment=" to make this
happen.

Since I can't depend on OE being the default e-mail program, this isn't
a very workable solution.

Is sendkeys the only way to accomplish this?

Can someone provide an example that works for any e-mail program?

Thanks,
Author
2 Mar 2007 7:40 PM
Bob O`Bob
Newman99 wrote:
>
> Can someone provide an example that works for any e-mail program?
>


You probably shouldn't take my word for it.

But you're wasting your time.



    Bob
--
Author
2 Mar 2007 7:40 PM
mayayana
> >> I'm starting the default email client and passing ?subject= and &body=.
> >>
> >> Is it possible to also pass an attachment?
> >>
> >> I've Googled but can't find an answer :(
> >>

> Since I can't depend on OE being the default e-mail program, this isn't
> a very workable solution.
>
> Is sendkeys the only way to accomplish this?

  That's a hokey way to go about it. You might try
looking into CDO if you want it simple. CDO is fairly
easy to use, but I think it's only available on 2000/XP.
(I use Win98, which has none of the CDO stuff, so I
have a hard time remembering exactly what's supported
on which systems.)

   If you just do a search for CDO you should find what
you want.