none
Hyperlinks are displaying as plain text in the mail accounts RRS feed

  • Question

  • Hi,

    I am working in an outlook look Plug-In, While sending the meeting invite, I am editing the hyperlinks addresses and sending it to the corresponding email Id. 

    Issue I am facing here is hyperlinks are displaying properly when the meeting invite is opened in outlook but when i try to open the mail in gmail it is displaying as a blue plain text. This is happening in yahoo, hotmail in any mail account it is displaying as plain text. If i try to open outlook it is opening fine.

    Below is the code used for changing the hyperlink addresses:

     Outlook.Inspector insp = appItem.GetInspector;
                Word.Document wordDoc = insp.WordEditor as Word.Document;

                for (int i = 1; i <= wordDoc.Hyperlinks.Count; i++)
                {
                    if (!string.IsNullOrEmpty(urlInfo.TalentRecordUrl) && wordDoc.Hyperlinks[i].Address.Contains(TrURl))
                    {
                        wordDoc.Hyperlinks[i].Address = urlInfo.TalentRecordUrl;
                    }
                    if (!string.IsNullOrEmpty(urlInfo.ReqUrl) && wordDoc.Hyperlinks[i].Address.Contains(reqURl))
                    {
                        wordDoc.Hyperlinks[i].Address = urlInfo.ReqUrl;
                    }
                }

    Please help me how to resolve this issue. Thanks in advance.

    Thanks,

    Gopi Santosh Boni

    Thursday, January 10, 2013 6:25 AM

Answers

  • yes, but please check raw html - how do they look? if whole address inside href? if yes, then outlook sends mails fine, problem is elsewhere.

    Thursday, January 10, 2013 2:21 PM

All replies

  • if you do not invoke your addres changing code then everything works ok?
    Thursday, January 10, 2013 7:51 AM
  • Hi Damian,

    Thank you for your response.

    But i need to change the hyperlink address dynamically. Is there any solution to resolve this issue?

    Thanks,

    Gopi Santosh Boni


    Gopi Santosh Boni

    Thursday, January 10, 2013 10:22 AM
  • first, please tell us what happens if you do not modify hyperlinks by your code - do they display as hyperlinks in gmail, yahoo, etc?
    Thursday, January 10, 2013 10:35 AM
  • Yes they are displaying fine.

    Gopi Santosh Boni

    Thursday, January 10, 2013 10:38 AM
  • sorry, Please ignore the above comment.I will reverify and update you


    Gopi Santosh Boni

    Thursday, January 10, 2013 10:44 AM
  • Its not working even i didnt do any modification to the hyperlinks through the code.

    I found one thing if hyperlink address length excedding 508 character length it is displaying as plain text.

    How to overcome this issue, if the hyperlink address length is exceeding 508 characters.


    Gopi Santosh Boni

    Thursday, January 10, 2013 11:16 AM
  • does this occur only for src attribute or also text value must exceed 508 characters?
    Thursday, January 10, 2013 11:37 AM
  • I am  using anchor tags for hyperlink. If href value exceeding 508 characters , I am facing this issue.

    Gopi Santosh Boni

    Thursday, January 10, 2013 11:48 AM
  • maybe there is some limit for this - but 508 characters makes a very long string, can't you generate shorter links?
    Thursday, January 10, 2013 11:56 AM
  • No, we cant change the length of the hyperlink.

    I am facing this issue when sending it through outlook only. If i am sending from normal mail account it is opening fine in gmail,yahoo.


    Gopi Santosh Boni

    Thursday, January 10, 2013 12:02 PM
  • then please verify in sentitems folder (using htmlbody) what happened to those <a> tags, are they still there but corrupted or completly removed and added simply as text?
    Thursday, January 10, 2013 12:10 PM
  • they are displaying fine in sent items. I am able to click and navigate those hyperlinks.

    Gopi Santosh Boni

    Thursday, January 10, 2013 12:57 PM
  • yes, but please check raw html - how do they look? if whole address inside href? if yes, then outlook sends mails fine, problem is elsewhere.

    Thursday, January 10, 2013 2:21 PM