Solved

Button for Outlook that attaches selected emails and sends message

Posted on 2006-11-03
3
134 Views
Last Modified: 2010-04-08
I work for a company that out-sources our anti-spam filters to a service that filters everything inbound.  We do not use the anti-spam options with Exchange 2003 or set any special configurations for our Outlook client's Junkmail filters.  Employees do turn on these filters to catch and report any spam messages that come through from the filtering service.  Our director has asked me to explore adding a button or command to Outlook that will:

On click:
1. attach each selected message in the junkmail folder to a blank email
2. keep count of number of emails being attached
3. write subject to email of “Spam (# of attachments)”
4. address email to spam reporting address
5. send email when last selected message is attached and items three and four are complete
6. delete reported emails

Is this possible?  I've been searching for examples or a place to start, but haven't found any that are close.  I've explored the vb editor in Outlook and I think it is possible for my session, but I'm not sure if a package can be made to install this feature to other Outlook instances.  Any pointers would be appreciated.

Thanks,
Q.
0
Comment
Question by:Quested
3 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 17874258
Greetings, Quested.

Yes, it is possible, but there's a hitch.  Sending a message via code is going to trigger Outlook's built-in security.  This will cause a dialog-box to pop up warning that an application is attempting to send on your behalf and asking for your permission to allow it to continue.  There are three ways around this.  One, write this as an Outlook add-in.  Add-ins have different security rules, but are also more difficult to create and debug.  Two, use Click-Yes (http://www.contextmagic.com/express-clickyes/).  This utility sits in the system tray and clicks the Yes button on Outlook's security dialog for you.  Three, use Outlook Redemption (http://www.dimastr.com/redemption).  Redemption is a component library that safely circumvents Outlook security.  An alternative is to not have the code send the message, but instead to display it onscreen and let the user click Send.

Cheers!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question