AKAIK, the easiest way to do this is using the classic MAPI32 ActiveX
controls... yes it works with whatever e-mail is the default (both Outlook
and OE and any E-mail client that follows Windows Standards)... and you can
use it from .NET.
http://activex.microsoft.com/controls/vb6/MSMAPI32.CAB
Not sure if .NET 2.0 has the feature built-in.... but there should be no
shame in using COM components in .NET if there no .NET alternative....
Visual Studio IDE itself is a BIG *COM* application.
Example that I think does what you ask once you add a reference to
MSMAPI32.OCX:
MAPISession1.Do wnLoadMail = False
MAPISession1.Si gnOn
MAPISession1.Ne wSession = True
MAPIMessages1.S essionID = MAPISession1.Se ssionID
MAPIMessages1.C ompose
MAPIMessages1.R ecipAddress = "so*****@somewh ere.com"
MAPIMessages1.m sgSubject = "My subject"
MAPIMessages1.m sgNoteText = "bla bla bla"
'leave this out to keep the window open
MAPIMessages1.S end
MAPISession1.Si gnOff
MAPISession1.Ne wSession = False
--
-C. Moya
www.cmoya.com
"cj" <cj@nospam.nosp am> wrote in message
news:uN******** *****@TK2MSFTNG P03.phx.gbl...
That actually sends the email. That's impressive, but I just wanted to
launch the default email program, create a new message and fill in the
subject and add some text to the message body. Leave it for the person to
review, change and send.
Mike Lowery wrote: Here's an example:
http://www.ostrosoft.com/smtp_component/smtp_vbnet.asp
"cj" <cj@nospam.nosp am> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. How can I get a button in VB to send the contents of a text box via
email in a manner similar to the "Send To\Mail Recipient" functionality
that you can select via right clicking a file in Windows Explorer?
I want the user to click a button and it lunch the users default email
client and put the contents of a multi line text box in the body of the
message and the contents of another text box in the title box and be
sitting there read for them to type the recipient's name and hit send. I
assume this is easily doable but I don't know where to begin.