none
Mail tracking in mass mailer system RRS feed

  • Question

  • Hello there,

    I want a suggestion on a project, whose details are as follows:

     


    >
     Send HTML email and plain text formats

    > No monthly fees

    > Keep your email lists private & secure locally

    > Free HTML email templates to get you started

    > Easy to manage and grow your contacts

    > Track the sent mails

    > Send HTML email and plain text formats

    > No monthly fees

    > Keep your email lists private & secure locally

    > Free HTML email templates to get you started

    > Easy to manage and grow your contacts

    > Friendly support when you need it

    > Friendly support when you need it

    I just need, the technique to track the mail...and avoid it from entering the Spam-Box

    Wednesday, January 4, 2012 6:47 AM

Answers

  • Hi Pratik,

     

    For “Spam-Box” I have no idea about it due to it will be set on customer’s client. I’m afraid we have no ability to affect these settings. If customer set your SMTP address to the Blocked Sender list, all of the mails which you send to that customer will be moved to “Spam-Box”.

     

    For Track all of the mails. I would recommend you use Conversation interface to address your goal. Here has some code which I used on my side to track the mails for the communication.

     

    Imports System.Windows.Forms
    
    Public Class Form1
        Public Mail As Outlook.MailItem
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As  _
                               System.EventArgs) Handles MyBase.Load
            Dim objConversation As Outlook.Conversation
            Dim objSimpleItems As Outlook.SimpleItems
            Dim objMailItem As Outlook.MailItem
            Dim objTreeNode As TreeNode
    
            objConversation = Mail.GetConversation()
            Try
                objSimpleItems = objConversation.GetRootItems
                For i As Integer = 1 To objSimpleItems.Count
                    objMailItem = objSimpleItems(i)
                    objTreeNode = New TreeNode
                    objTreeNode.Text = objMailItem.Sender.Name & "-" & objMailItem.CreationTime.ToLongDateString()
                    TreeView1.Nodes.Add(objTreeNode)
                    SearchChildren(objMailItem, objConversation, objTreeNode)
                Next
            Catch ex As Exception
                MsgBox(ex.Message & Chr(13) & ex.StackTrace)
            End Try
        End Sub
    
        Private Sub SearchChildren(ByVal Item As Object, ByVal conv As  _
                                   Outlook.Conversation, ByVal node As TreeNode)
            Dim objSimpleItems As Outlook.SimpleItems = conv.GetChildren(Item)
            Dim objMailItem As Outlook.MailItem
            Dim objTreeNode As TreeNode
    
            For i As Integer = 1 To objSimpleItems.Count
                objMailItem = objSimpleItems(i)
                objTreeNode = New TreeNode
                objTreeNode.Text = objMailItem.Sender.Name & "-" & objMailItem.CreationTime.ToLongDateString()
                node.Nodes.Add(objTreeNode)
                SearchChildren(objMailItem, conv, objTreeNode)
            Next
        End Sub
    End Class
    


     

     

    I hope it can help you.

     

    Have a good day,

     

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Thursday, January 12, 2012 7:24 AM
    Moderator

All replies

  • Hi Pratik,

     

    Thanks for posting in the MSDN Forum.

     

    I would recommend you clarify your goal more specifically when we being to handle this case, here have some important things need to be determined:

     

    1.       Do you use Outlook? Please tell me your Outlook version if you use.

    2.       “Spam-Box”? I don’t think Outlook has such kind of folder, I think “Junk E-mail” folder seems link the description from the word means of “Spam-Box”. Do you mean “Junk E-mail” folder?

    3.       Your goal’s description is too general to research. I need more details for it.

     

    Have a good day,

     

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Friday, January 6, 2012 3:30 AM
    Moderator
  • Thanks for your reply,

     

    I am creating a Mass-Mailer system in VB.NET using Outlook,

    I need to send bulk mails from multiple mailing servers.

     

    Also, this mails need to be tracked (like wether they are delivered or not, or have they bounced back)

     

     

    Monday, January 9, 2012 5:23 AM
  • Hi Pratik,

     

    OK, now we are aware of that we will develop this issue via VB.NET and this is an add-in or Outlook automation application. In this project we will track all of the mail item’s communication history and we will write it into a log file or show it on the UI. Is it right? There seems has some questions left. What about “Spam-box”?

     

    Have a good day,

     

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Monday, January 9, 2012 8:41 AM
    Moderator
  • ya...i think u got my point @ Tom

     

    And about the Spam-Box means, the mails sent by mass mailer should not land into the "Spam-Box" or "Junk-Mail" of the target!!

     

    waiting for your further reply

    Tuesday, January 10, 2012 12:43 PM
  • Hi Pratik,

     

    For “Spam-Box” I have no idea about it due to it will be set on customer’s client. I’m afraid we have no ability to affect these settings. If customer set your SMTP address to the Blocked Sender list, all of the mails which you send to that customer will be moved to “Spam-Box”.

     

    For Track all of the mails. I would recommend you use Conversation interface to address your goal. Here has some code which I used on my side to track the mails for the communication.

     

    Imports System.Windows.Forms
    
    Public Class Form1
        Public Mail As Outlook.MailItem
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As  _
                               System.EventArgs) Handles MyBase.Load
            Dim objConversation As Outlook.Conversation
            Dim objSimpleItems As Outlook.SimpleItems
            Dim objMailItem As Outlook.MailItem
            Dim objTreeNode As TreeNode
    
            objConversation = Mail.GetConversation()
            Try
                objSimpleItems = objConversation.GetRootItems
                For i As Integer = 1 To objSimpleItems.Count
                    objMailItem = objSimpleItems(i)
                    objTreeNode = New TreeNode
                    objTreeNode.Text = objMailItem.Sender.Name & "-" & objMailItem.CreationTime.ToLongDateString()
                    TreeView1.Nodes.Add(objTreeNode)
                    SearchChildren(objMailItem, objConversation, objTreeNode)
                Next
            Catch ex As Exception
                MsgBox(ex.Message & Chr(13) & ex.StackTrace)
            End Try
        End Sub
    
        Private Sub SearchChildren(ByVal Item As Object, ByVal conv As  _
                                   Outlook.Conversation, ByVal node As TreeNode)
            Dim objSimpleItems As Outlook.SimpleItems = conv.GetChildren(Item)
            Dim objMailItem As Outlook.MailItem
            Dim objTreeNode As TreeNode
    
            For i As Integer = 1 To objSimpleItems.Count
                objMailItem = objSimpleItems(i)
                objTreeNode = New TreeNode
                objTreeNode.Text = objMailItem.Sender.Name & "-" & objMailItem.CreationTime.ToLongDateString()
                node.Nodes.Add(objTreeNode)
                SearchChildren(objMailItem, conv, objTreeNode)
            Next
        End Sub
    End Class
    


     

     

    I hope it can help you.

     

    Have a good day,

     

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Thursday, January 12, 2012 7:24 AM
    Moderator