-
Does anyone know how to attach a file and set the message text through the ShellExecute command. This is the Code I have so far:
Code:
Success = ShellExecute(0&, vbNullString, _
"mailto:[email protected]?subject=Subject Goes Here", _
vbNullString, "C:\", SW_SHOWNORMAL)
This command works fine, but I cant figure out what
parameters will set the message text and attachmet files.
Also is there a way to automate this so the user does not
see the default email client, it just sends the message out
Thanks in advance
-
Go to http://www.planetsource.com/vb and search for BuzMail - this is my e-mail object that will make your life easier.. you can attach files as you feel fit and send e-mails out - all without the user seeing the client.
And don't forget to rate the code as Excellent!!
-
Buzby,
Thanks, but that link did not work. It looks like
planetsource is down.
-
I've e-mailed both of you a copy of the files. Please let me know how you get on. (and rate it as EXCELLENT(!) on PlanetSourceCode!)
As far as I can tell
http://www.PlanetSourceCode.com/vb
should work..?!
Oh well.
-
That URL DOES work. But it's different to the one you gave before.
:rolleyes:
-
Oops - you're right - I missed the 'Code' part..
Sorry folks!
PS - LAURENS - I sent the file to your e-mail account but your over-excitable e-mail server told me it had VB script in it (suprise, suprise) and it blocked it (obviously a little bit scared of viruses and such like).
So you'll have to go to PlanetSourceCode..