PC Review


Reply
Thread Tools Rate Thread

Custom Mail Form pops up security dialog

 
 
Peter Karlström
Guest
Posts: n/a
 
      9th May 2005
Hi!

We are developing an integrated document storing process between Outlook
clients and different
target systems.
The target systems is databases or FileNet document-system.

We have developed a custom mail form, in wich we placed a button and som
VB-code.
The code that executes when the user presses the button is presented below.

The problem is the security warning that shows when the user clicks the
button.
The people who is going to use this system will save hundreds of mails each
week, and will not
have to push any more buttons than absolutely necessary.

We have tried to publish the form to Organisation and Personal folders with
no difference.

Is there a way around this without installing 3-rd party products that
automaticly clicks the Yes-button?

Thanks in advance for any input on this matter.

Regards
Peter Karlström
Midrange AB
Sweden

CODE FROM CUSTOM FORM
Sub cmdStore_Click()

'Creating the mailitem object connection
Set olApp = CreateObject("Outlook.Application")
Set olItem = OlApp.ActiveInspector.CurrentItem
Set olNameSpace = olApp.GetNameSpace("MAPI")

'save mail-data to som variables
fSendDate = olItem.CreationTime
fReceiveDate = olItem.ReceivedTime
fSubject = olItem.Subject
fBody = olItem.Body
fSender = olItem.SenderName
fSenderMail = GetFromAddress(olItem)
fSendRepl = olItem.ReplyRecipientNames
fMsgID = olItem.EntryID
fFolderID = olItem.Parent.StoreID
fRecievName = olNameSpace.CurrentUser
fuserName = olNameSpace.CurrentUser

'Create string with attachments separated by |
For each olAttach in olItem.Attachments
fAttachList = fAttachList & olAttach.filename & "|"
Next

'Create object-connection to special developed Visual Basic DLL
'The DLL shows a search windows where the user selects place to store
the documents.
set DM = CreateObject("DMail.Store")
resp = DM.DStart(0, 0, fSendDate, fReceiveDate, fSender, fSenderMail,
fSubject, fBody, fAttachList, fMsgID, fFolderID, fRecievName, fuserName)

'Reset used objects
Set olNameSpace = Nothing
Set olItem = Nothing
Set olApp = Nothing
Set DM = Nothing

End Sub

Function GetFromAddress(objMsg)

Set objSession = CreateObject("MAPI.Session")
objSession.Logon "", "", False, False
strEntryID = objMsg.EntryID
strStoreID = objMsg.Parent.StoreID
Set objCDOMsg = objSession.GetMessage(strEntryID, strStoreID)
On Error Resume Next
strAddress = objCDOMsg.Sender.Address
If Err = &H80070005 Then
MsgBox "Säkerhetsinställningarna i Outlook gör att du " & _
"måste svara Ja på frågan om åtkomst till E-postadresser " & _
"för att kunna erhålla avsändarens adress.", vbExclamation, "Hämta
E-postadress"
End If
GetFromAddress = strAddress
Set objCDOMsg = Nothing
objSession.Logoff
Set objSession = Nothing

End Function


 
Reply With Quote
 
 
 
 
Hollis D. Paul
Guest
Posts: n/a
 
      9th May 2005
In article <#(E-Mail Removed)>, Peter Karlström wrote:
> Is there a way around this without installing 3-rd party products that
> automaticly clicks the Yes-button?
>

Yes. You need to use Redemption objects, which will not trigger the
security warning. The can be found at Dmitry Streblechenko (MVP)'s site,
http://www.dimastr.com/

Hollis D. Paul [MVP - Outlook]
(E-Mail Removed)
Mukilteo, WA USA


 
Reply With Quote
 
=?iso-8859-1?Q?Peter_Karlstr=F6m?=
Guest
Posts: n/a
 
      10th May 2005
Thanks Hollis

I first tried with MAPIProps, but I had problems using it in the form script.

Redemption seems to work just fine.

Regards
Peter Karlström
Midrange AB
Sweden

"Hollis D. Paul" <(E-Mail Removed)> skrev i meddelandet news:(E-Mail Removed)...
> In article <#(E-Mail Removed)>, Peter Karlström wrote:
>> Is there a way around this without installing 3-rd party products that
>> automaticly clicks the Yes-button?
>>

> Yes. You need to use Redemption objects, which will not trigger the
> security warning. The can be found at Dmitry Streblechenko (MVP)'s site,
> http://www.dimastr.com/
>
> Hollis D. Paul [MVP - Outlook]
> (E-Mail Removed)
> Mukilteo, WA USA
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to delete a form that pops up on all new mail messages? rouse33873 Microsoft Outlook Discussion 1 23rd Mar 2009 02:50 PM
e-mail security settings via custom form not being applied TMK Microsoft Outlook 0 8th Jul 2008 04:27 PM
https link pops up security warning dialog w/o a chance to continu =?Utf-8?B?bml0cm9rbGF1cw==?= Microsoft Powerpoint 5 11th Nov 2006 04:14 AM
Mini Problem: A custom mail-form create a custom task-form Christoph Sbach Microsoft Outlook Form Programming 4 5th Nov 2003 04:31 PM
how can i use built-in dialog icons in a custom dialog form? K. Shier Microsoft Dot NET Framework Forms 0 12th Aug 2003 08:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 AM.