Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Send mail with no sender address using Javamail

843830May 17 2004 — edited May 17 2004
I'm trying to send emails using javamail, it works fine but I would like to send emails with no sender address. When I don't set :

message.setFrom(new InternetAddress("test@test.com"));

or do just

message.setFrom()

I get my_user_name@my_machine_name as the sender address when i recieve the email.
I understand the security problems about sending emails without sender but i need to automate the sending of confirmation messages that recievers can't answer to.

Quentin.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2004
Added on May 17 2004
1 comment
484 views