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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , ,

Mail Through Outlook Without Security Prompt





 
 
Thread Tools Display Modes
  #1  
Old January 8th 07, 08:27 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Neil
external usenet poster
 
Posts: 43
Default Mail Through Outlook Without Security Prompt

When one creates mail in Outlook from another application using Automation,
one gets the Microsoft security prompt that they added. However, when one
creates mail by sending a link from Internet Explorer, one does not get the
security prompt; yet the signature used in Outlook appears in the message.

So the Internet Explorer Send Link by E-mail function accesses Outlook to
get the signature; yet there is no security prompt. How does it do that?

Thanks,

Neil


Ads
  #2  
Old January 8th 07, 08:41 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 817
Default Mail Through Outlook Without Security Prompt

Simply put - the code was written by Microsoft. Any e-mail functionality
"baked" into Windows or Internet Explorer can bypass the Outlook Object Model
guard because it is safe.

BTW, how is it that a signature is being inserted for you when you send a
link/page via IE? That's not even supposed to happen.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Neil" wrote:

When one creates mail in Outlook from another application using Automation,
one gets the Microsoft security prompt that they added. However, when one
creates mail by sending a link from Internet Explorer, one does not get the
security prompt; yet the signature used in Outlook appears in the message.

So the Internet Explorer Send Link by E-mail function accesses Outlook to
get the signature; yet there is no security prompt. How does it do that?

Thanks,

Neil



  #3  
Old January 9th 07, 04:34 AM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Neil
external usenet poster
 
Posts: 43
Default Mail Through Outlook Without Security Prompt

Actually, you're right, it doesn't happen when you use Send Link. It happens
when a web page (such as http://www.myers-services.com/aboutus/team.php)
contains e-mail links. That page contains MailTo: links about halfway down
the page. When you click on one of them, an e-mail message is generated with
the Outlook signature included. This happens whether you use Internet
Explorer or Firefox.

Seems unlikely that Microsoft would help the Firefox people out by giving
them an "in" past the Outlook security prompt. But yet when you click a
MailTo: link from within Firefox, you get an Outlook message with signature
included, without the security prompt. Wonder how they do that?

Thanks,

Neil


"Eric Legault [MVP - Outlook]" wrote in
message ...
Simply put - the code was written by Microsoft. Any e-mail functionality
"baked" into Windows or Internet Explorer can bypass the Outlook Object
Model
guard because it is safe.

BTW, how is it that a signature is being inserted for you when you send a
link/page via IE? That's not even supposed to happen.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Neil" wrote:

When one creates mail in Outlook from another application using
Automation,
one gets the Microsoft security prompt that they added. However, when one
creates mail by sending a link from Internet Explorer, one does not get
the
security prompt; yet the signature used in Outlook appears in the
message.

So the Internet Explorer Send Link by E-mail function accesses Outlook to
get the signature; yet there is no security prompt. How does it do that?

Thanks,

Neil







  #4  
Old January 9th 07, 06:15 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,596
Default Mail Through Outlook Without Security Prompt

Both IE and FireFox use the "mailto" protocol, which populates the message
recipients, subject and body, then displays the message. Outlook internally
handles all that.
You can do the same using OOM without prompts. Please show your code.
Keep in mind that accessing MailItem.Recipients collection will cause a
prompt, but you can set the MailItem.To/CC/BCC properties without a prompt
since only reading these properties is blocked.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
Actually, you're right, it doesn't happen when you use Send Link. It
happens
when a web page (such as http://www.myers-services.com/aboutus/team.php)
contains e-mail links. That page contains MailTo: links about halfway down
the page. When you click on one of them, an e-mail message is generated
with
the Outlook signature included. This happens whether you use Internet
Explorer or Firefox.

Seems unlikely that Microsoft would help the Firefox people out by giving
them an "in" past the Outlook security prompt. But yet when you click a
MailTo: link from within Firefox, you get an Outlook message with
signature
included, without the security prompt. Wonder how they do that?

Thanks,

Neil


"Eric Legault [MVP - Outlook]" wrote in
message ...
Simply put - the code was written by Microsoft. Any e-mail functionality
"baked" into Windows or Internet Explorer can bypass the Outlook Object
Model
guard because it is safe.

BTW, how is it that a signature is being inserted for you when you send a
link/page via IE? That's not even supposed to happen.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Neil" wrote:

When one creates mail in Outlook from another application using
Automation,
one gets the Microsoft security prompt that they added. However, when
one
creates mail by sending a link from Internet Explorer, one does not get
the
security prompt; yet the signature used in Outlook appears in the
message.

So the Internet Explorer Send Link by E-mail function accesses Outlook
to
get the signature; yet there is no security prompt. How does it do that?

Thanks,

Neil









  #5  
Old January 9th 07, 07:08 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Neil
external usenet poster
 
Posts: 43
Default Mail Through Outlook Without Security Prompt

In simplified format, my code is as follows:

Dim objOutlook As Object
Dim objOutlookMsg As Object
Dim objOutlookRecip As Object

Set objOutlook = GetOutlookObject() 'Routine that uses GetObject if
instance exists or CreateObject otherwise

Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(varTo)
objOutlookRecip.Type = olTO

For Each objOutlookRecip In .Recipients
If Not objOutlookRecip.Resolve Then
MsgBox "Could not add " & objOutlookRecip.Name & " to
the e-mail.", vbExclamation
End If
Next
.Display
End With

Thanks,

Neil

"Dmitry Streblechenko" wrote in message
...
Both IE and FireFox use the "mailto" protocol, which populates the message
recipients, subject and body, then displays the message. Outlook
internally handles all that.
You can do the same using OOM without prompts. Please show your code.
Keep in mind that accessing MailItem.Recipients collection will cause a
prompt, but you can set the MailItem.To/CC/BCC properties without a prompt
since only reading these properties is blocked.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
Actually, you're right, it doesn't happen when you use Send Link. It
happens
when a web page (such as http://www.myers-services.com/aboutus/team.php)
contains e-mail links. That page contains MailTo: links about halfway
down
the page. When you click on one of them, an e-mail message is generated
with
the Outlook signature included. This happens whether you use Internet
Explorer or Firefox.

Seems unlikely that Microsoft would help the Firefox people out by giving
them an "in" past the Outlook security prompt. But yet when you click a
MailTo: link from within Firefox, you get an Outlook message with
signature
included, without the security prompt. Wonder how they do that?

Thanks,

Neil


"Eric Legault [MVP - Outlook]" wrote in
message ...
Simply put - the code was written by Microsoft. Any e-mail
functionality
"baked" into Windows or Internet Explorer can bypass the Outlook Object
Model
guard because it is safe.

BTW, how is it that a signature is being inserted for you when you send
a
link/page via IE? That's not even supposed to happen.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Neil" wrote:

When one creates mail in Outlook from another application using
Automation,
one gets the Microsoft security prompt that they added. However, when
one
creates mail by sending a link from Internet Explorer, one does not get
the
security prompt; yet the signature used in Outlook appears in the
message.

So the Internet Explorer Send Link by E-mail function accesses Outlook
to
get the signature; yet there is no security prompt. How does it do
that?

Thanks,

Neil











  #6  
Old January 9th 07, 09:31 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,596
Default Mail Through Outlook Without Security Prompt

Replace the lines

Set objOutlookRecip = .Recipients.Add(varTo)
objOutlookRecip.Type = olTO

with

..To = varTo

You wown't be able to loop through teh recipients and resolvee them
explicitly, but since you end up displaying the message, Outlook will not
that anyway. Or give an error the user clicks Send.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
In simplified format, my code is as follows:

Dim objOutlook As Object
Dim objOutlookMsg As Object
Dim objOutlookRecip As Object

Set objOutlook = GetOutlookObject() 'Routine that uses GetObject if
instance exists or CreateObject otherwise

Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(varTo)
objOutlookRecip.Type = olTO

For Each objOutlookRecip In .Recipients
If Not objOutlookRecip.Resolve Then
MsgBox "Could not add " & objOutlookRecip.Name & " to
the e-mail.", vbExclamation
End If
Next
.Display
End With

Thanks,

Neil

"Dmitry Streblechenko" wrote in message
...
Both IE and FireFox use the "mailto" protocol, which populates the
message recipients, subject and body, then displays the message. Outlook
internally handles all that.
You can do the same using OOM without prompts. Please show your code.
Keep in mind that accessing MailItem.Recipients collection will cause a
prompt, but you can set the MailItem.To/CC/BCC properties without a
prompt since only reading these properties is blocked.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
Actually, you're right, it doesn't happen when you use Send Link. It
happens
when a web page (such as http://www.myers-services.com/aboutus/team.php)
contains e-mail links. That page contains MailTo: links about halfway
down
the page. When you click on one of them, an e-mail message is generated
with
the Outlook signature included. This happens whether you use Internet
Explorer or Firefox.

Seems unlikely that Microsoft would help the Firefox people out by
giving
them an "in" past the Outlook security prompt. But yet when you click a
MailTo: link from within Firefox, you get an Outlook message with
signature
included, without the security prompt. Wonder how they do that?

Thanks,

Neil


"Eric Legault [MVP - Outlook]" wrote in
message ...
Simply put - the code was written by Microsoft. Any e-mail
functionality
"baked" into Windows or Internet Explorer can bypass the Outlook Object
Model
guard because it is safe.

BTW, how is it that a signature is being inserted for you when you send
a
link/page via IE? That's not even supposed to happen.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Neil" wrote:

When one creates mail in Outlook from another application using
Automation,
one gets the Microsoft security prompt that they added. However, when
one
creates mail by sending a link from Internet Explorer, one does not
get
the
security prompt; yet the signature used in Outlook appears in the
message.

So the Internet Explorer Send Link by E-mail function accesses Outlook
to
get the signature; yet there is no security prompt. How does it do
that?

Thanks,

Neil













  #7  
Old January 10th 07, 04:36 AM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Neil
external usenet poster
 
Posts: 43
Default Mail Through Outlook Without Security Prompt

I'll try that. Thanks!

"Dmitry Streblechenko" wrote in message
...
Replace the lines

Set objOutlookRecip = .Recipients.Add(varTo)
objOutlookRecip.Type = olTO

with

.To = varTo

You wown't be able to loop through teh recipients and resolvee them
explicitly, but since you end up displaying the message, Outlook will not
that anyway. Or give an error the user clicks Send.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
In simplified format, my code is as follows:

Dim objOutlook As Object
Dim objOutlookMsg As Object
Dim objOutlookRecip As Object

Set objOutlook = GetOutlookObject() 'Routine that uses GetObject if
instance exists or CreateObject otherwise

Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(varTo)
objOutlookRecip.Type = olTO

For Each objOutlookRecip In .Recipients
If Not objOutlookRecip.Resolve Then
MsgBox "Could not add " & objOutlookRecip.Name & " to
the e-mail.", vbExclamation
End If
Next
.Display
End With

Thanks,

Neil

"Dmitry Streblechenko" wrote in message
...
Both IE and FireFox use the "mailto" protocol, which populates the
message recipients, subject and body, then displays the message. Outlook
internally handles all that.
You can do the same using OOM without prompts. Please show your code.
Keep in mind that accessing MailItem.Recipients collection will cause a
prompt, but you can set the MailItem.To/CC/BCC properties without a
prompt since only reading these properties is blocked.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
Actually, you're right, it doesn't happen when you use Send Link. It
happens
when a web page (such as
http://www.myers-services.com/aboutus/team.php)
contains e-mail links. That page contains MailTo: links about halfway
down
the page. When you click on one of them, an e-mail message is generated
with
the Outlook signature included. This happens whether you use Internet
Explorer or Firefox.

Seems unlikely that Microsoft would help the Firefox people out by
giving
them an "in" past the Outlook security prompt. But yet when you click a
MailTo: link from within Firefox, you get an Outlook message with
signature
included, without the security prompt. Wonder how they do that?

Thanks,

Neil


"Eric Legault [MVP - Outlook]" wrote in
message ...
Simply put - the code was written by Microsoft. Any e-mail
functionality
"baked" into Windows or Internet Explorer can bypass the Outlook
Object
Model
guard because it is safe.

BTW, how is it that a signature is being inserted for you when you
send a
link/page via IE? That's not even supposed to happen.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Neil" wrote:

When one creates mail in Outlook from another application using
Automation,
one gets the Microsoft security prompt that they added. However, when
one
creates mail by sending a link from Internet Explorer, one does not
get
the
security prompt; yet the signature used in Outlook appears in the
message.

So the Internet Explorer Send Link by E-mail function accesses
Outlook to
get the signature; yet there is no security prompt. How does it do
that?

Thanks,

Neil















  #8  
Old January 15th 07, 08:07 AM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_vba
Neil
external usenet poster
 
Posts: 43
Default Mail Through Outlook Without Security Prompt

Just a follow-up note: the code you gave worked great. It's surprising
because everything I've ever read or heard was that you can't get around the
Outlook security prompt. But this works great, and is all that's needed in
situations such as mine, where the To line is being populated from addresses
in a database, rather than from the Outlook address book. Thanks again!

Neil


"Dmitry Streblechenko" wrote in message
...
Replace the lines

Set objOutlookRecip = .Recipients.Add(varTo)
objOutlookRecip.Type = olTO

with

.To = varTo

You wown't be able to loop through teh recipients and resolvee them
explicitly, but since you end up displaying the message, Outlook will not
that anyway. Or give an error the user clicks Send.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
In simplified format, my code is as follows:

Dim objOutlook As Object
Dim objOutlookMsg As Object
Dim objOutlookRecip As Object

Set objOutlook = GetOutlookObject() 'Routine that uses GetObject if
instance exists or CreateObject otherwise

Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(varTo)
objOutlookRecip.Type = olTO

For Each objOutlookRecip In .Recipients
If Not objOutlookRecip.Resolve Then
MsgBox "Could not add " & objOutlookRecip.Name & " to
the e-mail.", vbExclamation
End If
Next
.Display
End With

Thanks,

Neil

"Dmitry Streblechenko" wrote in message
...
Both IE and FireFox use the "mailto" protocol, which populates the
message recipients, subject and body, then displays the message. Outlook
internally handles all that.
You can do the same using OOM without prompts. Please show your code.
Keep in mind that accessing MailItem.Recipients collection will cause a
prompt, but you can set the MailItem.To/CC/BCC properties without a
prompt since only reading these properties is blocked.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Neil" wrote in message
ink.net...
Actually, you're right, it doesn't happen when you use Send Link. It
happens
when a web page (such as
http://www.myers-services.com/aboutus/team.php)
contains e-mail links. That page contains MailTo: links about halfway
down
the page. When you click on one of them, an e-mail message is generated
with
the Outlook signature included. This happens whether you use Internet
Explorer or Firefox.

Seems unlikely that Microsoft would help the Firefox people out by
giving
them an "in" past the Outlook security prompt. But yet when you click a
MailTo: link from within Firefox, you get an Outlook message with
signature
included, without the security prompt. Wonder how they do that?

Thanks,

Neil


"Eric Legault [MVP - Outlook]" wrote in
message ...
Simply put - the code was written by Microsoft. Any e-mail
functionality
"baked" into Windows or Internet Explorer can bypass the Outlook
Object
Model
guard because it is safe.

BTW, how is it that a signature is being inserted for you when you
send a
link/page via IE? That's not even supposed to happen.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Neil" wrote:

When one creates mail in Outlook from another application using
Automation,
one gets the Microsoft security prompt that they added. However, when
one
creates mail by sending a link from Internet Explorer, one does not
get
the
security prompt; yet the signature used in Outlook appears in the
message.

So the Internet Explorer Send Link by E-mail function accesses
Outlook to
get the signature; yet there is no security prompt. How does it do
that?

Thanks,

Neil















 




Thread Tools
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
Send mail using MAPI and not get a prompt Sanjay_S Outlook and VBA 1 November 8th 06 03:46 PM
Reading the value of SentOnBehalfOfName of an unsent/unsaved message w/o security prompt Oliver Giesen Add-ins for Outlook 3 August 18th 06 03:36 PM
security prompt Rog Add-ins for Outlook 1 July 13th 06 06:46 AM
Error code returned when users say No to security prompt Long Nguyen Outlook - Using Forms 2 April 3rd 06 06:48 AM
Default Mail Client error prompt Steve Mc Outlook Express 6 January 18th 06 11:59 AM


All times are GMT +1. The time now is 02:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Best Credit Cards - Magazine Subscriptions - Credit Cards - Mobile Phones - Web directory