Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending E-mail with VB
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00814984
Message ID:
00815816
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform