?
Solved

Button for Outlook that attaches selected emails and sends message

Posted on 2006-11-03
3
Medium Priority
?
137 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
Mailbox Overload?
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
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…
Suggested Courses

764 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