Solved

no sender info in LN client sent folder

Posted on 2011-03-22
4
607 Views
Last Modified: 2013-11-17
When I send mail from asp.net web site via lotus notes that mail is saved in sent folder. My problem is that there is nothing presented in who column in sent folder of my LN client. Users receive mail there is no problem with that. Just also try to send to one user, and in this case in sent folder there is name of user that I send to (Call doc.ReplaceItemValue("SendTo", "user1") as it is supposed to be. Why is this happening and how to correct it?

Thanks

Here is the code that I use:
Sub ComposeNotesMail()

        Dim sess As New NotesSession
        Dim db As NotesDatabase
        Dim doc As NotesDocument
        Dim body As Object
        Dim mailServer As String, mailFile As String
        Dim list(2) As String


        ' Init Notes session
        Call sess.Initialize("pass")

        ' Open user's email
        mailServer = sess.GetEnvironmentString("MailServer", True)
        mailFile = sess.GetEnvironmentString("MailFile", True)
        db = sess.GetDatabase(mailServer, mailFile)

        If db.IsOpen Then
            doc = db.CreateDocument
        Else
            MsgBox("Could not open Notes", 32)
        End If

        'list(0) = ("User1")
        'list(1) = ("User2")

        ' Create an email doc
        doc = db.CreateDocument
        Call doc.ReplaceItemValue("Form", "Memo")
        Call doc.ReplaceItemValue("SendTo", "list")
        'Call doc.ReplaceItemValue("CopyTo", "")
        Call doc.ReplaceItemValue("Subject", "new mail")

        body = doc.CreateRichTextItem("BODY")
        Call body.AppendText(TextBox1.Text)
        'Call body.AddNewLine()
        'Call body.AddNewLine()

        doc.SaveMessageOnSend = True

        Call doc.Send(False)

        doc.SaveMessageOnSend = True

        sess = Nothing
        db = Nothing
        doc = Nothing

    End Sub

Open in new window

0
Comment
Question by:kahvedzic
[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
  • 2
4 Comments
 
LVL 10

Expert Comment

by:doninja
ID: 35189471
You may find that your Sent Items view is using the common name of the Recipeints field not send to.
Check the sendto and Recipeints fields in the documents and also see if they have an alias which is blank.
Possibly the system is adding a blank common name to the email address i.e.
" " <address@domain.com>
Space or blank portion in quotes can make view interpret common name as space or blank.

0
 
LVL 1

Author Comment

by:kahvedzic
ID: 35189741
When I go to sent folder and document properties for this mail there is no Recipient field, and there is no alias for Send to field.

Address that I am sending to is on same domino server as one that i send from.

And this is what I have in Send to field:

Field Name: SendTo
Data Type: Text List
Data Length: 32 bytes
Seq Num: 1
Dup Item ID: 0
Field Flags: SUMMARY

"User1"
"User2"
""

Normaly when I send mail from LN client in Who column is written first mail address that mail was sent to.
0
 
LVL 2

Accepted Solution

by:
gingerdeb earned 500 total points
ID: 35195787
You've declared your list as list(2) and only using list(0) and list(1).  I notice in your document properties for the field there is a blank entry (obviously list(2)) - perhaps this is what's displaying?
0
 
LVL 1

Author Comment

by:kahvedzic
ID: 35196362
@gingerdeb

Thank you very much. This solve my problem. But still I dont understand, in who column is written first name (address) from the list that I send to, but if I have empty item in this list on last place then LN does not read first name, dont know why is this happening.

Anyway thanks for help.

Cheers.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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