Link data to a mail

Hi,
I want to add data to a mail.
Actually i do somethinks like that :
public MailManager(MailItem mailItem, bool searchLinks = false) {
    // get data in mail
    Regex trRegExp = new Regex("<tr\\b[^>]*>(.*?)</tr>");
    Regex hrefRegExp = new Regex("href=\"([\\w\\W]*)\">");
    Regex strongRegExp = new Regex("<strong>([\\w\\W]*)</strong>");
void _inspector_BeforeAutoSave(ref bool Cancel) {
    // Block save
void _inspector_Write(ref bool Cancel) {
    // Add data in mail
/// <summary>
/// Occur when an user send a mail
/// </summary>
/// <param name="Cancel">bool to block avoid mail to be send by the system</param>
public void send(ref bool Cancel) {
    if (SendTasks == null) {
        Cancel = true;
        SendTasks = Task.Factory.StartNew(() => {
            AddLink();
            ((_MailItem)_inspector).Send();
I put data on the body and retrieve them when the draft is open. But i get three problems. It's a bit slow not much but not expected for just context keeping code. It's too hard to maintain, my real function start to be very big to manage every case.
Last but not least, there are no correct way to handle auto Save.
If i were MS i've make somethinks to bind data to à local mail per add-in. Is there somethinks like that or a proper way to do this.
Thanks. 

Hello,
if (SendTasks == null) {
        Cancel = true;         SendTasks = Task.Factory.StartNew(() => {
            AddLink();
            ((_MailItem)_inspector).Send();
First of all, you shouldn't use any Outlook object model property or methods on secondary threads. Office applications uses the single-threaded apartments and doesn't support multithreading. All calls made on the secondary thread will be marshalled to the
primary one by Outlook automatically in the background. It will slow down the performance may introduce other issues in previous Outlook versions.
Why do you need to re-send the item anew and not add the required data in the event handler?
For example, you may consider handling the
ItemSend event of the Application class which is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before
the inspector is closed, but after the user clicks the Send button) or when the Send method
for an Outlook item, such as MailItem,
is used in a program.

Similar Messages

  • 148 skype accounts linked to my e-mail address

    I've recently received a "thank you for changing your Skype e-mail address" into my inbox. I never used Skype, so I didn't agree to any terms&conditions. There are no admin contact details on Skypes website, so I log into the "change password" to get the password changing token and then remove this account myself. I just didn't expect to see 148 accounts linked to my e-mail.
    I've tried to send an e-mail to support via the form, but of course it doesnt't work either.
    Any hints? I will remove the accounts one by one manually if there is no other way. If it contains any personal data I shall post them in this feed.

    Hi, Del148acc, and welcome to the Community,
    We here in the Community are not authorized to access Skype accountholder data - please contact Skype customer service immediately.  If you cannot get through, or do not wish to set up a Skype account in order to contact Skype Customer Service, send a detailed report to Skype via e-mail: [email protected]
    Here is another link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    You will need to proceed through each step, one at a time. Sign on to the Skype website as requested. Choose the subject and topic which most closely matches the item you need assistance with. Then, continue past Step 2 of the instruction where several articles from the FAQ library will appear for you to review, and proceed to Step 3, Continue Support Request (the blue "button" appears at the lower right corner of the website page). You may also skip through Step 4 where you will be referred back here to the Community; no need to do this as the Community is where you started. When you complete the webform and click Submit, your information is relayed to Skype and you will receive a reply via e-mail.
    I also strongly recommend changing the password to your e-mail address account as soon as possible, if you have not already done so.  You may also wish to contact your e-mail account's customer helpdesk to report this incident to them, as well.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • I have lost my iphone4 and i guess the theft have already clear up the data include my mails and so on. what can i do? i use the iphone only 2months and i dont have any icloud or mobileme acc. how apple can help me?

    i have lost my iphone4 and i guess the theft have already clear up the data include my mails and so on. what can i do? i use the iphone only 2months and i dont have any icloud or mobileme acc. how apple can help me?

    Apple can't/won't help you:
    Reporting a lost or stolen Apple product - http://support.apple.com/kb/ht2526 - "... Apple does not have a process to track or flag lost or stolen product..."
    Texas Mac Man links on lost/stolen i-devices - https://discussions.apple.com/message/18781718
    Contact the police about the theft.  Change passwords on any accounts used with the device.  Contact the carrier about discontinuing service and possibly blocking future contracts with the phone.  Shop for a new phone.

  • When I click on the + sign, I do not get another tab even though an additional tab WILL open if, for example, I click on a link in an e-mail or on a site.

    Before the latest upgrade, I could open a new tab by clicking on the + to the right of any open tabs. No more. Nothing happens. If I click on a link in an e-mail or on a website, however, a new tab will open. For example, if I get an e-mail from Facebook that says someone has posted and I click the link, I will get a new tab opened and Facebook will be there. Then I have both tabs open and can navigate on either with no problem. If I then click on the + sign, nothing at all happens. I am perfectly able to open Safari with Firefox running, and I can get multiple tabs going there with no effect on Firefox. That is, I can go back and forth.
    I am grateful for any help! Thank you.

    Extensions
    Produtools Manuals 2.1 Community Toolbar 3.21.0.1 ({b2bf7b3f-bf0b-4c48-aec6-f92c51be63e1})
    Open the Add-ons Manager by
    Pressing the '''Alt''' or '''F10''' key to bring up the tool bar.
    Followed by; '''Tools > Add-ons.'''
    Hot key; '''<Control> ''(Mac: <Command>)'' <Shift> A)'''
    On the left side of the page, select Extensions.

  • In FF 34.0.5 I use to be able to click on a link within an e-mail and the link would open in a new tab; it now opens in the same tab; how can i change it back?

    I'm using FF 34.0.5 (I like it). I use to be able to right click on a link, within an e-mail, and the link would open in a new tab. Now when I click on the link it opens in the same tab replacing my e-mail.
    Example - a friend sends me an e-mail containing a link to a web site he thinks I'd like. I click on the link and go to the web site and then go back to the e-mail tab and reply to him. Now, when clicking that link, my e-mail disappears and is replaced by the new site.
    How can I fix this? When this happened once before I was told to change the 'value' for a specific 'preference name' through the about:config page.
    Can anyone help jog my memory?
    Thanks!

    Is this about clicking a link in an external program?
    You can check this pref on the about:config page for external links.
    * browser.link.open_newwindow.override.external (-1)
    If this pref has the default value -1 then browser.link.open_newwindow is used.
    * http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • How to create a linked data source with document libraries based on the same template?

    I use SharePoint Foundation 2013, SP Designer and Visual Studio 2013 to my needs. But there are several things which i don't get.
    I have a number of libraries which use the same template. I want to create a linked data source, that would contain them all, and if I add a library based on this template, the library would be added to the data sorce. Is it possible?
    I tried creating linked data souces, but the view that it brings by default is limited(no sorting, etc.). How can it be modified?

    I am planning to do my project on Linux with J2EE,Oracle technologies.You don't need to set up a DSN. Just use a JDBC connect string such as jdbc:oracle:thin:@localhost:1521:xe
    ~Jer

  • Can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    The genius bar technicians can check your MBP for possible hardware problems and specific software issues that you may have.  The diagnosis will be free.  Any extensive repairs will not be free.
    If you have minor software problems, you essentially will have to deal with them yourself.  Examine these two comprehensive documents for possible problem definition and solutions.  If you encounter problems that you are unable to cope with, start a new discussion and there will be persons willing to assist you in solving them.
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • How can I link data in two components in a BI Publisher report?

    Hi,
    If possible, I would like to make a BI Publisher (11g) report build as a pivot table next to an ordinary table, where data in each row in the two tables are linked to each other. E.g. if Customer A is shown in first row in the ordinary table, it should also be in the first row of the pivot table etc.
    Any filtering and sorting defined in the ordinary table to have effect in the pivot table.
    I would like to have a Top-10 filter on my data set, but that is not possible in a pivot table. That's why I somehow need to link the two components to each other.
    I have tried to do this by linking data sets in the Data Model, but that doesn't seem to work.
    Does anyone know if this is possible at all?
    Thanks,
    Henning

    Hi BIPuser,
    Thanks for a quick response.
    A useful link, but not really what I was looking for.
    I would like a pivot table to be related to whatever is shown in an ordinary data table. I have not been able to do that and maybe it isn't possible. In the link you sent me, you also see that any filtering made in the lower table doesn't affect the upper graphs (at the end of the video).
    Another way to solve my problem would be to replicate the filtering in the pivot table based on the filtering in the ordinary table. But for some reason Top/Bottom filtering is disabled in pivot tables. Do you is there is another way to use a top-10 filter in a pivot table?
    Thanks,
    Henning

  • Is there a way to control where a web page opens on my desktop when I click on a link in my email (Mail)?

    So while I'm reading my emails, I get a lot of Twitter notifications. I like to just click on the Twitter link & keep on reading mail until I get to the end. But sometimes the Twitter web page opens right over the top of my Mail page. It's not a big deal, but I get a lot of these, so over the course of time it's a big waste of time to keep moving the web pages over to keep reading my emails.
    Is there a way for me to determine where on my desktop the new web pages open when I click on links?

    Is there a way for me to determine where on my desktop the new web pages open when I click on links?
    Not sure if that can be done but you can press the Expose   key which will show all open windows.

  • Linking data from PDF form into Indesign CS6

    Hello all,
    I'll be working on a magazine which has a large section of day camps technical descriptions :
    name, contact info, location, short introduction text, activities icons (they have to choose up to 5 icons from a total of 12)
    Is it possible to link data from a fillable PDF into predetermined and prestyled text boxes in Indesign CS6?
    Would it be necessary to export in an Excel sheet prior?
    What would be the best trick in order for the icons to place themselves automatically, if possible?
    Thanks in advance

    When placing a PDF into InDesign, it's a flat piece of art for each page included. There's no way to manipulate form fields or work with links or anything like that.
    The data from the form would have to be collected and converted into an Excel file for placing into InDesign. (Collecting data from PDF forms and converting the Excel format can be done in Acrobat Pro.)

  • How do i open winmail.dat attachments in mail

    How do i open winmail.dat attachments in mail ?

    Having problems with Winmail.dat attachments?  This is really Windows problem but their hubris will not allow them to admit it. 
    Windows does have a global fix for this problem but it is not a general patch - in their KB there is a fix for Exchange servers which cause the winmail.dat problem but most users don't know about it or have it implemented. 
    http://support.microsoft.com/kb/138053http://
    Here is a solution that Apple users can get for $30.  An Austrian program and APP called Letter Opener http://www.creativeinaustria.com/http:// is the solution to seamlessly opening Winmail.dat files. 

  • Send a link in the Workflow mail

    Hi Experts,
    I am working on a requirement where I need that when ever I am sending a Mail to the Outlook, in the mail body I should be able to send a Link and when the User opens that Mail, He should be able to traverse from that Link.
    I am sending this mail through Workflows.
    I have tried typing Link text in the mail bosy and copy-paste the Actual Links, But the issue is after Copy-paste or writing links It does not remains a Link, It becomes a Simple text.
    Can anybody suggest any other Approach for this..?
    With Best Regards,
    Kanika

    Hi Avinash,
    Thanx for the Reply. But that Approach is not working.
    i am using Function Module "SO_NEW_DOCUMENT_SEND_API1" and I am giving the document type as 'HTM' but still i am unable to see that link
    any pointers would be highly appreciated.
    With Best Regards,
    Kanika
    Edited by: kanika chopra on Nov 26, 2008 10:28 AM

  • I used to send a link from safari using mail. Suddenly i cannot do this anymore.I have checked all the details but nothing will work

    I have always managed to send  link from safari using mail Suddenly I no longer can do this and mail just sits with the message in outbox. I changed nothing and all the settings look the same. Very frustrating please can anyone help. I use an aol account with outgoing imap and incoming smtp port 587 with no check in ssl box. AOL will not help, and apple are not interested either. I find it frustrating when things that were working suddenly dont for no rason. I am running OSX 10.6.8 Thanks Tracy

    http://support.mozilla.com/en-US/kb/Managing+file+types
    Don't set Firefox for '''mailto'''. <br />
    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • Linking data from Excel 2007to Visio 2010

    Hi Visio Experts,
    I have a Visio diagram a warehouse. The diagram shows the area of the warehouse where there are shelves and within each shelf is stored a certain product and the number of items. I am trying to link the data from an Excel spreadsheet which
    has three columns, which are the shelf number, the product, and the quantity. I have used the tutorials to link, but it does not refresh the data when the source information changes, which is very frustrating. Also, since the data is relatively large (100
    rows) is there a way of linking to the right drawing box without manually dragging to each box?
    Please make yours suggestions into really clear steps to help me with this problem.
    Thank you,
    Visio Rookie

    Hi,
    You can have some changes appear either manually or automatically in the Visio drawing when making changes to the data source.
    First you have linked data to a Visio drawing, there is a live connection between the two files. After making changes to Excel spreadsheet, switch to Visio 2010, then click Data > Refresh All. As an alternative, you can also right-click in the External
    Data window and click Refresh Data.
    I follow these steps mentioned in this article, and it works fine.
    http://tutorial.programming4.us/windows_7/Microsoft-Visio-2010---Refreshing-All-Data-in-Linked-Diagrams.aspx
    For more detail information:
    http://office.microsoft.com/en-001/visio-help/refresh-imported-data-HA010014271.aspx

  • Possible to configure data detection in Mail?

    The automatic data detection to make calendar events from mail messages would be great if it had been able to detect more date formats and languages then it does currently. As for messages in norwegian, it detects calendar data in text in just a few cases, and even very common date and time formats are not supported.
    I guess this little regionalization issue is a candidate for an update later on, but I was just wondering if anyone has discovered a way to configure the data detection.

    I would also like to know how to configure data detection in Mail. It is an amazing feature, I don't have a regionalization issue, but when it creates an ics event and puts it into iCal, you cannot edit it. I goes into whichever calendar you have listed as your first selection - so in my case, a work-related event is going into my personal calendar. There is no way to edit it to move it to another calendar or to even attach a note or alarm.

Maybe you are looking for