Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Lotus Domino - find "from" for email

Posted on 2003-12-10
7
Medium Priority
?
246 Views
Last Modified: 2010-05-01
Hi,

I have this code going through the email doc in domino

       For Each it In docMailItem.Items
        Debug.Print it.Name
        Debug.Print it
        ' or get the value in any other way!
       Next it

I see the it.Name as being all the fields that I need, such as Subject and From, but I can not get to the value. Please help. Thank you.

As a background, here the code leading to it. It all works.

   Set colMailItems = Maildb.AllDocuments
   Set docMailItem = colMailItems.GetLastDocument
   NumberOfMessages = colMailItems.Count
   ReDim aryContent(NumberOfMessages)
   blnReadMailRunning = True
   For lngItem = 0 To NumberOfMessages - 1
       Open storePath + "/email_" + CStr(lngItem + 1) + ".txt" For Output As 1
       Open storePath + "/email_" + CStr(lngItem + 1) + ".prop" For Output As 2
       
       itmMailItem.Authors = Join(docMailItem.Authors)
       Print #2, "Name=From"
       Print #2, "Value=" + itmMailItem.Authors
       
       If TypeName(docMailItem.Body) = "String" Then
            itmMailItem.BodyText = docMailItem.Body
           
       Else
           itmMailItem.BodyText = Join(docMailItem.Body)
           
       End If
       Print #1, itmMailItem.BodyText
       
       itmMailItem.LastModified = docMailItem.LastModified
       itmMailItem.Size = docMailItem.Size
0
Comment
Question by:kerzner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9914209
msgbox docMailItem.columnvalues(1)
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 2000 total points
ID: 9914229
or, if you prefer:


For Each it In docMailItem.Items
        Debug.Print it.Name
        Debug.Print it.text
        ' or get the value in any other way!
       Next it
0
 
LVL 1

Author Comment

by:kerzner
ID: 9914279
Sorry, Richie, you ARE the expert, I know, but I get

Object doesn't support this property or method
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 1

Author Comment

by:kerzner
ID: 9914298
Hooray! Debug.Print it.text worked
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9914370
Then, the problem is with docMailItem, it is not a NOTESDocument object, isn't it?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9914389
If you have an object reference for each document in AllDocuments view, then, one of its properties is .columnvalues which is an array.
0
 
LVL 1

Author Comment

by:kerzner
ID: 9914396
no, of course not. I know that this is an old library I am using, but I have the code, and it is already working, so be it for now

when I re-write, I will probably use Java anyway

Best regards.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question