Solved

no sender info in LN client sent folder

Posted on 2011-03-22
4
605 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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