M
Marco
hello. I'm trying to send an e-mail with an attach directly to a e-mail
addrress without asking permission.
So, I'm using this code, which I found here in these forum:
Dim msg As Outlook.MailItem
strRecipients = Me![txtRecipients].Value
strSubject = Me![txtMessageSubject].Value
strBody = Me![txtMessageBody].Value
(This next line is the one that generates the error)
Set msg = appOutlook.CreateItem(olMailItem)
With msg
.To = "(e-mail address removed)" (this is my e-mail address here)
.BCC = strRecipients
.Subject = strSubject
.Body = strBody
.Display
.Send
End With
What is missing there in order that the window needing me to press Allow
disapear??
Regards,
Marco
addrress without asking permission.
So, I'm using this code, which I found here in these forum:
Dim msg As Outlook.MailItem
strRecipients = Me![txtRecipients].Value
strSubject = Me![txtMessageSubject].Value
strBody = Me![txtMessageBody].Value
(This next line is the one that generates the error)
Set msg = appOutlook.CreateItem(olMailItem)
With msg
.To = "(e-mail address removed)" (this is my e-mail address here)
.BCC = strRecipients
.Subject = strSubject
.Body = strBody
.Display
.Send
End With
What is missing there in order that the window needing me to press Allow
disapear??
Regards,
Marco