473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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 = "bo***@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
dl*********@hotmail.com
Jul 10 '07 #1
2 5108
Ok, it was Redemption. If I change the code like this, it works ...

change this ...
If Dir(strFile) <"" Then
.Attachments.Add strFile
End If
to this ...
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" <da******@comcast.netwrote in message
news:9_******************************@comcast.com. ..
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 = "bo***@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
dl*********@hotmail.com

Jul 10 '07 #2
On Tue, 10 Jul 2007 07:40:18 -0600, "dlesandrini"
<da******@comcast.netwrote:

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

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

change this ...
> If Dir(strFile) <"" Then
.Attachments.Add strFile
End If

to this ...
> 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" <da******@comcast.netwrote in message
news:9_******************************@comcast.com ...
>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 = "bo***@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
dl*********@hotmail.com
Jul 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
0
by: Job Lot | last post by:
I am retrieving message from the Inbox as follows: (MS Article ID 310258: How to use the Microsoft Outlook Object Library to retrieve a message from the Inbox by using Visual C# .NET) Try Dim...
1
by: Himselff | last post by:
Hi guys, Im developing a lil add-in that is goiing to allow the user by a button click to auto print PDF doc which are attach to hes emails, i think the things is to simple cause its not working...
2
by: Pieter | last post by:
Hi, I'm using a thight integration with Outlook 2003 (with an Exchange server) in my VB.NET (2005) application. Until now I'm using the Outlook Object Model, but it appears to be very slow, and...
1
by: jeff.boggs | last post by:
Hello, I have a problem inserting HTML from a Word document into a new Outlook mail message. The message ends up losing all of the formatting and the image that is supposed to appear at the top...
1
by: PhilD | last post by:
My C#.NET console app checks a public folder every 24 hours for incoming emails. For each unread email in the folder, it copies any attachments to the network, then loads the contents of these files...
3
by: Jeff | last post by:
I am trying to send emails from my application (not using a plugin, that will come later), I can create an email and add attachments. I can fill in the body etc. Word works for the editor. So...
7
by: Dean Spencer | last post by:
Can anyone help? I am importing Emails from Outlook using the following code: Public Function ScanInbox(SubjectLine As String) Dim TempRst As Recordset Dim OlApp As Outlook.Application Dim...
4
prabunewindia
by: prabunewindia | last post by:
Hello everybody, here i am going to explain, how to get mails from Outlook express database and store in our own database(local) Initially you have to add the refference Outlook library10.0 or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.