Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. automated mail

automated mail

Scheduled Pinned Locked Moved Visual Basic
questiondatabasejson
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    accessred
    wrote on last edited by
    #1

    i have a report generating system of some employees.when they r using the punching card their details will be stored in the database according to their id number.the report will be stored in some folder.after some timeperiod(we can set the time) the report should automatically send to the outbox of the employee's email id.(as we have stored employee's e mail id coresponding to his emp id.) what is the code for this?pls explain the logic also.

    "I am burning...the only thing rest in me is you..."

    M 1 Reply Last reply
    0
    • A accessred

      i have a report generating system of some employees.when they r using the punching card their details will be stored in the database according to their id number.the report will be stored in some folder.after some timeperiod(we can set the time) the report should automatically send to the outbox of the employee's email id.(as we have stored employee's e mail id coresponding to his emp id.) what is the code for this?pls explain the logic also.

      "I am burning...the only thing rest in me is you..."

      M Offline
      M Offline
      Marek Grzenkowicz
      wrote on last edited by
      #2

      State your question clearly. Are you asking how to send an e-mail using VB.NET?

      A 1 Reply Last reply
      0
      • M Marek Grzenkowicz

        State your question clearly. Are you asking how to send an e-mail using VB.NET?

        A Offline
        A Offline
        accessred
        wrote on last edited by
        #3

        i am asking how to send e mail(a text file attachment stored in the system) using vb,there we can set the time to send.

        "I am burning...the only thing rest in me is you..."

        M T 2 Replies Last reply
        0
        • A accessred

          i am asking how to send e mail(a text file attachment stored in the system) using vb,there we can set the time to send.

          "I am burning...the only thing rest in me is you..."

          M Offline
          M Offline
          Marek Grzenkowicz
          wrote on last edited by
          #4

          This is how I send e-mails using Gmail[^] (the code is in C#, but I guess you'll work it out). MailMessage has Attachments[^] property, so there should be no problem to attach a file.

          accessred wrote:

          there we can set the time to send

          I think that you should use a timer in your application to send e-mail periodically.

          1 Reply Last reply
          0
          • A accessred

            i am asking how to send e mail(a text file attachment stored in the system) using vb,there we can set the time to send.

            "I am burning...the only thing rest in me is you..."

            T Offline
            T Offline
            Tom Deketelaere
            wrote on last edited by
            #5

            I posted code for this a few questions ago: http://www.codeproject.com/script/comments/forums.asp?msg=2286822&forumid=1646#xx2286822xx[^]

            If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistakes.

            A 1 Reply Last reply
            0
            • T Tom Deketelaere

              I posted code for this a few questions ago: http://www.codeproject.com/script/comments/forums.asp?msg=2286822&forumid=1646#xx2286822xx[^]

              If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistakes.

              A Offline
              A Offline
              accessred
              wrote on last edited by
              #6

              will this automatically attach the report while sending? anyway thanks very mch 4 ur help. :)

              "I am burning...the only thing rest in me is you..."

              T 1 Reply Last reply
              0
              • A accessred

                will this automatically attach the report while sending? anyway thanks very mch 4 ur help. :)

                "I am burning...the only thing rest in me is you..."

                T Offline
                T Offline
                Tom Deketelaere
                wrote on last edited by
                #7

                Dim s As New System.Web.Mail.MailAttachment("Insert path to file here in form of a string")
                .Attachments.Add(s)

                --> adding a attachment to the message

                If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistakes.

                A 1 Reply Last reply
                0
                • T Tom Deketelaere

                  Dim s As New System.Web.Mail.MailAttachment("Insert path to file here in form of a string")
                  .Attachments.Add(s)

                  --> adding a attachment to the message

                  If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistakes.

                  A Offline
                  A Offline
                  accessred
                  wrote on last edited by
                  #8

                  thanks very mch.. i 'll update u the result.

                  "I am burning...the only thing rest in me is you..."

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups