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. how to send a file by SMTP or POP3

how to send a file by SMTP or POP3

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
8 Posts 4 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
    Amin Diary
    wrote on last edited by
    #1

    i want to send a file ( pic1.jpg ) by e-mail! but without any openDilogFile for choosing file! i know the path of file! just C# coding for attach and send it ! any one can help me?:doh:

    Imposible is Imposible...

    C K 2 Replies Last reply
    0
    • A Amin Diary

      i want to send a file ( pic1.jpg ) by e-mail! but without any openDilogFile for choosing file! i know the path of file! just C# coding for attach and send it ! any one can help me?:doh:

      Imposible is Imposible...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Funny[^] how the first few google hits always include an article on this site.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      A 1 Reply Last reply
      0
      • C Christian Graus

        Funny[^] how the first few google hits always include an article on this site.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        A Offline
        A Offline
        Amin Diary
        wrote on last edited by
        #3

        this is my answer!?!?!?!:^):sigh:

        Imposible is Imposible...

        P C 2 Replies Last reply
        0
        • A Amin Diary

          this is my answer!?!?!?!:^):sigh:

          Imposible is Imposible...

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Amin Diary wrote:

          this is my answer!?!?!?!

          Yup. We don't do your work for you. We'll help you with specific problems, but we're not here to do your job. Tell you what - give us your pay and we'll write the code for you. Seems fair.

          Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          • A Amin Diary

            i want to send a file ( pic1.jpg ) by e-mail! but without any openDilogFile for choosing file! i know the path of file! just C# coding for attach and send it ! any one can help me?:doh:

            Imposible is Imposible...

            K Offline
            K Offline
            kkun
            wrote on last edited by
            #5

            //but without any openDilogFile for choosing file like this below ,using javascript ,not C#, html: [附件](#) | js: //附件 function Upload(){ var oEdit = eval(this.ObjUpload); oEdit.click(); } //上传文件 function OnFileLoad() { var oFile = eval(this.ObjUpload);//max 61 var oFileName = oFile.value.substring(oFile.value.lastIndexOf(".")+1,oFile.value.length); if( oFileName.toLowerCase() != "txt" && oFileName.toLowerCase() != "text" &&//-文本文件 oFileName.toLowerCase() != "rar" && oFileName.toLowerCase() != "zip" &&//-压缩文件 oFileName.toLowerCase() != "bmp" && oFileName.toLowerCase() != "jpg" &&//-图片文件 oFileName.toLowerCase() != "jpeg" && oFileName.toLowerCase() != "gif" && oFileName.toLowerCase() != "png" ) { this.ObjUploadFile.innerHTML = "![\"附件\"](\"Images/oFile.gif\") 不允许上传的文件类型![ " + oFileName + " ]"; return ; } this.ObjUploadFile.innerHTML = "![\"附件\"](\"Images/oFile.gif\") " + oFile.value; }

            1 Reply Last reply
            0
            • A Amin Diary

              this is my answer!?!?!?!:^):sigh:

              Imposible is Imposible...

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              People who are obsessed with the rating system on this site will answer a question like this. I care more about helping people who want to learn, and the best way I can do that, is to show you how trivially you could have got far more detailed help than you'll get from a forum response, by typing some obvious keywords into google. That I'm not trying to co-erce a 5 vote out of you doesn't mean I'm not the one who has your best interests at heart.

              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              P 1 Reply Last reply
              0
              • C Christian Graus

                People who are obsessed with the rating system on this site will answer a question like this. I care more about helping people who want to learn, and the best way I can do that, is to show you how trivially you could have got far more detailed help than you'll get from a forum response, by typing some obvious keywords into google. That I'm not trying to co-erce a 5 vote out of you doesn't mean I'm not the one who has your best interests at heart.

                Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                Christian Graus wrote:

                That I'm not trying to co-erce a 5 vote out of you doesn't mean I'm not the one who has your best interests at heart.

                Good answer. It coerced my 5.;)

                Deja View - the feeling that you've seen this post before.

                C 1 Reply Last reply
                0
                • P Pete OHanlon

                  Christian Graus wrote:

                  That I'm not trying to co-erce a 5 vote out of you doesn't mean I'm not the one who has your best interests at heart.

                  Good answer. It coerced my 5.;)

                  Deja View - the feeling that you've seen this post before.

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  *grin*

                  Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                  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