none
Add Attachment flag RRS feed

  • Question

  • Hello,

    the Add-in I develop add an html array that contain link to attachment store in a remote server. My problems is: I need outlook and Gmail (and others) to understand that tis mail have attachment.

    To do that I have try to add my embed picture use to represent my attachment as normal attachment. It worked on outlook (web or client), on Mail(Mail for 10) but on google the picture didn't show.

    An idea?

    Monday, November 16, 2015 2:58 AM

Answers

  • Hi Eugene,

    According to your description and reply, the issue is related to Gmail, I suggest that you should post it to Gmail forum.

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, November 17, 2015 2:42 AM
    Moderator

All replies

  • Hello Tom,

    What code exactly do you use?

    Monday, November 16, 2015 5:14 AM
  • I don't understand why you need it but:

    attachment = Data.Item.Attachments.Add(info.FullName, OlAttachmentType.olByValue); // this line make picture work on gmail web app attachment.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E", cidName); attachment.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x7FFE000B"false);



    • Edited by Aurelien312 Monday, November 16, 2015 7:55 AM
    Monday, November 16, 2015 7:53 AM
  • First of all, I'd recommend breaking the chain of property and method calls and declare them on separate lines of code. Thus, you will be able to release undelying COM objects in a timely manner. Use System.Runtime.InteropServices.Marshal.ReleaseComObject to release an Outlook object when you have finished using it.  Then set a variable to Nothing in Visual Basic (null in C#) to release the reference to the object. Read more about that in the Systematically Releasing Objects article.

    What HTML markup do you have? Did you correct the img tag according to the cid value?

    Monday, November 16, 2015 8:35 AM
  • /// Problems: Outlook don't display Attachment flag because it's only embed image attachment = Data.Item.Attachments.Add(info.FullName, OlAttachmentType.olByValue); attachment.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E", cidName); attachment.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x7FFE000B"false); /// Problems: Gmail don't display picture because there cid define (Work on outlook...) attachment = Data.Item.Attachments.Add(info.FullName, OlAttachmentType.olByValue); //attachment.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001E", cidName); attachment.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x7FFE000B"false); attachment = Data.Item.Attachments.Add(info.FullName, type);

    Monday, November 16, 2015 10:16 AM
  • What HTML markup do you have? Did you correct the img tag according to the cid value?

    Monday, November 16, 2015 11:19 AM
  • yes. I use this.

    src=\"cid:{cidName}\"
    

    Monday, November 16, 2015 12:52 PM
  • I am not sure that Gmail supports such images. 
    Monday, November 16, 2015 12:53 PM
  • Hi Eugene,

    According to your description and reply, the issue is related to Gmail, I suggest that you should post it to Gmail forum.

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, November 17, 2015 2:42 AM
    Moderator