Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: How to save the Sent Mails to the Folder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
HELP
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 17 October 2005 at 1:55am | IP Logged Quote HELP

Hi Alex,
    I got a problem in Sent mail folder
i save the all mails in Xml format but not retrieve the mails from xml file,i save the title parts like from,to,subject.......
but content not displayed
      if any possiblities is there....
see and check this code any possiblities is there in this code
i want retrieve the data also
    Public Sub SetSentEmailsToNode(ByVal objMsg As MailBee.Message, ByVal fromNode As TreeNode)
        'set compose or reply or forwarded emails to sent item treenode
        Try
             Cursor = System.Windows.Forms.Cursors.WaitCursor
             Dim i As Integer
             Dim targetNode1 As TreeNode
             Dim targetfile As String

             Dim tv As DragDropTreeView
             tv = trvEAccts
             Dim tn As TreeNode
             tn = fromNode
             If tn.GetNodeCount(True) > 0 Then
                For Each myNode As TreeNode In tn.Nodes
                      If InStr(myNode.Text.ToUpper, "SENT") Then
                          targetNode1 = myNode
                          Exit For
                     End If
                Next myNode
             End If

             If Not targetNode1 Is Nothing Then
                TargetNode = targetNode1
             End If

             If InStr(targetNode1.Text, "(") Then
                targetfile = "\" & Mid(targetNode1.Text, 1, InStr(targetNode1.Text, "(") - 1) & ".xml"
             Else
                targetfile = "\" & targetNode1.Text & ".xml"
             End If
             ReloadListviewFromXML(ListViewForMove, AppPath & targetNode1.Tag & targetfile)
             Dim lsAdd As ListViewItem

             If objMsg.HasAttachments = True Then
                lsAdd = New ListViewItem("", 9)
             Else
                lsAdd = New ListViewItem("", -1)
             End If
             lsAdd.SubItems.Add(Math.Round(objMsg.Size / 1024, 1) & "KB")
             lsAdd.SubItems.Add(objMsg.FromAddr)
             'lsAdd.SubItems.Add(objMsg.ToAddr) '........................................................... ...santosh7
             lsAdd.SubItems.Add(objMsg.Subject)
             lsAdd.SubItems.Add(objMsg.Date)
             lsAdd.SubItems.Add(objMsg.MessageId)
             lsAdd.SubItems.Add(ListViewForMove.Items.Count + 1)
             lsAdd.SubItems.Add("Sent")
             lsAdd.Tag = ListViewForMove.Items.Count + 1
             ListViewForMove.Items.Add(lsAdd)
             If InStr(targetNode1.Text, "(") Then
                targetfile = "\" & Mid(targetNode1.Text, 1, InStr(targetNode1.Text, "(") - 1) & ".xml"
                If ListViewForMove.Items.Count > 0 Then
                     targetNode1.Text = Mid(targetNode1.Text, 1, InStr(targetNode1.Text, "(") - 1) & "(" & ListViewForMove.Items.Count & ")"
                Else
                     targetNode1.Text = Mid(targetNode1.Text, 1, InStr(targetNode1.Text, "(") - 1)
                End If
             Else
                targetfile = "\" & targetNode1.Text & ".xml"
                If ListViewForMove.Items.Count > 0 Then
                     targetNode1.Text = targetNode1.Text & "(" & ListViewForMove.Items.Count & ")"
                End If
             End If
             objMsg.SaveMessage(AppPath & targetNode1.Tag & targetfile)
             SaveObjectProperties(ListViewForMove, AppPath & targetNode1.Tag & targetfile)
             SaveTreeStruc()
             Cursor = System.Windows.Forms.Cursors.Default
        Catch ex As Exception
             ErrLogFile("Exception at DeleteEmails" & ex.Source & ex.Message)
        End Try
        Cursor = System.Windows.Forms.Cursors.Default
    End Sub
Back to Top View HELP's Profile Search for other posts by HELP
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 October 2005 at 2:14pm | IP Logged Quote Alex

Could you please provide simpler version of the code which would show the particular problem?

Currently, the code you sbumitted here contains many stuff not related to MailBee, and it's hard to understand what exactly is not working as it should and if the problem is related to MailBee or not.

Thanks,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
HELP
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 19 October 2005 at 7:08am | IP Logged Quote HELP

hi
my problem was actally mails are saved only headers like from,to.......but not display the content,in retreving mails easily using mailbee .in mailbee provide the options how to retrive the mails and also save the mails but i'm save the mails using (MAILBEE.MESSAGE)only save the headers parts only not display the content
i'm replace with MAILBEE.MESSAGE to MAILBEE.SMTP but this is not working properly so whar am i doing ?
Back to Top View HELP's Profile Search for other posts by HELP
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 21 October 2005 at 2:56pm | IP Logged Quote Alex

It looks like you receive messages using POP3.RetrieveSingleMessageHeaders or POP3.RetrieveHeaders method. These methods download only message header part of a message. Body and attachments are not downloaded.

Please try to use POP3.RetrieveSingleMessage or POP3.RetrieveMessages method to download entire messages.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide