Sending Reminder through VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • squrel
    New Member
    • Jan 2008
    • 143

    Sending Reminder through VB

    Dear All,

    I want to send a reminder through VB in a particular date and time to some particular recipient.... is thr any trigger or query tht i can use for this matter? i m using VB6 and SQLServer 2000.
    Thanks in advance
  • squrel
    New Member
    • Jan 2008
    • 143

    #2
    Is anyone thr to help me out?

    Comment

    • anuragshrivastava64
      New Member
      • Jan 2007
      • 66

      #3
      Why don't u can create a timer and in the Timer Event write ur code

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        who you want to send reminder ?

        are you trying to send a mail ?

        Comment

        • squrel
          New Member
          • Jan 2008
          • 143

          #5
          i have these field in my form :
          Id
          CaseId
          Remind Dt
          Reminder (Text)
          ReminderBy (System/UserId)
          ReminderTo (userID)
          Entry Date
          Close Date
          Ind (0-Open, 1 - Closed, 9 - Cancelled)

          i have to send a reminder to some particular people on a particular date and time...
          i knw have to use the MAPI control but have no idea how to use tht..
          need help

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            are you trying to send a mail ???

            Comment

            • squrel
              New Member
              • Jan 2008
              • 143

              #7
              ya something like a mail... how can i do tht?

              Comment

              • debasisdas
                Recognized Expert Expert
                • Dec 2006
                • 8119

                #8
                change and run this code dynamically by timer as desired.

                [code=vb]
                Private Sub Command1_Click( )
                Dim objSession As Object
                Dim objMessage As Object
                Dim objRecipient As Object

                'Create the Session Object.
                Set objSession = CreateObject("M API.SESSION")

                'Logon using the session object.
                'Specify a valid profile name if you want to.
                'Avoid the logon dialog box.
                objSession.Logo n profileName:="M S Exchange Settings"

                'Add a new message object to the OutBox.
                Set objMessage = objSession.Outb ox.Messages.Add

                'Set the properties of the message object.
                objMessage.Subj ect = "This is a test."
                objMessage.Text = "This is the message text."

                'Add a recipient object to the objMessage.Reci pients collection.
                Set objRecipient = objMessage.Reci pients.Add

                'Set the properties of the recipient object.
                objRecipient.Na me = "debasis.8000@g mail.com" '<---Replace this with a valid
                'display name or e-mail alias
                'Type can be ActMsgTo, mapiTo, or CdoTo for different CDO versions;
                'they all have a constant value of 1.
                objRecipient.Ty pe = mapiTo
                objRecipient.Re solve

                'Send the message.
                objMessage.Send showDialog:=Fal se
                MsgBox "Message sent successfully!"

                'Logoff using the session object.
                objSession.Logo ff
                End Sub
                [/code]

                Comment

                • squrel
                  New Member
                  • Jan 2008
                  • 143

                  #9
                  ok i wil try tht..
                  thank u very much

                  Comment

                  • squrel
                    New Member
                    • Jan 2008
                    • 143

                    #10
                    One thing i wanted to ask... i have to add that MAPI control from the components to my project... rit?

                    Comment

                    • debasisdas
                      Recognized Expert Expert
                      • Dec 2006
                      • 8119

                      #11
                      yes you need MAPISESSION and MAPIMESSAGE components.

                      Comment

                      Working...