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

Possible reasons for attachment loss?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 15th 09, 11:09 AM posted to microsoft.public.outlook.program_addins
Kukulkan[_2_]
external usenet poster
 
Posts: 9
Default Possible reasons for attachment loss?

Hi,

I modify an existing answer e-mail item (Re using redemption objects
(VB6 AddIn project). Here is the affected code (simplified):

Dim rMail As New Redemption.SafeMailItem
Dim rgfAttachment As Redemption.Attachment

Mailobject.Save ' answer mail item
rMail.Item = Mailobject

' ### kill previous attachments ###
For x = rMail.Attachments.Count To 1 Step -1
rMail.Attachments.Item(x).Delete
Next x

' ### add new attachment ###
Set rgfAttachment = rMail.Attachments.Add("c:\new_attachment.abc",
olByValue, 1)
rgfAttachment.Fields(&H370E001E) = "application/vnd.myapplicationname"

rMail.Save

rMail.Send

For most customers this works fine. But some of my customers are
missing the newly added attachment completely. But only if the
original Mailobject has been an answer-mail (Re that has been sent
from the same domain as the current user (exchange). If the Mailobject
is an answer to an incoming mail from the outside or the Mailobject is
a newly generated mail, if works fine. If it is an answer to an
incoming mail from inside the same domain, it fails by loosing the
attachment. Strange...

Any ideas what happens here? Are there some filtering mechanisms
active? There is no error occuring during this code. The customer does
not run any special addins other than the standard, exept OpenCTI
(telephony addin).

Any ideas, what mechanism's are able to remove attachments from AddIn
generated mails?

Thank you
Ads
  #2  
Old December 15th 09, 03:09 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Possible reasons for attachment loss?

What Outlook versions is this happening with? Where and when are you adding
the attachments that are going missing? Are the original attachments all
being removed? Any specific mail formats or WordMail involved?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Kukulkan" wrote in message
...
Hi,

I modify an existing answer e-mail item (Re using redemption objects
(VB6 AddIn project). Here is the affected code (simplified):

Dim rMail As New Redemption.SafeMailItem
Dim rgfAttachment As Redemption.Attachment

Mailobject.Save ' answer mail item
rMail.Item = Mailobject

' ### kill previous attachments ###
For x = rMail.Attachments.Count To 1 Step -1
rMail.Attachments.Item(x).Delete
Next x

' ### add new attachment ###
Set rgfAttachment = rMail.Attachments.Add("c:\new_attachment.abc",
olByValue, 1)
rgfAttachment.Fields(&H370E001E) = "application/vnd.myapplicationname"

rMail.Save

rMail.Send

For most customers this works fine. But some of my customers are
missing the newly added attachment completely. But only if the
original Mailobject has been an answer-mail (Re that has been sent
from the same domain as the current user (exchange). If the Mailobject
is an answer to an incoming mail from the outside or the Mailobject is
a newly generated mail, if works fine. If it is an answer to an
incoming mail from inside the same domain, it fails by loosing the
attachment. Strange...

Any ideas what happens here? Are there some filtering mechanisms
active? There is no error occuring during this code. The customer does
not run any special addins other than the standard, exept OpenCTI
(telephony addin).

Any ideas, what mechanism's are able to remove attachments from AddIn
generated mails?

Thank you


 




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
Loss Of The Views Bar D. Spencer Hines Outlook Express 1 January 28th 09 04:26 AM
Loss Of The Views Bar D. Spencer Hines Outlook Express 2 January 24th 09 06:39 PM
Loss of profile... og Outlook Express 4 January 7th 07 11:35 AM
more reasons to send Hotbar to a North Korean concentration camp [email protected] Outlook Express 0 August 15th 06 03:09 AM
Finally, without any reasons - Outlook 2003 is able to display MSN newsletters xfile Outlook - General Queries 0 June 23rd 06 03:36 AM


All times are GMT +1. The time now is 07:52 PM.


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