File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes setting from email address in JavaMail Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "setting from email address in JavaMail " Watch "setting from email address in JavaMail " New topic
Author

setting from email address in JavaMail

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1863
hi,
i know that we can set from email address in JavaMail using msg.setFrom() method.
but i want that instead of email address my name. this is what usually happens when we use OutLook or other mail clients. right? i hope u r getting what i'm trying to say.
how can i do that? is there a way out? or some other customise API allowing us to do that? or any pointers to go about it?
regards
maulin.


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214

Should work I think


I have no java certifications. <br />This makes me a bad programmer.<br />Ignore my post.
 
 
subject: setting from email address in JavaMail
 
Threads others viewed
Best way to create a dynamic HTML Email from a servlet
Verifying email address
Sending mails from someone's address
send email with web page textarea contents
Problem sending mails when from-email-address is different from from-smtp-server
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com