Outlook custom MailTip on MailItem - c#

Is it possible to modify an Outlook MailItem object to display a Mailtip with custom text? It doesn't look to be possible using the OOM, how about at the MAPI layer, i.e. using Redemption?
If not possible, is there some way to achieve a similar effect? (e.g. Ribbon XML, etc.)
mailtip example

The best you can do is add a category - it will be displayed in the same area.
The tip itself comes from Exchange server as a result of an EWS call. There is no way to display custom data there.

I am not sure if you are still interested in possibilities to display MailTips based on your own rules with your own texts: There is an Outlook add-in called MailScout allowing that (mailscout-app.com). Kind regards

Related

Secure storage for user data in Outlook

I need to store some secure data fom my Outlook addin. Is Outlook have sequre storage and how I can access to it by VSTO?
No, Outlook doesn't provide anything for storing the data securely. However, you may consider encrypting your data and then save it in Outlook. For example, you may choose to use a StorageItem for that. See How to: Store Data in a StorageItem for a Solution for more information. Also you may consider using a user property - see the UserProperties property of Outlook items.
In general, all possible options are not restricted by Outlook. You may consider your COM add-in as a regular .Net application so you can use any way you like for storing the data.

Outlook VSTO C# get all MailItems headers without iterate one by one and get property

Is there a way to get all headers of all MailItems in folder fast, without iteration and get property of each item,
I know there is folder GetTable method but it supports only first 255 chars of string, so it's not good for headers.
Nope. The Outlook object model doesn't provide anything for that. What is your final goal?
Note, you can run a secondary thread in Outlook where you can use a low-level code for gathering the required information. Extended MAPI supports multiuthreading. Or you may consider using any third-party wrappers around that API (for example, Redemption). Be aware, you shouldn't use OOM from secondary threads. Outlook will raise an exception if it detects such calls. See multi process in outlook addin for more informaiton.

Outlook VSTO Addin

I'm currently working on add in to outlook but face a problem my requirement is to add feature that is similar to spell checking (program will underline some of the text in real time). Is that even possible in vsto ? any material is appreciated i've searched for answer online - without any success
The integration you need would not be with VSTO or the Outlook Object Model, but rather mainly with the Word Object Model (WOM). Outlook users Word to render HTML formatted messages and provides access to the email as if it is a Word document, via the Inspector.WordEditor property which returns a Word.Document object.
So you can use WOM to format the body content as you see fit. However, there are no real-time events for hooking into changes of the message body as they occur. You will need to use either timers or low-level keyboard hooks to capture the changes that the user is making.

How to use Interop.Outlook to change print options

I would like to use the Interop.Outlook API to dynamically change the Print Options in outlook. For example I would like to change the Memo Style Page Setup to use Letter Size paper with a Landscape Orientation. How can I go about doing this?
I have looked at the Outlook documentation and I have not been able to find how to do this. Is this something that can only be done using the registry?
If so, would anyone know how I can accomplish this?
Thank you very much for your time.
Outlook Object Model provides no way to control any print settings. MailItem.PrintOut is all you get.
You might want to export the message (MailItem.saveAs), then import it in Word and use Word Object Model to print.

Good Library for Creating E-mail Templates with Merge Ability

I'm looking for a really good library/component/framework for creating e-mail templates for my web application.
We send out a number of e-mails on a regular basis:
Activate Your Account
Welcome
Thanks for Your Order
Etc.
I'd like to give the non-technical administrators of my web app a way to:
See the current e-mail template (HTML, WYSIWYG)
Make some minor modifications to copy, colors, etc.
Preview, Test, Save, and "deploy" a new version of the e-mail template.
The tool needs to support "merge" fields. For an example, see MailChimp.com. They allow users to create e-mail templates and then specify any number of fields like this:
|FIELD1|
|FIELD2|
Then, when sending an e-mail, the developer passes-in the appropriate info for each field.
An example:
Hi *|FIRSTNAME|*,
Thanks for signing up. You rule!
Best regards,
MyWebSite.com
Does anyone know of a tool like this that can plug into my ASP.NET / C# web app? I assume someone out their wrote a library/component/something that I can license.
Thanks!
Try this one. It's free and open source:
http://mailsystem.codeplex.com/
It includes some classes specifically designed for mail merging
What's nice is that you can use its mail merging capabilities and still use system.net.mail for sending the email to avoid breaking your code.
Here is another option.
http://ntemplates.codeplex.com/

Categories