Connecting Tech Pros Worldwide Help | Site Map

Outlook Attachments NOT visible

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 10th, 2007, 01:35 PM
dlesandrini
Guest
 
Posts: n/a
Default Outlook Attachments NOT visible

Now that I have my rant about Google Search out of the way, I can ask
my question. Someone must have noticed this, but since I can't Google
the Access groups about it, I'll have to just ask:

I'm using Redemption to create a SafeItem, and Microsoft Outlook to
create a mail item. When an attachment is added, it does get sent to the
recipient, but the mail item, when first displayed, doesn't appear to
include
the attachment. It's there ... just not visible. Anyone seen this before?
Is
there a VISIBLE property to attachments?

Not sure if the problem is with Redemption or Outlook. I could test for
that by removing the SafeItem wrapper. I'll try that now.


Set SafeItem = CreateObject("Redemption.SafeMailItem")

' create the Outlook session
Set objOutlook = CreateObject("Outlook.Application")
Set objNS = objOutlook.GetNamespace("MAPI")
objNS.Logon

' create the Message
Set objOutlookMsg = objOutlook.CreateItem(cMailItem)
SafeItem.Item = objOutlookMsg
With SafeItem
.To = strRecipient
.Subject = strSubject
.Body = strBodyText
.ReplyRecipientNames = "bogus@qwest.net"
If Dir(strFile) <"" Then
.Attachments.Add strFile
End If
.Save
.Display

'.Importance = 2 'High =2 low = 1
'.ReadReceiptRequested = True
'.Send
End With

Danny Lesandrini
dlesandrini@hotmail.com



  #2  
Old July 10th, 2007, 01:45 PM
dlesandrini
Guest
 
Posts: n/a
Default Re: Outlook Attachments NOT visible

Ok, it was Redemption. If I change the code like this, it works ...

change this ...
Quote:
If Dir(strFile) <"" Then
.Attachments.Add strFile
End If
to this ...
Quote:
If Dir(strFile) <"" Then
objOutlookMsg.Attachments.Add strFile
End If
Setting the Outlook mail object attachment doesn't appear to trigger
a security breach, but does add the attachment as visible.

Danny



"dlesandrini" <datafast@comcast.netwrote in message
news:9_ydnU14uKsVFw7bnZ2dnUVZ_gqdnZ2d@comcast.com. ..
Quote:
Now that I have my rant about Google Search out of the way, I can ask
my question. Someone must have noticed this, but since I can't Google
the Access groups about it, I'll have to just ask:
>
I'm using Redemption to create a SafeItem, and Microsoft Outlook to
create a mail item. When an attachment is added, it does get sent to the
recipient, but the mail item, when first displayed, doesn't appear to
include
the attachment. It's there ... just not visible. Anyone seen this
before? Is
there a VISIBLE property to attachments?
>
Not sure if the problem is with Redemption or Outlook. I could test for
that by removing the SafeItem wrapper. I'll try that now.
>
>
Set SafeItem = CreateObject("Redemption.SafeMailItem")
>
' create the Outlook session
Set objOutlook = CreateObject("Outlook.Application")
Set objNS = objOutlook.GetNamespace("MAPI")
objNS.Logon
>
' create the Message
Set objOutlookMsg = objOutlook.CreateItem(cMailItem)
SafeItem.Item = objOutlookMsg
With SafeItem
.To = strRecipient
.Subject = strSubject
.Body = strBodyText
.ReplyRecipientNames = "bogus@qwest.net"
If Dir(strFile) <"" Then
.Attachments.Add strFile
End If
.Save
.Display
>
'.Importance = 2 'High =2 low = 1
'.ReadReceiptRequested = True
'.Send
End With
>
Danny Lesandrini
dlesandrini@hotmail.com
>

  #3  
Old July 10th, 2007, 02:15 PM
Tom van Stiphout
Guest
 
Posts: n/a
Default Re: Outlook Attachments NOT visible

On Tue, 10 Jul 2007 07:40:18 -0600, "dlesandrini"
<datafast@comcast.netwrote:

You may want to let Dmitri know about that.
-Tom.

Quote:
>Ok, it was Redemption. If I change the code like this, it works ...
>
>change this ...
>
Quote:
> If Dir(strFile) <"" Then
> .Attachments.Add strFile
> End If
>
>to this ...
Quote:
> If Dir(strFile) <"" Then
> objOutlookMsg.Attachments.Add strFile
> End If
>
>Setting the Outlook mail object attachment doesn't appear to trigger
>a security breach, but does add the attachment as visible.
>
>Danny
>
>
>
>"dlesandrini" <datafast@comcast.netwrote in message
>news:9_ydnU14uKsVFw7bnZ2dnUVZ_gqdnZ2d@comcast.com ...
Quote:
>Now that I have my rant about Google Search out of the way, I can ask
>my question. Someone must have noticed this, but since I can't Google
>the Access groups about it, I'll have to just ask:
>>
>I'm using Redemption to create a SafeItem, and Microsoft Outlook to
>create a mail item. When an attachment is added, it does get sent to the
>recipient, but the mail item, when first displayed, doesn't appear to
>include
>the attachment. It's there ... just not visible. Anyone seen this
>before? Is
>there a VISIBLE property to attachments?
>>
>Not sure if the problem is with Redemption or Outlook. I could test for
>that by removing the SafeItem wrapper. I'll try that now.
>>
>>
> Set SafeItem = CreateObject("Redemption.SafeMailItem")
>>
> ' create the Outlook session
> Set objOutlook = CreateObject("Outlook.Application")
> Set objNS = objOutlook.GetNamespace("MAPI")
> objNS.Logon
>>
> ' create the Message
> Set objOutlookMsg = objOutlook.CreateItem(cMailItem)
> SafeItem.Item = objOutlookMsg
> With SafeItem
> .To = strRecipient
> .Subject = strSubject
> .Body = strBodyText
> .ReplyRecipientNames = "bogus@qwest.net"
> If Dir(strFile) <"" Then
> .Attachments.Add strFile
> End If
> .Save
> .Display
>>
> '.Importance = 2 'High =2 low = 1
> '.ReadReceiptRequested = True
> '.Send
> End With
>>
>Danny Lesandrini
>dlesandrini@hotmail.com
>>
>
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.