Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I use outlook express instead of outlook?

Status
Not open for further replies.

newnoviceuser

Programmer
Jan 4, 2003
63
US
here is the code im using
Sub email()
Dim TextLine
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Open "c:\report.txt" For Input As #1


Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = "topdog@colla.com"
.Subject = "Testing"
While Not EOF(1)
Line Input #1, TextLine
.body = .body & TextLine & vbCrLf
Wend

.Send
End With
Close #1

End Sub

it works good except i have a problem with outlook i can not seem to fix on some of my computers and outlook express works on all of them. is there anyway i can get this to work with outlook express instead??
 
I suggest doing a search for Outlook Express Object Model.

There are several references that might be helpful to you, but I cannot post them because of the policies of this board.

Alan

 
newnoviceuser, isn't as easy as setting your default email server to Outlook express?
It worked for me using same code as I always used.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top