Allora marco io ho sempre usata il controllo Microsoft Mapi Control 6.0 (lo trovi sotto componenti). Una volta aggiunto il componente ti compaiono due simboli sulla tool bar ( MAPISession & MAPIMessages) aggiungili entrambi sulla form!! Poi scrivi sto codice
codice:
With MAPISession1
.Username = "PIPPO"
.Password = "CICCIO"
.DownLoadMail = False
.SignOn
End With
With MAPIMessages1
.SessionID = MAPISession1.SessionID
.Compose
.RecipAddress = GWTBox1.Value
.MsgSubject = "MA CHE BELLA GIORNATA OGGI :-)"
.MsgNoteText = "DAI OGGI é VENERDI'"
.AttachmentIndex = MAPIMessages1.AttachmentCount
.AttachmentName = "PORNAZZO.DVX"
.AttachmentPathName = "C:\PORNAZZI\PORNAZZO.DVX"
.AttachmentPosition = MAPIMessages1.AttachmentIndex
.AttachmentType = 0
.AttachmentIndex = MAPIMessages1.AttachmentCount
.AttachmentName = "WebClinti.txt"
.AttachmentPathName = "C:\tmp\WebClienti.txt"
.AttachmentPosition = MAPIMessages1.AttachmentIndex
.AttachmentType = 0
.AttachmentIndex = MAPIMessages1.AttachmentCount
.AttachmentName = "WebLuogoDest.txt"
.AttachmentPathName = "C:\tmp\WebLuogoDest.txt"
.AttachmentPosition = MAPIMessages1.AttachmentIndex
.AttachmentType = 0
.Send False '
MAPISession1.SignOff
End With
End Sub
LA parte in rosso ti permetti di allegare un numero N° Di File
FAmmi sapere se ti funzia ciao :gren: