After Open event

  • Thread starter Thread starter Yahya Saad
  • Start date Start date
Y

Yahya Saad

Dear Sirs,

When calling the Item.SenderName property on the Open event, I am
getting the "A program is trying to automatically send e-mail on your
behalf. Do you want to allow this? If this is unexpected, it may be a virus
and you should choose "No"." pop up. But when I called the Item.SenderName
property on the beforedelete event it went fine. Therefore, how can I get
the Item.SenderName without invoking the pop up message and at the same time
I need it the first thing after the Item is open.

Thank you,
Yahya
 
Is this in form code or in a COM addin? When you get that prompt or if you
even do depends on what version of Outlook you are using, if a form is
published and how the code is structured.

Outlook 2003 will trust code in a published form or in a COM addin if all
Outlook objects are derived from the intrinsic Application object of a form
or from a COM addin's On_Connection event handler. Other versions take
differing approaches. You can also use Redemption
(www.dimastr.com/redemption) to avoid the security prompts completely for
any version of Outlook.
 
Back
Top