A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Security Warning



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 20th 08, 03:22 PM posted to microsoft.public.outlook.program_vba
dkschoonover
external usenet poster
 
Posts: 6
Default Outlook Security Warning

I'm trying to send an auto-email from Access and get the perverbial "Allow
Access" prompt. I've looked at http://www.outlookcode.com/d/sec.htm as some
have suggested, but don't understand it (programming newbie here). Can
anyone help me wrap my head around this? (Note: I can't use CDOMail due to
security restrictions)

The Code I'm using (from another posting) is:
Sub SendMessageNew(Optional AttachmentPath)
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment

' Create the Outlook session.
Set objOutlook = CreateObject("Outlook.Application")

' Create the message.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)

With objOutlookMsg
' Add the To recipient(s) to the message.
Set objOutlookRecip = .Recipients.Add("[recipient]")
objOutlookRecip.Type = olTo

' Add the CC recipient(s) to the message.
Set objOutlookRecip = .Recipients.Add("[recipient]")
objOutlookRecip.Type = olCC

' Set the Subject, Body, and Importance of the message.
.Subject = "Test"
.HTMLBody = "I'm new at this"
.Importance = olImportanceHigh 'High importance

' Add attachments to the message.
If Not IsMissing("C:\test.txt") Then
Set objOutlookAttach = .Attachments.Add("C:\test.txt")
End If

' Resolve each Recipient's name.
For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
If Not objOutlookRecip.Resolve Then
objOutlookMsg.Display
End If
Next
.Send

End With
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
End Sub
Ads
  #2  
Old August 20th 08, 04:49 PM posted to microsoft.public.outlook.program_vba
JP[_3_]
external usenet poster
 
Posts: 201
Default Outlook Security Warning

What exactly is the problem? You don't want to trigger the security
prompt?

--JP

On Aug 20, 9:22*am, dkschoonover
wrote:
I'm trying to send an auto-email from Access and get the perverbial "Allow
Access" prompt. *I've looked athttp://www.outlookcode.com/d/sec.htmas some
have suggested, but don't understand it (programming newbie here). *Can
anyone help me wrap my head around this? *(Note: I can't use CDOMail due to
security restrictions)

The Code I'm using (from another posting) is:


  #3  
Old August 20th 08, 04:58 PM posted to microsoft.public.outlook.program_vba
dkschoonover
external usenet poster
 
Posts: 6
Default Outlook Security Warning

Correct

Darryl

"JP" wrote:

What exactly is the problem? You don't want to trigger the security
prompt?

--JP

On Aug 20, 9:22 am, dkschoonover
wrote:
I'm trying to send an auto-email from Access and get the perverbial "Allow
Access" prompt. I've looked athttp://www.outlookcode.com/d/sec.htmas some
have suggested, but don't understand it (programming newbie here). Can
anyone help me wrap my head around this? (Note: I can't use CDOMail due to
security restrictions)

The Code I'm using (from another posting) is:



  #4  
Old August 20th 08, 07:39 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook Security Warning

See http://www.outlookcode.com/article.aspx?id=52

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
Correct

Darryl

"JP" wrote:

What exactly is the problem? You don't want to trigger the security
prompt?

--JP

On Aug 20, 9:22 am, dkschoonover
wrote:
I'm trying to send an auto-email from Access and get the perverbial
"Allow
Access" prompt. I've looked athttp://www.outlookcode.com/d/sec.htmas
some
have suggested, but don't understand it (programming newbie here). Can
anyone help me wrap my head around this? (Note: I can't use CDOMail
due to
security restrictions)

The Code I'm using (from another posting) is:





  #5  
Old August 20th 08, 08:12 PM posted to microsoft.public.outlook.program_vba
dkschoonover
external usenet poster
 
Posts: 6
Default Outlook Security Warning

Forgive me for sounding like an idiot...but this is the same as the one I
listed in my original post and am very confused.

Can anyone offer any suggestions as to how this works into my existing code?
There are so many pieces in reading this article, I don't know what to put
where.

Darryl

"Dmitry Streblechenko" wrote:

See http://www.outlookcode.com/article.aspx?id=52

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
Correct

Darryl

"JP" wrote:

What exactly is the problem? You don't want to trigger the security
prompt?

--JP

On Aug 20, 9:22 am, dkschoonover
wrote:
I'm trying to send an auto-email from Access and get the perverbial
"Allow
Access" prompt. I've looked athttp://www.outlookcode.com/d/sec.htmas
some
have suggested, but don't understand it (programming newbie here). Can
anyone help me wrap my head around this? (Note: I can't use CDOMail
due to
security restrictions)

The Code I'm using (from another posting) is:





  #6  
Old August 20th 08, 11:01 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook Security Warning

You need to decide first what exactly you are going to use to work around
the security patch: rewrite your code in C++ or Delphi to use Extended MAPI,
use Redemption, switch to using staright SMTP, etc.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
Forgive me for sounding like an idiot...but this is the same as the one I
listed in my original post and am very confused.

Can anyone offer any suggestions as to how this works into my existing
code?
There are so many pieces in reading this article, I don't know what to put
where.

Darryl

"Dmitry Streblechenko" wrote:

See http://www.outlookcode.com/article.aspx?id=52

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
Correct

Darryl

"JP" wrote:

What exactly is the problem? You don't want to trigger the security
prompt?

--JP

On Aug 20, 9:22 am, dkschoonover
wrote:
I'm trying to send an auto-email from Access and get the perverbial
"Allow
Access" prompt. I've looked
athttp://www.outlookcode.com/d/sec.htmas
some
have suggested, but don't understand it (programming newbie here).
Can
anyone help me wrap my head around this? (Note: I can't use CDOMail
due to
security restrictions)

The Code I'm using (from another posting) is:







  #7  
Old August 20th 08, 11:28 PM posted to microsoft.public.outlook.program_vba
dkschoonover
external usenet poster
 
Posts: 6
Default Outlook Security Warning

The only Option our IT team will let me use is what I have listed in the code
below. I cannot install additional software, I know nothing about C++, and
straight SMTP is blocked when sending outside the domain.

Thank you for your continued suggestions. (the good news is that this is
all done in a test environment right now, so end users presently don't see
all my hacking at this)

Darryl

"Dmitry Streblechenko" wrote:

You need to decide first what exactly you are going to use to work around
the security patch: rewrite your code in C++ or Delphi to use Extended MAPI,
use Redemption, switch to using staright SMTP, etc.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
Forgive me for sounding like an idiot...but this is the same as the one I
listed in my original post and am very confused.

Can anyone offer any suggestions as to how this works into my existing
code?
There are so many pieces in reading this article, I don't know what to put
where.

Darryl

"Dmitry Streblechenko" wrote:

See http://www.outlookcode.com/article.aspx?id=52

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
Correct

Darryl

"JP" wrote:

What exactly is the problem? You don't want to trigger the security
prompt?

--JP

On Aug 20, 9:22 am, dkschoonover
wrote:
I'm trying to send an auto-email from Access and get the perverbial
"Allow
Access" prompt. I've looked
athttp://www.outlookcode.com/d/sec.htmas
some
have suggested, but don't understand it (programming newbie here).
Can
anyone help me wrap my head around this? (Note: I can't use CDOMail
due to
security restrictions)

The Code I'm using (from another posting) is:








  #8  
Old August 21st 08, 01:04 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook Security Warning

So you are saying that you are limited to using Outlook Object Model alone
from Access VBS?
Unless you switch to Outlook 2007 and make sure all antivirus apps are up to
date, there is no way to get rid of the security prompt.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
The only Option our IT team will let me use is what I have listed in the
code
below. I cannot install additional software, I know nothing about C++,
and
straight SMTP is blocked when sending outside the domain.

Thank you for your continued suggestions. (the good news is that this is
all done in a test environment right now, so end users presently don't see
all my hacking at this)

Darryl

"Dmitry Streblechenko" wrote:

You need to decide first what exactly you are going to use to work around
the security patch: rewrite your code in C++ or Delphi to use Extended
MAPI,
use Redemption, switch to using staright SMTP, etc.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in message
...
Forgive me for sounding like an idiot...but this is the same as the one
I
listed in my original post and am very confused.

Can anyone offer any suggestions as to how this works into my existing
code?
There are so many pieces in reading this article, I don't know what to
put
where.

Darryl

"Dmitry Streblechenko" wrote:

See http://www.outlookcode.com/article.aspx?id=52

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"dkschoonover" wrote in
message
...
Correct

Darryl

"JP" wrote:

What exactly is the problem? You don't want to trigger the security
prompt?

--JP

On Aug 20, 9:22 am, dkschoonover
wrote:
I'm trying to send an auto-email from Access and get the
perverbial
"Allow
Access" prompt. I've looked
athttp://www.outlookcode.com/d/sec.htmas
some
have suggested, but don't understand it (programming newbie
here).
Can
anyone help me wrap my head around this? (Note: I can't use
CDOMail
due to
security restrictions)

The Code I'm using (from another posting) is:










  #9  
Old August 21st 08, 04:59 AM posted to microsoft.public.outlook.program_vba
JP[_3_]
external usenet poster
 
Posts: 201
Default Outlook Security Warning

Agreed with Dimitry here, but maybe you could try something I heard
about that might work. Write your code in Outlook VBA, and then call
it from Access. I haven't tried it but I read it can get you around
the object model guard.

Good luck!
JP

On Aug 20, 5:28*pm, dkschoonover
wrote:
The only Option our IT team will let me use is what I have listed in the code
below. *I cannot install additional software, I know nothing about C++, and
straight SMTP is blocked when sending outside the domain.

Thank you for your continued suggestions. *(the good news is that this is
all done in a test environment right now, so end users presently don't see
all my hacking at this)

Darryl



"Dmitry Streblechenko" wrote:
You need to decide first what exactly you are going to use to work around
the security patch: rewrite your code in C++ or Delphi to use Extended MAPI,
use Redemption, switch to using staright SMTP, etc.


  #10  
Old August 21st 08, 03:17 PM posted to microsoft.public.outlook.program_vba
dkschoonover
external usenet poster
 
Posts: 6
Default Outlook Security Warning

How would I do that? Like I said before, I'm a newbie and rather clueless
when it comes to programming. (and if I'm understanding correctly, I would
have to implement that code for every user that would encounter this prompt
right?)

Thanks,
Darryl

"JP" wrote:

Agreed with Dimitry here, but maybe you could try something I heard
about that might work. Write your code in Outlook VBA, and then call
it from Access. I haven't tried it but I read it can get you around
the object model guard.

Good luck!
JP

On Aug 20, 5:28 pm, dkschoonover
wrote:
The only Option our IT team will let me use is what I have listed in the code
below. I cannot install additional software, I know nothing about C++, and
straight SMTP is blocked when sending outside the domain.

Thank you for your continued suggestions. (the good news is that this is
all done in a test environment right now, so end users presently don't see
all my hacking at this)

Darryl



"Dmitry Streblechenko" wrote:
You need to decide first what exactly you are going to use to work around
the security patch: rewrite your code in C++ or Delphi to use Extended MAPI,
use Redemption, switch to using staright SMTP, etc.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook redemption saveas generating security warning dkgb Outlook and VBA 1 December 28th 07 01:39 AM
Security Warning Loominator Outlook Express 2 December 4th 07 01:12 AM
How to suppress security warning? (Outlook 2002 ATL VC++ addin) furrbie Add-ins for Outlook 1 October 10th 07 03:44 PM
Avoid outlook security warning message. ashish taralekar Outlook - Using Forms 1 April 11th 07 06:06 PM
Outlook 2007: Disable Security Certificate Warning Chase Outlook - General Queries 8 June 7th 06 09:56 AM


All times are GMT +1. The time now is 08:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.