![]() |
| 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. |
|
|||||||
| Tags: mail, outlook, prompt, security, through, without |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |