using Shell to MailTo with Attachment

R

rlh

Because of some office or windows update, the use of SendObject to
email an rtf file doesn't work.

So I was thinking of trying to use Shell to do the same thing.
Because my users use different applications for their email (outlook,
thunderbird, etc), I'm trying to find a generic way to open up an
email compose window.

I know that in Explorer I can open "mailto:[email protected]" and it
will open a compose window. However, I don't know how to specify
an attachment.

Does anyone know how I can use Shell to open an email compose window
and with an attachment?

TIA
 
M

Mark Andrews

You could use a SMTP component such as:
http://www.ostrosoft.com/OSSMTP6.asp

Here's some code to open a browser (if that helps):

Public Sub OpenWebPage(url As String)

Dim browser As Variant

Set browser = CreateObject("InternetExplorer.Application")
browser.Navigate (url)
browser.StatusBar = False
browser.Toolbar = False
browser.Visible = True
browser.Resizable = True
browser.AddressBar = False


End Sub

HTH,
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top