Outlook Express 6

  • Thread starter Ole Thomas Sløgedal
  • Start date
O

Ole Thomas Sløgedal

Hi!

Can anyone help me with this. I have Outlook Express 6 on the machine that
default from Windows XP and try to send mail as shown below. I think I
must check the Project References but can not find out the name to get this
to work. Can anyone help me? As it is now then stops at the first Set-line.

Ole T.

Dim oOApp As Outlook.Application
Dim oOMail As Outlook.MailItem

Set oOApp = CreateObject("Outlook.Application")
Set oOMail = oOApp.CreateItem(olMailItem)

With oOMail
..To = "(e-mail address removed)"
..Subject = "email subject"
..Body = "email message"
..Send
End With
 
V

Vince Averello

This newsgroup is for support of Outlook 97, 98, 2000, 2002, 2003 & 2007
from the Office family for Intel PCs. For Outlook Express (OE) support you
can try starting here:
http://support.microsoft.com/ph/2578

Another good source of Outlook Express info can be found here:
http://insideoe.tomsterdam.com/

The references you're using are for Outlook not OE. Not sure if OE has an
object model but you can check the reference above.
 
O

Ole Thomas Sløgedal

OK. Thank you very much. What is the best mailprogram for this. I have
Windows XP and VB 5.

Ole T.



"JP" <[email protected]> skrev i melding
You can't use Outlook VBA code in Outlook Express. Sorry.

--JP
 
J

JP

The only program you can use your code with is Outlook. Unless there's
some other VBA-aware mail program I don't know about.

--JP
 

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