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. C#
  4. Show progressbar while sending email

Show progressbar while sending email

Scheduled Pinned Locked Moved C#
databasequestion
7 Posts 5 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.
  • B Offline
    B Offline
    Blue_Boy
    wrote on last edited by
    #1

    Hi, How can I show progressbar while I am seinding email with attachment. When I send email with any attachment then I get only freezed window,insetead of this I want to show progressbar which will fill until email is sent. Regards


    I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

    A R 2 Replies Last reply
    0
    • B Blue_Boy

      Hi, How can I show progressbar while I am seinding email with attachment. When I send email with any attachment then I get only freezed window,insetead of this I want to show progressbar which will fill until email is sent. Regards


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

      A Offline
      A Offline
      Ankit Rajpoot
      wrote on last edited by
      #2

      Please explain your question more clearly. Are you interfacing directly using SMTP or you're using some thrid party library.

      Excuse me for buttin' in, but I'm interrupt driven.

      M B 2 Replies Last reply
      0
      • B Blue_Boy

        Hi, How can I show progressbar while I am seinding email with attachment. When I send email with any attachment then I get only freezed window,insetead of this I want to show progressbar which will fill until email is sent. Regards


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

        R Offline
        R Offline
        realJSOP
        wrote on last edited by
        #3

        You have to put the email-sending code in a thread or BackgroundWorker object.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        B A 2 Replies Last reply
        0
        • A Ankit Rajpoot

          Please explain your question more clearly. Are you interfacing directly using SMTP or you're using some thrid party library.

          Excuse me for buttin' in, but I'm interrupt driven.

          M Offline
          M Offline
          MadArtSoft
          wrote on last edited by
          #4

          If you're using standard framework class then use Send method or SendAsync to send an email. The SendAsync doesn't block the thread but you'll receive an event only when it will be finished. I think that you can only simulate the progress of sending message till you got a status event from Smtp.

          C# controls, .Net components. Help Desk Software

          1 Reply Last reply
          0
          • A Ankit Rajpoot

            Please explain your question more clearly. Are you interfacing directly using SMTP or you're using some thrid party library.

            Excuse me for buttin' in, but I'm interrupt driven.

            B Offline
            B Offline
            Blue_Boy
            wrote on last edited by
            #5

            Ankit Rajpoot wrote:

            you're using some thrid party library

            No,I am using backgroudnWorker1 compoment.


            I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

            1 Reply Last reply
            0
            • R realJSOP

              You have to put the email-sending code in a thread or BackgroundWorker object.

              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

              B Offline
              B Offline
              Blue_Boy
              wrote on last edited by
              #6

              Thanks for your relpy. I used component BackgroundWorker1 and it works prety cool. I have still one question. When I attach file with seize less then 300KB email is sending very slow! Where could be problem? Can I make it faster to send? Regards


              I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

              1 Reply Last reply
              0
              • R realJSOP

                You have to put the email-sending code in a thread or BackgroundWorker object.

                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                A Offline
                A Offline
                ali dinparvar
                wrote on last edited by
                #7

                hello send code c# Show progressbar while sending email

                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