Slipstick Forums  

Go Back   Slipstick Forums > Outlook Programming > Programming Add-ins

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2009, 11:27 PM
Heinz-Josef Bomanns
Guest
 
Posts: n/a
Default Hide attachment...

Hi,

i have to send an 'invisible' attachment with a mail in plain text (or
other) format. Currently i'm using

'Add hidden attachment
objAtt = .Attachments.Add(strFileName, olByValue, 0, "Hidden")

I've also tried Redemption.MAPIUtils like this:

'Set PR_ATTACHMENT_HIDDEN = True
..HrSetOneProp objAtt.MAPIOBJECT, &H7FFE000B, True

In my outbox the attachment is hidden and PR_ATTACHMENT_HIDDEN is
true, after the mail is sent and received on other machines the
attachment is sometimes visible and PR_ATTACHMENT_HIDDEN is missing,
sometimes it's invisible with PR_ATTACHMENT_HIDDEN = True present.
It's not depending on a specific Outlook version - in my VMs or VPCs
with Outlook 2002, 2003, 2007 the attachments are always invisible, on
the machine of friend "A" with 2002 and friend "B" with 2007 the
attachment is visible, on the machine of friend "C" with 2003 and 2007
the attachment is invisible. Wired... Anybody any idea, why the
attachment stays invisible on some installations and gets visible on
others? Thanks for any hint...


--

So long...
...Bomi

> !!! In case you want to reply via email please use Reply-To address and remove underscores (_) !!!

Reply With Quote
  #2  
Old 11-04-2009, 06:13 PM
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Hide attachment...

In general, that property on the attachment is set by Outlook depending on
what outlook thinks that attachment is (such as an image used by the HTML
body).
Have you tried to set the PR_ATTACH_CONTENT_ID and/or
PR_ATTACH_CONTENT_LOCATION properties to trick Outlook into thinking that it
is an imahe used by the HTML body?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Heinz-Josef Bomanns" <NotForMail@t-online.de> wrote in message
news:ks7ve5hd2g2kgb1iqf4vsrrpethpfiu283@4ax.com...
> Hi,
>
> i have to send an 'invisible' attachment with a mail in plain text (or
> other) format. Currently i'm using
>
> 'Add hidden attachment
> objAtt = .Attachments.Add(strFileName, olByValue, 0, "Hidden")
>
> I've also tried Redemption.MAPIUtils like this:
>
> 'Set PR_ATTACHMENT_HIDDEN = True
> .HrSetOneProp objAtt.MAPIOBJECT, &H7FFE000B, True
>
> In my outbox the attachment is hidden and PR_ATTACHMENT_HIDDEN is
> true, after the mail is sent and received on other machines the
> attachment is sometimes visible and PR_ATTACHMENT_HIDDEN is missing,
> sometimes it's invisible with PR_ATTACHMENT_HIDDEN = True present.
> It's not depending on a specific Outlook version - in my VMs or VPCs
> with Outlook 2002, 2003, 2007 the attachments are always invisible, on
> the machine of friend "A" with 2002 and friend "B" with 2007 the
> attachment is visible, on the machine of friend "C" with 2003 and 2007
> the attachment is invisible. Wired... Anybody any idea, why the
> attachment stays invisible on some installations and gets visible on
> others? Thanks for any hint...
>
>
> --
>
> So long...
> ...Bomi
>
>> !!! In case you want to reply via email please use Reply-To address and
>> remove underscores (_) !!!



Reply With Quote
  #3  
Old 11-12-2009, 02:41 AM
Heinz-Josef Bomanns
Guest
 
Posts: n/a
Default Re: Hide attachment...

Hallo Dmitry,

>In general, that property on the attachment is set by Outlook depending on
>what outlook thinks that attachment is (such as an image used by the HTML
>body).
>Have you tried to set the PR_ATTACH_CONTENT_ID and/or
>PR_ATTACH_CONTENT_LOCATION properties to trick Outlook into thinking that it
>is an imahe used by the HTML body?


I set PR_ATTACH_CONTENT_ID, PR_ATTACH_CONTENT_LOCATION and
PR_ATTACHMENT_HIDDEN - on the sent mail this properties are present,
but on the destination machine after receiving the mail all this
properties are missing, so it looks like some Outlook installations
are deleting them when receiving the mail...


--

So long...
...Bomi

> !!! In case you want to reply via email please use Reply-To address and remove underscores (_) !!!

Reply With Quote
Reply

Bookmarks


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep Attachment Name at Top of Email when Reply (Not Attachment it Joyce Outlook General 2 10-08-2009 06:30 PM
Hide Organizer Lori H Calendaring 0 10-08-2009 10:49 AM
Re: attachment in the body vs attachment line? BaileySue Outlook General 2 06-15-2009 09:05 AM
Re: Hide BCM toolbar callieaa General 1 05-21-2009 01:26 AM
message attachment saved by Outlook.Attachment.SaveFileAs not open =?Utf-8?B?YXJjZmFu?= Programming Add-ins 7 05-12-2009 03:15 PM


All times are GMT -4. The time now is 07:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.