Automated Emailing through Outlook
I have 2 questions about the Createobject method of the Outlook application object:
1. When I insert text into the body of the email by using the ".Body" or ".HTMLBody" properties the text gets cut off after so many characters(not sure exactly how many). Does anyone know why and how to let an unlimited number of text go into body of the email?
2. Does anyone know how to avoid the security warning that comes with Outlook 2003 when accessing the ".Body" and ".HTMLBody" properties? Below is what I found on the help file regarding this type of security warning:
HTML Body Property Remarks:
Outlook blocks code that attempts to access the HTMLBody property for security reasons. If you run a third-party add-in, custom solution, or other program that uses the HTMLBody property in Office Outlook 2003, you may receive the following warning:
A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? If this is unexpected, it may be a virus and you should choose "No".
Body Property Remarks:
Microsoft Office Outlook 2003 inherits the Outlook 2002 object model guard behavior. In addition, it blocks code that attempts to access the Body property of various Outlook items. This allows users to verify that the program or add-in accessing the Body property of items is trustworthy, before they allow access to the contents of the items. Even though this leads to the display of security warnings in the existing COM add-ins that access the Body property of items, this will help prevent malicious code from running without the user being aware of it.
You can avoid the display of security warnings by deriving all objects, properties, and methods from the Application object passed in the OnConnection procedure of the add-in. Outlook trusts only the Application object passed in the OnConnection procedure of the add-in. If you create a new Application objectâ for example, by using the CreateObject methodâ that object and any of its subordinate objects, properties, and methods will not be trusted and the blocked properties and methods will throw security warnings.
Does anyone know how to use the OnConnection procedure or know of any 3rd party add-in software or of any method that will bypass this security warning?
thanks in advance,
Donrafeal
|