0 Replies Latest reply on Jan 16, 2009 5:12 AM by ram sita

    In jboss-4.2.3.GA , email attactments are not working

    ram sita Newbie

      i am using javamail(jboss-4.2.3.GA) and trying to send the attachment but it is not working though its was working in jboss-4.0.4.GA.

      the junk character i got was something like this

      Production File
      ------=_Part_6_20829114.1232094839117
      Content-Type: text/plain; name="c:/ProductionFiles/327.xls"
      Content-Transfer-Encoding: base64
      Content-Disposition: attachment; filename="c:/ProductionFiles/327.xls"

      0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAOwADAP7/CQAGAAAAAAAAAAAAAAABAAAADgAAAAAAAAAA
      EAAA/v///wAAAAD+////AAAAAA8AAAD/////////////////////////////////////////////
      ////////////////////////////////////////////////////////////////////////////
      ////////////////////////////////////////////////////////////////////////////
      ////////////////////////////////////////////////////////////////////////////
      ////////////////////////////////////////////////////////////////////////////
      ////////////////////////////////////////////////////////////////////////////
      ////////////////////////////////////////////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////8J
      CBAAAAYFANMQzAdBAAAABgAAAOEAAgCwBMEAAgAAAOIAAABcAHAABAAAc2hhc2hpa2FudC5yYWph
      ayAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
      ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEIAAgCwBGEBAgAAAD0BAgAAAJwA
      AgAOABkAAgAAABIAAgAAABMAAgAAAK8BAgAAALwBAgAAAD0AEgBoAQ4BXDq+IzgAAAAAAAEA
      AgAOABkAAgAAABIAAgAAABMAAgAAAK8BAgAAALwBAgAAAD0AEgBoAQ4BXDq+WAJA
      AAIAAACNAAIAAAAiAAIAAAAOAAIAAQC3AQIAAADaAAIAAAAxABoAyAAAAP9/kAEAAAAAAAAFAUEA
      cgBpAGEAbAAxABoAyAAAAP9/kAEAAAAAAAAFAUEAcgBpAGEAbAAxABoAyAAAAP9/kAEAAAAAAAAF
      AUEAcgBpAGEAbAAxABoAyAAAAP9/kAEAAAAAAAAFAUEAcgBpAGEAbAAeBBwABQAXAAAiJCIjLCMj
      MF8pO1woIiQiIywjIzBcKR4EIQAGABwAACIkIiMsIyMwXyk7W1JlZF1cKCIkIiMsIyMwXCkeBCIA
      BwAdAAAiJCIjLCMjMC4wMF8pO1woIiQiIywjIzAuMDBcKR4EJwAIACIAACIkIiMsIyMwLjAwXyk7
      W1JlZF1cKCIkIiMsIyMwLjAwXCkeBDcAKgAyAABfKCIkIiogIywjIzBfKTtfKCIkIiogXCgjLCMj
      MFwpO18oIiQiKiAiLSJfKTtfKEBfKR4ELgApACkAAF8oKiAjLCMjMF8pO18oKiBcKCMsIyMwXCk7
      XygqICItIl8pO18oQF8pHgQ/ACwAOgAAXygiJCIqICMsIyMwLjAwXyk7XygiJCIqIFwoIywjIzAu
      MDBcKTtfKCIkIiogIi0iPz9fKTtfKEBfKR4ENgArADEAAF8oKiAjLCMjMC4wMF8pO18oKiBcKCMs
      IyMwLjAwXCk7XygqICItIj8/Xyk7XyhAXyngABQAAAAAAPX/IAAAAAAAAAAAAAAAwCDgABQAAQAA
      APX/IAAA9AAAAAAAAAAAwCDgABQAAQAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAgAAAPX/IAAA9AAA
      AAAAAAAAwCDgABQAAgAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAAAAAPX/IAAA9AAAAAAAAAAAwCDg
      ABQAAAAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAAAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAAAAAPX/
      IAAA9AAAAAAAAAAAwCDgABQAAAAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAAAAAPX/IAAA9AAAAAAA
      AAAAwCDgABQAAAAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAAAAAPX/IAAA9AAAAAAAAAAAwCDgABQA
      AAAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAAAAAPX/IAAA9AAAAAAAAAAAwCDgABQAAAAAAAEAIAAA
      AAAAAAAAAAA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wCAAANDAyMzc2MjkOAAA2
      MjIyNzQ2MzMwNzkxMggAADM2NzQwMTE2DgAANjIyOTUyNDUxOTQ0NDUIAAAzNjg4ODIyNw4AADYy
      MjEwNDI3NjQyNDAwCAAAMzk1Njc4MjkOAAA2MjIyNDE2NTA5NjM4MAgAADQwMjU5MTUzDgAANjIy
      MjQ1MDg2OTM5MTkIAAAzNzU1ODAyNg4AADYyMjkzMzQ5OTU4MzI4CAAANDAwNjk5MzcOAAA2MjIx
      MDA3NDE1ODIzOQgAADM5NDIxMjEzDgAANjIyMjM3MjgyOTc2MDAIAAAzNjkwNDU1MA4AADYyMjI0
      MTQ3NTkzOTQyCAAANDAyNjUyOTYOAAA2MjIxMzA0Mjk0OTA5MwgAADM2ODg4MDAyDgAANjIyMjgw
      MTYzODY3OTEIAAA0MjEwNDE1NA4AADYyMjIzMTkyNzE2MDEwCAAAMzQwMzA2MzEOAAA2MjIxMzE5
      NDEzMjU0OAgAADQwMjM3MTM2DgAANjIyMTM2OTg3OTc5NTIIAAA0MDA3MTMxMQ4AADYyMjI2NTU5
      NjQ3OTgzCAAAMzc0MDY0NTIOAAA2MjI4OTc3NzYyNzY0MQgAADM2OTAzMTM1/wBSAAgAVAUAAAwA
      AAC+BQAAdgAAADQGAADsAAAApAYAAFwBAAAUBwAAzAEAAIQHAAA8AgAA9AcAAKwCAABkCAAA
      AAC+HAMA
      ANQIAACMAwAARAkAAPwDAAAKAAAACQgQAAAGEAC7DcwHwQAAAAYAAAANAAIAAQAMAAIAZAAPAAIA
      AQARAAIAAAAQAAgA/Knx0k1iUD9fAAIAAQAqAAIAAAArAAIAAACCAAIAAQCAAAgAAAAAAAAAAAAl
      AgQAAAD/AIEAAgDBBBsAAgAAABoAAgAAABQAAAAVAAAAgwACAAAAhAACAAAAoQAiAAEAZAABAAEA
      AQACACwBLAEAAAAAAADgPwAAAAAAAOA/AABVAAIACAAAAg4AAAAAAB8AAAAAAAcAAAD9AAoAAAAA
      AA8AAAAAAP0ACgAAAAEADwABAAAA/QAKAAAAAgAPAAIAAAD9AAoAAAADAA8AAwAAAP0ACgAAAAQA
      DwAEAAAA/QAKAAAABQAPAAUAAAD9AAoAAAAGAA8ABgAAAP0ACgAAAAcADwAHAAAA/QAKAAEAAAAP
      AAgAAAD9AAoAAQABAA8ACQAAAP0ACgABAAIADwAKAAAA/QAKAAEAAwAPAAsAAAD9AAoAAQAEAA8A
      DAAAAP0ACgABAAUADwANAAAA/QAKAAEABgAPAA4AAAADAg4AAQAHAA8AAAAAAABAj0D9AAoAAgAA
      AA8ADwAAAP0ACgACAAEADwAQAAAA/QAKAAIAAgAPAAoAAAD9AAoAAgADAA8ACwAAAP0ACgACAAQA
      DwAMAAAA/QAKAAIABQAPAA0AAAD9AAoAAgAGAA8ADgAAAAMCDgACAAcADwAAAAAAAECPQP0ACgAD
      AAAADwARAAAA/QAKAAMAAQAPABIAAAD9AAoAAwACAA8ACgAAAP0ACgADAAMADwALAAAA/QAKAAMA
      BAAPAAwAAAD9AAoAAwAFAA8ADQAAAP0ACgADAAYADwAOAAAAAwIOAAMABwAPAAAAAAAAQI9A/QAK
      AAQAAAAPABMAAAD9AAoABAABAA8AFAAAAP0ACgAEAAIADwAKAAAA/QAKAAQAAwAPAAsAAAD9AAoA
      BAAEAA8ADAAAAP0ACgAEAAUADwANAAAA/QAKAAQABgAPAA4AAAADAg4ABAAHAA8AAAAAAABAj0D9
      AAoABQAAAA8AFQAAAP0ACgAFAAEADwAWAAAA/QAKAAUAAgAPAAoAAAD9AAoABQADAA8ACwAAAP0A
      CgAFAAQADwAMAAAA/QAKAAUABQAPAA0AAAD9AAoABQAGAA8ADgAAAAMCDgAFAAcADwAAAAAAAECP
      QP0ACgAGAAAADwAXAAAA/QAKAAYAAQAPABgAAAD9AAoABgACAA8ACgAAAP0ACgAGAAMADwALAAAA
      /QAKAAYABAAPAAwAAAD9AAoABgAFAA8ADQAAAP0ACgAGAAYADwAOAAAAAwIOAAYABwAPAAAAAAAA
      QI9A/QAKAAcAAAAPABkAAAD9AAoABwABAA8AGgAAAP0ACgAHAAIADwAKAAAA/QAKAAcAAwAPAAsA
      AAD9AAoABwAEAA8ADAAAAP0ACgAHAAUADwANAAAA/QAKAAcABgAPAA4AAAADAg4ABwAHAA8AAAAA
      AABAj0D9AAoACAAAAA8AGwAAAP0ACgAIAAEADwAcAAAA/QAKAAgAAgAPAAoAAAD9AAoACAADAA8A
      CwAAAP0ACgAIAAQADwAMAAAA/QAKAAgABQAPAA0AAAD9AAoACAAGAA8ADgAAAAMCDgAIAAcADwAA
      AAAAAECPQP0ACgAJAAAADwAdAAAA/QAKAAkAAQAPAB4AAAD9AAoACQACAA8ACgAAAP0ACgAJAAMA
      DwALAAAA/QAKAAkABAAPAAwAAAD9AAoACQAFAA8ADQAAAP0ACgAJAAYADwAOAAAAAwIOAAkABwAP
      AAAAAAAAQI9A/QAKAAoAAAAPAB8AAAD9AAoACgABAA8AIAAAAP0ACgAKAAIADwAKAAAA/QAKAAoA
      AwAPAAsAAAD9AAoACgAEAA8ADAAAAP0ACgAKAAUADwANAAAA/QAKAAoABgAPAA4AAAADAg4ACgAH
      AA8AAAAAAABAj0D9AAoACwAAAA8AIQAAAP0ACgALAAEADwAiAAAA/QAKAAsAAgAPAAoAAAD9AAoA
      CwADAA8ACwAAAP0ACgALAAQADwAMAAAA/QAKAAsABQAPAA0AAAD9AAoACwAGAA8ADgAAAAMCDgAL
      AAcADwAAAAAAAECPQP0ACgAMAAAADwAjAAAA/QAKAAwAAQAPACQAAAD9AAoADAACAA8ACgAAAP0A
      CgAMAAMADwALAAAA/QAKAAwABAAPAAwAAAD9AAoADAAFAA8ADQAAAP0ACgAMAAYADwAOAAAAAwIO
      AAwABwAPAAAAAAAAQI9A/QAKAA0AAAAPACUAAAD9AAoADQABAA8AJgAAAP0ACgANAAIADwAKAAAA
      /QAKAA0AAwAPAAsAAAD9AAoADQAEAA8ADAAAAP0ACgANAAUADwANAAAA/QAKAA0ABgAPAA4AAAAD
      Ag4ADQAHAA8AAAAAAABAj0D9AAoADgAAAA8AJwAAAP0ACgAOAAEADwAoAAAA/QAKAA4AAgAPAAoA
      AAD9AAoADgADAA8ACwAAAP0ACgAOAAQADwAMAAAA/QAKAA4ABQAPAA0AAAD9AAoADgAGAA8ADgAA
      AAMCDgAOAAcADwAAAAAAAECPQP0ACgAPAAAADwApAAAA/QAKAA8AAQAPACoAAAD9AAoADwACAA8A
      CgAAAP0ACgAPAAMADwALAAAA/QAKAA8ABAAPAAwAAAD9AAoADwAFAA8ADQAAAP0ACgAPAAYADwAO
      AAAAAwIOAA8ABwAPAAAAAAAAQI9A/QAKABAAAAAPACsAAAD9A


      I the changed the encoding to 7bit , also to binary but i was not getting the file . only i get is different types of junk character.
      The mail was sent to microsoft server exchage (outlook)