hmm ... guess that depends on what you're prepared to put up with. CDONTS is
one option, though I'm unsure of how HTML is supported. There may also be
minimum system requirements.
Automating Outlook is another, if you're prepared to a) dismiss the dialog
asking if its OK for another app to access the program, b) ensure Outlook is
installed on the sending machine, and c) like using CreateObject.
Using SMTP directly - not sure if that supports HTML directly -- the client
may need to be prepared to write the proper mime-type signatures to the
message.
ShellExecute can send large emails easily if the default client can be set
to outlook express, but I don't believe just adding the mime headers and
html to the text actually constitutes an HTML message using this option.
How about trying some of the mail programs/ocxs/dlls around, such as
Mabry's?
--
Randy Birch
MVP Visual Basic
www.mvps.org/vbnet/">
www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
"Steven Burn" <
ceo@PVT_it-mate.co.uk>wrote in message
: Any reccomendations on the best to use? (I don't want to use Shell or
: ShellExecute if I can help it).
:
: --
: Regards
:
: Steven Burn
: Ur I.T. Mate Group CEO
:
www.it-mate.co.uk
:
: Disclaimer:
: My advice is provided on an 'as-is' basis. Just because I tell you
: something, does not mean I am right.
:
:
: Randy Birch <rgb at mvps dot org>wrote in message
: news:
ucXZNQhhDHA.1340@tk2msftngp13.phx.gbl...
:>MAPI 1, used with VB, does not support HTML messages. You can place a
:>html-coded message into an email but it will be just that ... a
html-coded
:>message in an email. It will not appear in HTML since the required
headers
:>for HTML translation are not inserted by the client.
:>
:>--
:>
:>Randy Birch
:>MVP Visual Basic
:>
www.mvps.org/vbnet/">
www.mvps.org/vbnet/
:>Please respond only to the newsgroups so all can benefit.
:>
:>
:>"Steven Burn" <
ceo@PVT_it-mate.co.uk>wrote in message
:>news:#
3euZPehDHA.1192@TK2MSFTNGP12.phx.gbl...
:>: I'm using the code below to send newsletters via the MAPI control (I
:>: couldn't find the MAPI API). Now, it inserts plain text fine as the
:>standard
:>: body, but I want to insert the text into the actual "source" of the
:>e-mail.
:>: (thus allowing HTML e-mail aswell as plain text).
:>:
:>: Anyone have any ideas?.
:>:
:>: --Module code
:>: Dim i As Long
:>: For i = 0 To frmLeft.List1.ListCount - 1
:>: MDIForm1.MS.NewSession = True
:>: MDIForm1.MS.Action = 1
:>: MDIForm1.MM.SessionID = MDIForm1.MS.SessionID
:>: MDIForm1.MM.Compose
:>: MDIForm1.MM.MsgSubject = frmHF.txtTitle.Text & " #" &
:>: frmHF.txtNumber.Text
:>: MDIForm1.MM.MsgNoteText = frmBody.txtBody.Text
:>: MDIForm1.MM.RecipAddress = frmLeft.List1.List(i)
:>: MDIForm1.MM.Send
:>: MDIForm1.MS.Action = 2
:>: Next
:>: 'End Module code
:>:
:>: Btw, apologies if the code above looks a tad messy but, I want to get
it
:>: working before I bother tidying it up.
:>:
:>: --
:>: Regards
:>:
:>: Steven Burn
:>: Ur I.T. Mate Group CEO
:>:
www.it-mate.co.uk
:>:
:>: Disclaimer:
:>: My advice is provided on an 'as-is' basis. Just because I tell you
:>: something, does not mean I am right.
:>:
:>:
:>:
:>
:>
:
:
-