Solved

Button for Outlook that attaches selected emails and sends message

Posted on 2006-11-03
3
136 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

690 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