How can i add my organization Name

Hi i had one quick questions in java mail

I had sucessfully sent E-Mail but i need to display my organization name in the from Address instead of my from-email id

e.g., instead of display aa@yahoo.co.in -- AA Enterprises

Whether it is possbile

Hlp me

Very urgent

Regards

Marimuthu N

[331 byte] By [muthu2007a] at [2007-11-27 7:32:15]
# 1
You can't remplace From by the name of your compagny, you need valid address format for transport SMTPBut put new header 'Organization', readed and displayed by good email client : message.addHeaderLine("Organization: " + "MyCompagny");
alterna at 2007-7-12 19:12:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Forgot something... you can format address From like that :"YourOrganization"<user@domain.com>
alterna at 2007-7-12 19:12:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
InternetAddress myaddr = new InternetAddres("aa@yahoo.co.in", "AA Enterprises");msg.setFrom(myaddr);
bshannona at 2007-7-12 19:12:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
HiThanks a lot ! ! ! for ur helpRegardsMarimuthu.N
muthu2007a at 2007-7-12 19:12:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...