aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Is the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Is the "From" Email Address Necessary? " Watch "Is the "From" Email Address Necessary? " New topic
Author

Is the "From" Email Address Necessary?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am developing a web site. Users of this web site can send e-mails. And the JavaMail is deployed to facilitate this feature.

A 'form' is provided for users to send e-mails. And the form has these text fields: From, To, Subject, Message.

I am going to use getRemoteUser() to obtain the userID of the person who is sending e-mails and fill out the 'From' text field with this userID.

Does the 'From' has to be an e-mail address in order to use the JavaMail standard send message code? In my case, users do not have to fill out their own e-mail addresses. Their userID gets entered in the 'From' text field automatically.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Does the 'From' has to be an e-mail address in order to use the JavaMail standard send message code?

No - it can be anything you like. But your SMTP server might have restrictions on this.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is the "From" Email Address Necessary?