• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Was Authentication needed?

 
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need to ask whoever administers the SMTP server.
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Sturrock wrote:You will need to ask whoever administers the SMTP server.


You mean to godaddy?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the mail server is hosted elsewhere then it is a pretty safe bet that authentication will be needed.
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Code for how to use authentication with JavaMail can be found at http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
reply
    Bookmark Topic Watch Topic
  • New Topic