A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Hide attachment...



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 3rd 09, 04:27 AM posted to microsoft.public.outlook.program_addins
Heinz-Josef Bomanns
external usenet poster
 
Posts: 10
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 (_) !!!

Ads
  #2  
Old November 4th 09, 11:13 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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" wrote in message
...
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 (_) !!!



  #3  
Old November 12th 09, 07:41 AM posted to microsoft.public.outlook.program_addins
Heinz-Josef Bomanns
external usenet poster
 
Posts: 10
Default 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 (_) !!!

  #4  
Old February 26th 10, 11:26 AM posted to microsoft.public.outlook.program_addins
Alex[_8_]
external usenet poster
 
Posts: 2
Default Hide attachment...

Hi,

are you sure that these properties are set by Outlook? I don't think so, at
least in some cases - i have send email(multipart/related , html) to my
exchange server and when I discover my Inbox using MFCMAPI tool I see that
PR_ATTACHMENT_HIDDEN property is set to true already(I suppose that MFCMAPI
app keep message intact and just shows its props).

In case i send the same mail to hMail server and view this mail using
outlook i see all attachments, i.e PR_ATTACHMENT_HIDDEN property is set to
false.

So my conclusion is that MS exchange server may mark some attachments as
hidden...

url:http://www.ureader.com/msg/10792293.aspx
  #5  
Old February 26th 10, 01:40 PM posted to microsoft.public.outlook.program_addins
Alex[_8_]
external usenet poster
 
Posts: 2
Default Hide attachment...

b

url:http://www.ureader.com/msg/10792293.aspx
 




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

vB 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
message attachment saved by Outlook.Attachment.SaveFileAs not open arcfan Add-ins for Outlook 7 May 12th 09 08:15 PM
I can send email with attachment receiver cannot open attachment saffi Outlook - General Queries 8 December 5th 07 11:06 AM
Attachment icon present even when no attachment - "text only" box not checked Vance McAlister Outlook Express 3 October 12th 07 05:23 PM
Email attachment symbol, but no attachment xylophone Outlook Express 11 October 5th 07 03:17 AM
Can I replace the attachment file when double chick attachment? [email protected] Outlook - General Queries 3 August 3rd 06 05:10 PM


All times are GMT +1. The time now is 01:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.