Re: Smtp Server error with JavaMail

Discussion in 'Java' started by Sudsy, Jul 16, 2003.

  1. Sudsy

    Sudsy Guest

    Federico wrote:
    > Hi all,

    <snip>
    > transport = session.getTransport("smtp");

    <snip>

    Why are you doing this? I just use:

    transport = session.getTransport();

    Javadocs say this:

    getTransport()
    Get a Transport object that implements this user's desired Transport
    protcol.

    I've never had to give it an argument.
    Sudsy, Jul 16, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joseph Millar

    Re: Smtp Server error with JavaMail

    Joseph Millar, Jul 16, 2003, in forum: Java
    Replies:
    0
    Views:
    620
    Joseph Millar
    Jul 16, 2003
  2. GaryM
    Replies:
    8
    Views:
    19,720
    Scott Yanoff
    Jul 21, 2003
  3. mrby
    Replies:
    6
    Views:
    883
    GaryM
    May 6, 2004
  4. Rico
    Replies:
    1
    Views:
    8,755
  5. ameyas7
    Replies:
    3
    Views:
    1,818
    javabytes
    Aug 31, 2007
Loading...

Share This Page