Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending E-mail with VB
Message
 
To
01/08/2003 05:07:10
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00814984
Message ID:
00815816
Views:
9
Try something like this:
.Attachments.Add ( "C:\TempReports\ReportExport.pdf")
>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?
Al Williams

Anola MB, CANADA
Previous
Reply
Map
View

Click here to load this message in the networking platform