• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send email without specifying SMTP PORT NO: using apache commons

 
Neha George
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am given sender's email id,password and Smtp host name to send a mail in apache commons. I am able to code if smtp port number is given..is there any code to send mail without smtp port number.
Please do help me asap...
Thanks in advance
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One has to know the SMTP port number to communicate with it ! The default port number is 25 and I would be surprised if your server differed from this but if it did then you would have to know what is is and to explicitly specify it anyway!
 
Neha George
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Richard Tookey ,

Sorry for late response.I could send email without using port number.

Thanks a lot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic