Solved

no sender info in LN client sent folder

Posted on 2011-03-22
4
601 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!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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