Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending E-mail with VB
Message
From
01/08/2003 05:07:10
 
 
To
30/07/2003 15:41:02
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00814984
Message ID:
00815771
Views:
7
Hi.. Wesley .. I Interested .. but how to attach the file? ..
I met error message: "Could not complete the operation, one or more parameters value are invalid" Error code: -2147024809 (80070057) .. I used below code:

Private Sub MsOutlook(tto As String, tSubject As String, tAttach As String, tBody As String)
Dim oItem As Outlook.MailItem
Dim oOutlook As Outlook.Application
Set oOutlook = New Outlook.Application
'Set oitems = objInbox.Items
Set oItem = oOutlook.CreateItem(olMailItem)

With oItem
.To = tto
.Body = tBody
.Attachments = tAttach
.Subject = tSubject
.Send
End With
End Sub

am I missing something?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform