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. Java
  4. what does this mean?

what does this mean?

Scheduled Pinned Locked Moved Java
question
8 Posts 5 Posters 1 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.
  • P Offline
    P Offline
    pancakeleh
    wrote on last edited by
    #1

    i have this in my code:

    properties props = new properties();
    props.put("mail.transport.protocol", "smtps");

    How do i replace those "properties.put" without having to use the properties ?

    T L B 3 Replies Last reply
    0
    • P pancakeleh

      i have this in my code:

      properties props = new properties();
      props.put("mail.transport.protocol", "smtps");

      How do i replace those "properties.put" without having to use the properties ?

      T Offline
      T Offline
      TorstenH
      wrote on last edited by
      #2

      cool - it took just 2 weeks to figure out properties - fantastic! You can write your own properties-file. It is a basic ASCII text file. Or you save your data on an object. This requires programming. regards Torsten

      I never finish anyth...

      P 1 Reply Last reply
      0
      • T TorstenH

        cool - it took just 2 weeks to figure out properties - fantastic! You can write your own properties-file. It is a basic ASCII text file. Or you save your data on an object. This requires programming. regards Torsten

        I never finish anyth...

        P Offline
        P Offline
        pancakeleh
        wrote on last edited by
        #3

        yes i managed to figure out. i am teaching myself programming. Yes i manage to learn how to write a properties file alrdy..

        1 Reply Last reply
        0
        • P pancakeleh

          i have this in my code:

          properties props = new properties();
          props.put("mail.transport.protocol", "smtps");

          How do i replace those "properties.put" without having to use the properties ?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          pancakeleh wrote:

          How do i replace those "properties.put" without having to use the properties ?

          What does this sentence mean? Are you saying that you want to write into your properties file without using the properties class?

          I must get a clever new signature for 2011.

          P 1 Reply Last reply
          0
          • L Lost User

            pancakeleh wrote:

            How do i replace those "properties.put" without having to use the properties ?

            What does this sentence mean? Are you saying that you want to write into your properties file without using the properties class?

            I must get a clever new signature for 2011.

            P Offline
            P Offline
            pancakeleh
            wrote on last edited by
            #5

            oh the "prooperties.put" refers to writing to the properties file without having to key it in the properites file?

            modified on Monday, January 31, 2011 8:27 PM

            C L 2 Replies Last reply
            0
            • P pancakeleh

              oh the "prooperties.put" refers to writing to the properties file without having to key it in the properites file?

              modified on Monday, January 31, 2011 8:27 PM

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              pancakeleh wrote:

              oh the "prooperties.put" refers to writing to the properties file without having to key it in the properites file?

              :doh: The key is "mail.transport.protocol" and the value is "smtp".

              Cédric Moonen Software developer
              Charting control [v3.0] OpenGL game tutorial in C++

              1 Reply Last reply
              0
              • P pancakeleh

                oh the "prooperties.put" refers to writing to the properties file without having to key it in the properites file?

                modified on Monday, January 31, 2011 8:27 PM

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                pancakeleh wrote:

                writing to the properties file without having to key it in the properites file?

                Still does not make sense. Try a full explanation of exactly what it is you are trying to achieve.

                I must get a clever new signature for 2011.

                1 Reply Last reply
                0
                • P pancakeleh

                  i have this in my code:

                  properties props = new properties();
                  props.put("mail.transport.protocol", "smtps");

                  How do i replace those "properties.put" without having to use the properties ?

                  B Offline
                  B Offline
                  bhavitk
                  wrote on last edited by
                  #8

                  for this line of code: this line sets the properties for sending mail. like u can put smtp.gmail.com (set host)for sending mail from gmail account.. and second argument is for port for gmail 587/465 default port is 25/26. got it ? you can ask me for more information

                  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