Question
what is Message in javamail api?

Answers

After creating session object, create message to send by using Message class. Because of message class is abstract class so we will use subclass javax.mail.internet.MimeMessage.
MimeMessage message = new MimeMessage(session) // set the content of message by setContent() methodmessage.setContent(“www.roseindia.net”, "text/plain");We can also use setText() method to set the content.Message.setText("www.roseindia.net");To create subject line of sending message use setSubject() method.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Find the product using suitable property 7x (50-2)
  • Q Shape milky way galaxy?
  • Q Explain ALTER Table statement in Hive?
  • Q Can you update your own content on the site
  • Q When is World Blind Day/World Sight Day observed?
  • Q State bank of India have overall ______ ATMs after merger, in India.
  • Q Is it possible to use jquery together with ajax?
  • Q According to Chapter 12 of the textbook, the causes of workplace accidents fall into 3 categories. Name one of these.
  • Q Whats is location of access_log file ?
  • Q In Downtown Disney in WDW there is a restaurant on aboat named Fulton’s Crab House, what was it called before that?
  • Q Which is likely to motivate an enthusiastic capable team member most: doubling their target, agreeing additional responsibility, a bonus payment, a new car?