Hide attachment...

  • Thread starter Thread starter Heinz-Josef Bomanns
  • Start date Start date
Status
Not open for further replies.
H

Heinz-Josef Bomanns

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...

 
Last edited by a moderator:
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)

 
Last edited by a moderator:
Hallo Dmitry,

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...
 
Last edited by a moderator:
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...
 
Last edited by a moderator:
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
L Hide Selected Email Address from Address Book Using Outlook 5
J Hide/Disable the X button on BrowseForFolder Dialog Using Outlook 4
J Hide/disable "Groups", "Shared Calendars" Using Outlook 2
D hide messege issue Using Outlook 1
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
K BCM hide subfolders BCM (Business Contact Manager) 1
oliv- HIDE ITEM Outlook VBA and Custom Forms 3
S Hide Timestamp from deleyed message Using Outlook 4
I Outlook 2010 - Remove or Hide Suggested Contact Folders Using Outlook 1
K Hide Default Folders in PST Using Outlook 2
F Hide calendars from shared mailboxes Using Outlook 2
J Ho do I hide the week number on the Calendar Printing Assistant template Using Outlook 4
S Hide Folders in Outlook 2007 (IMAP) Using Outlook 5
C How do I hide distribution list from global contacts for certain users? Exchange Server Administration 1
T Is it possible to hide a mailbox but still send on the behalf of. Exchange Server Administration 1
H Outlook 2007 - hide completed tasks from Outlook Today -Solution Using Outlook 2
N Appointment Body on Custom Page 2- Hide Default Page Outlook VBA and Custom Forms 2
N How to hide pstStore Outlook VBA and Custom Forms 4
S hide details of appointments in calendar Using Outlook 8
M hide outlook to system tray Outlook VBA and Custom Forms 1
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
C Re: Hide BCM toolbar BCM (Business Contact Manager) 1
T How do I hide/unhide folders in outlook inbox? BCM (Business Contact Manager) 1
S Paperclip icon shows without attachment in email under Sent folder Using Outlook 0
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
C Code to move mail with certain attachment name? Does Not work Outlook VBA and Custom Forms 3
kkqq1122 How would I add Search for attachment name Outlook VBA and Custom Forms 3
Owl Export Outlook PDF Attachment as JPG? Outlook VBA and Custom Forms 4
Timmon Remove just one attachment before AutoForward Outlook VBA and Custom Forms 0
P File Picker for attachment Outlook VBA and Custom Forms 0
D Forwarding email based on the attachment file type and specific text found on the attachment file name Outlook VBA and Custom Forms 1
N File Picker for attachment Outlook VBA and Custom Forms 2
G print attachment straight away; working script edit not working Outlook VBA and Custom Forms 0
G Save attachment run a script rule Outlook VBA and Custom Forms 0
M Autoforward just attachment OR just body. Outlook VBA and Custom Forms 0
D Create new email from the received Email Body with attachment Outlook VBA and Custom Forms 10
T vba extract data from msg file as attachment file of mail message Outlook VBA and Custom Forms 1
K Outlook Office 365 VBA download attachment Outlook VBA and Custom Forms 2
P Sending email from outlook IMAP to GMAIL where embedded images are added as attachment Using Outlook 1
S save attachment with date & time mentioned inside the file Outlook VBA and Custom Forms 0
O VBA Outlook Message Attachment - Array Index Out of Bounds Outlook VBA and Custom Forms 0
A Edit attachment Save and Reply Outlook VBA and Custom Forms 0
D Move Email with Attachment to Folder Outlook VBA and Custom Forms 3

Similar threads

Back
Top