Paul,
This method doesn't actually send the email, it does exactly what you want
as I mentioned at the end because there is not a valid "to" address. Can't
help with the "generic shell" approach though sorry. 

Dave Crozier
 The secret to staying young is to live honestly, eat slowly, and to lie
about your age 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Newton
Sent: 13 November 2006 12:18
To: [email protected]
Subject: Re: Start default mail client with blank message and file
attachment

Dave

Tx for the reply - two points

1. I said in my mail that I do not want to send the mail from VFP just to
open the default mail client in compose mode

2. I would like a generic solution (using ShellExec maybe ?) that will work
regardless of what the user's default mail client happens to be


Dave Crozier wrote:
> Paul,
> Don't know if you are using Outlook and I know MAPI => BAD, SMTP Good, but
> if so then the following:
>
> oOutlook=Createobject("Outlook.Application")
>   #Define olMailItem                  0
>   oMail=oOutlook.CreateItem(olMailItem)
>   with oMail
>     *
>     .To=cSend_To
>     .Body=""
>     .Subject=mFileName
>     .Attachments.Add(mFileName)
>                                       
>     
>     .Save()
>     .Send()
> endwith
> * 
>
> Even though you send, Outlook will not send as it cannot resolve the TO
> address.
>
>   




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to