Posted By:
James_Garfield
Posted On:
Thursday, August 9, 2001 09:22 AM
I am trying to create mail archive using JavaMail. I have a code working with pop3 server, now I need to interact with Send Mail server and access mail from it. Code below shows accessing of the pop3 server. What do I need to change to access a Send Mail server? // Get the store try{ store=session.getStore("pop3"); store.connect(host, username, password); }catch(NoSuchProviderException e){ e.printStackTrace(); }catch(MessagingException e){ e.printStackTrace(); // System.out.println("Message is: " + e.getMessage()); }
More>>
I am trying to create mail archive using JavaMail. I have a code working with pop3 server, now I need to interact with Send Mail server and access mail from it.
Code below shows accessing of the pop3 server. What do I need to change to access a Send Mail server?
// Get the store
try{
store=session.getStore("pop3");
store.connect(host, username, password);
}catch(NoSuchProviderException e){
e.printStackTrace();
}catch(MessagingException e){
e.printStackTrace();
// System.out.println("Message is: " + e.getMessage());
}
Thanks in advance for any help.
<<Less