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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

e-mail with attachment automatically

Status
Not open for further replies.

sflau

Programmer
Oct 18, 2001
87
0
0
HK
I am using VB 6, and want to e-mail with attachment automatically, without any user control, I find that I can do it with OutLook by the following:

Set olMailMessage = olApp.CreateItem(olMailItem)

With olMailMessage
.To = pToAddress
.Subject = "Testing Subject"
.Body = "Testing Only"
.Attachments.Add (App.Path & "TESTING.TXT")
.Send
End With
Set olMailMessage = Nothing

But if the machine doesn't have OutLook, only have outlook express, how can I do the similar thing?

I have try MAPI Messages and "start mailto:XXXXX", but it will only provide a new message dialog. It doesn't match with my situation.

Please help, thank you.

 
Have a look at these.

thread222-553925
thread222-504286

You can search and check the faqs for other threads.

Thanks and Good Luck!

zemp
 
Try faq222-179.

Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top