Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending E-mail with VB
Message
De
30/07/2003 15:41:02
 
 
À
30/07/2003 12:45:43
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00814984
Message ID:
00815082
Vues:
13
David:

You must select the Outlook object from your VB Project references
Public sub SendMail(tSubject As String, tBody As String) 

'***********************
'Description: Uses the outlook object to create and send a mail using the passed parameters of tsubject,tbody and tTo
'***********************

Dim oItem As Outlook.MailItem
Dim oitems As Items

Set oOutlook = New Outlook.Application
Set oitems = objInbox.Items
Set oItem = oOutlook.CreateItem(olMailItem)
'
With oItem
    .To = tTo
    .Body = tBody
    .Subject = tSubject
    .send
End With
HTH

>> Wes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform