Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How change smtp port in javamail

Status
Not open for further replies.

jshanoo

Programmer
Apr 2, 2002
287
IN
Hi all,
First let me confess I am a novice in java.
We have this specific application which continually send mails using, by default it is assumed as port ý25ý .
Now we want to change to some thing else
Following is the code:
ý------------------------------------
Transport transport = session.getTransport("smtp");

transport.addConnectionListener(conHandler);
transport.addTransportListener(transHandler);
transport.connect(mailHost,"","");
transport.sendMessage(message,message.getAllRecipients());
ý----------------------------------

Can any one please help me on this.
Regards
John Philip


*** Even the Best, did the Bad and Made the Best ***

John Philip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top