Ciao a tutti,
sto creando un modulo semplice semplice per creare e inviare Mail tramite VBA - Acces. Qui il test che sto costruendo.
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Dim oAccount As Outlook.Account
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = "nome.cognome@test.it"
.HTMLBody = "PROVA"
.Subject = "TEST"
.Attachments.Add ("U:\Document\TEST.pdf")
.OriginatorDeliveryReportRequested = True
.ReadReceiptRequested = True
(?) .SendUsingAccount
End With
Come devo settare .SendUsingAccount in modo tale da utilizzare un indirizzo di posta secondario?
Grazie mille
Corrado