Outlook security "aprogram is trying to access.."

S

Steve Burr

Hi,

I am using word vba to automate sending an email with a hyperlink in the
body. When I added the coding to include the signature the security setting
is triggered. Code is below. Is there a workaround or solution I am missing?

Kind regard and many thanks

PS. I apologize to anyone who replied to the post in the general section. My
error.

Extract of code
'Create a new mailitem
Set oItem = oOutlookApp.CreateItem(olMailItem)
With oItem
oItem.To = ""
oItem.Subject = sDsp
oItem.Display
oItem.HTMLBody = "<a href='" & sHpl & "'>" & sDsp & "</a>" &
oItem.HTMLBody & vbCrLf
End With
 
J

JP

You mentioned the code that inserts the signature is triggering the
security prompt, could you post that portion of the code?


Thx,
JP
 
N

ND Pard

I had problems with MS Access VB when I tried to send an email through Outlook.

Fortunately, we have a SMTP server and I found a GREAT workaround at:

http://www.access-programmers.co.uk/forums/showthread.php?t=97854

I was able to copy and use (modify) the code posted by BCullenward.

Now I no longer receive Outlook Security Dialogue alerts and it works super
fast too.

Hope that helps a little. Good Luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top