473,770 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("R edemption.SafeM ailItem")

' create the Outlook session
Set objOutlook = CreateObject("O utlook.Applicat ion")
Set objNS = objOutlook.GetN amespace("MAPI" )
objNS.Logon

' create the Message
Set objOutlookMsg = objOutlook.Crea teItem(cMailIte m)
SafeItem.Item = objOutlookMsg
With SafeItem
.To = strRecipient
.Subject = strSubject
.Body = strBodyText
.ReplyRecipient Names = "bo***@qwest.ne t"
If Dir(strFile) <"" Then
.Attachments.Ad d strFile
End If
.Save
.Display

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

Danny Lesandrini
dl*********@hot mail.com
Jul 10 '07 #1
2 5130
Ok, it was Redemption. If I change the code like this, it works ...

change this ...
If Dir(strFile) <"" Then
.Attachments.Ad d strFile
End If
to this ...
If Dir(strFile) <"" Then
objOutlookMsg.A ttachments.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

"dlesandrin i" <da******@comca st.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("R edemption.SafeM ailItem")

' create the Outlook session
Set objOutlook = CreateObject("O utlook.Applicat ion")
Set objNS = objOutlook.GetN amespace("MAPI" )
objNS.Logon

' create the Message
Set objOutlookMsg = objOutlook.Crea teItem(cMailIte m)
SafeItem.Item = objOutlookMsg
With SafeItem
.To = strRecipient
.Subject = strSubject
.Body = strBodyText
.ReplyRecipient Names = "bo***@qwest.ne t"
If Dir(strFile) <"" Then
.Attachments.Ad d strFile
End If
.Save
.Display

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

Danny Lesandrini
dl*********@hot mail.com

Jul 10 '07 #2
On Tue, 10 Jul 2007 07:40:18 -0600, "dlesandrin i"
<da******@comca st.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.Ad d strFile
End If

to this ...
> If Dir(strFile) <"" Then
objOutlookMsg.A ttachments.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******@comca st.netwrote in message
news:9_******* *************** ********@comcas t.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("R edemption.SafeM ailItem")

' create the Outlook session
Set objOutlook = CreateObject("O utlook.Applicat ion")
Set objNS = objOutlook.GetN amespace("MAPI" )
objNS.Logon

' create the Message
Set objOutlookMsg = objOutlook.Crea teItem(cMailIte m)
SafeItem.Item = objOutlookMsg
With SafeItem
.To = strRecipient
.Subject = strSubject
.Body = strBodyText
.ReplyRecipient Names = "bo***@qwest.ne t"
If Dir(strFile) <"" Then
.Attachments.Ad d strFile
End If
.Save
.Display

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

Danny Lesandrini
dl*********@hot mail.com
Jul 10 '07 #3

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

Similar topics

15
4313
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
5427
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 oApp As Outlook.Application = New Outlook.Application Dim oNS As Outlook.NameSpace = oApp.GetNamespace("mapi") oNS.Logon(Missing.Value, Missing.Value, False, True) Dim oInbox As Outlook.MAPIFolder =...
1
1856
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 at all, hope u guys can gimme a hand , heres the code, Public Sub OnStartupComplete(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnStartupComplete
2
2451
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 has some problems: - doing a Move changes the ReceivedTime of the MailItem - I can't use RichText in the MailItem.Body (only allows plain text or HTML) - some other stuff like having to use small 'tricks' to show the default signature in an email
1
8813
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 of the message does not. Here is the code for inserting the HTML. var oOutlookApp, oWordApp, oOutlookMsg, iOutlookRunning; iOutlookRunning = false;
1
7064
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 into a SQL Server database, and marks the email as read. My problem is that in the loop that checks for all the Unread emails in the folder, as I spin through the loop, the number of unread items is being reset for every iteration. So...
3
10651
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 mostly what I want. My issue is I would like to retain the signature block that exists when I insert my body into the message. Any help would be appreciated. Here is the code I am using: //Initialize the envelope values. string strTo =...
7
6811
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 Inbox As Outlook.MAPIFolder Dim InboxItems As Outlook.Items Dim Mailobject As Object Set OlApp = CreateObject("Outlook.Application")
4
16703
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 11.0 from add ref. If you not find that, download the dll from here and install..click here open and windows application (or ASP.NET) in Form1 class code(declare) the following,
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.