Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what can be the sender's email ID ? + Java Mail API

Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

I have written a small application to send mail using Java Mail API.

I have used my company's hostname to setup mail server.

and i would like to know wather i can send mail from other email id other than my company's id.

for eg :

my company name is ABC and my email id is

from :

can i send mail from my hotmail/gmail/yahoo id like bellow

from : or // is this valid ?

and if it is not valid than on what properties it depends ???

2) and the second question is when i say

to setup mail server... why there are two arguements ???
[ January 17, 2007: Message edited by: Jigar Naik ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic