Hi all,
I am just write a code to send mail using Servlet.Our company site was hosted in a web hosting.I just want to test my code with that hosting.I take the smtp server i.e) smtp.host.com and my question is will authentication needed to send mail? my mail id is rajkumar@companyname.in and if i use this as my from address in the code, does i need to authenticate it?
Please shed some light on this.
Never try to be a hard-worker. Be a smart-worker.
My Blog
Ulf Dittmer wrote:If the mail server is hosted elsewhere then it is a pretty safe bet that authentication will be needed.
But i use my mail id, so why do i need authentication as no one except admins will send those mails.
Anyhow, how could i add the authentication,either put it in properties.?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
If the mail server is hosted elsewhere -meaning not on an internal network- then not requiring authentication would be a security and/or spam disaster waiting to happen. Just think about it.