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.
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.