To Send email using JAVAMail API, you need to download the following two jar files on your package.

  • mail.jar
  • activation.jar

go to the Oracle site to download the latest version.

Example of sending email with html content using JavaMail API

import java.util.*;  

import javax.mail.*;  

import javax.mail.internet.*;  

import javax.activation.*;  

  

class SendHtmlEmail  

{  

   public static void main(String [] args)  

   {  

      String host=”smpt.gmail.com”;//change accordingly  

      String to=”senderemail@gmail.com”;//change accordingly  

      final String user=”youremail@gmail.com”;//change accordingly  

      final String password=”yourgmailpassword”;//change accordingly  

        Properties properties = System.getProperties();  

      properties.setProperty(“mail.smtp.host”, );  

      properties.put(“mail.smtp.auth”, “true”);  

     Session session = Session.getDefaultInstance(properties,  

    new javax.mail.Authenticator() {  

     protected PasswordAuthentication getPasswordAuthentication() {  

      return new PasswordAuthentication(user,password);  

     }  

      });  

        try{  

         MimeMessage message = new MimeMessage(session);  

         message.setFrom(new InternetAddress(user));  

         message.addRecipient(Message.RecipientType.TO,  

                                  new InternetAddress(to));  

          message.setSubject(“HTML Message”);  

        message.setContent(“<h1>sending html mail check</h1>”,”text/html” );  

           Transport.send(message);  

         System.out.println(“message sent….”);  

      }catch (MessagingException ex) {ex.printStackTrace();}  

   }  

}  

A laptop has several phases of “just won’t start.” The problem is compounded because a laptop has two power sources: When AC isn’t available, electricity is drawn from the laptop’s battery. So you know immediately that when the laptop doesn’t turn on right away, you have a power supply issue. If the laptop appears dead, you have a power supply issue. Here’s how to troubleshoot:

  • Check to ensure that the laptop is plugged in.
  • Check to ensure that the battery is properly installed.
  • Try removing the battery to run the laptop from just the AC power. If it works, you may have a defective battery that needs replacing.
  • If you have a second battery, use it instead.
  • Check the power brick on the AC cord. Is it the right adapter for your laptop? Other portable devices may have similar-looking adapters, but unless they match the volts and amps for your laptop, the laptop doesn’t work. (Not that this has ever happened to me.)
  • Volts and Amps would be great team names. Imagine them playing each other. It would be electric.
  • When the laptop’s power lamp is on, it shows that the laptop has some life. It means that the laptop’s hardware is recognizing that it has power. The problem could then lie with the laptop’s hardware, not with the power supply.
  • When your laptop has separate lamps for the AC power and battery, you can check both. If the AC lamp lights but the battery doesn’t, it’s a battery issue. When the battery lamp is lit but the AC lamp remains dark, the AC power brick might be dead or the AC power from the wall might be messed up or you might have a connection issue.
  • If you consider yourself to be technically proficient, you can try testing some hardware. For example, if the laptop has removable disk drives, check to ensure that they’re properly connected: With the laptop’s power off, take out the drives and put them back in again. Ditto for the PC’s memory card: Turn off the laptop, remove the memory, and then put the memory back.
  • Laptops don’t start when they’re broken. I’m not being flip, either: Laptop hardware can fail. Failed electronics are covered by most laptop warranties. You need to get support by contacting the laptop manufacturer.
  • Press the Caps Lock key. If you have power, the Caps Lock lamp on the laptop will blink on and off as you press the key. If so, the problem could be the display.
  • Check the laptop display’s brightness settings. If the brightness level is turned down too much, the screen will be dark, especially in a bright room or in direct sunlight. Try turning up the brightness all the way to see whether the screen glows.
  • Plug an external monitor into the laptop’s monitor port. If the external monitor works, the problem is with the laptop’s display only, not with the laptop’s display adapter or other internal hardware. Because the laptop and monitor are the same thing, fixing the monitor (or the display adapter) involves replacing major laptop components. You must return the laptop to the dealer for repair.
Employee Profile Management System Source Code in PHP file for Free

OVERVIEW:

Employee Profile Management System PHP Source code, Download for Free.

Running a Small and Mid Size company in not an easy task. For HR and Admin will face a lot of issues in managing their own employee details in Excel Sheet. Sometimes data might be loss. In this case, Having an online Employee Profile Management System will help.

Employee Profile Management System project is developed using PHP, CSS, HTML, and JavaScript.

How to Use it?

  1. Install XAMPP or WAMP Server
  2. Start Apache and MySQL in XAMPP / WAMP server

Once Started, Follow the below Steps: Thats all!!!

  1. Extract the downloaded file (rename it as EPMS)
  2. Copy the EPMS folder
  3. Paste inside the folder xampp/htdocs/
  4. Open any browser and go to URL “http://localhost/phpmyadmin/”
  5. Then, click on databases tab
  6. Create database “hrms”
  7. Once Created Click import button and select SQL
  8. Browse file and select “hrms.sql” file, inside “db” folder
  9. Click Go Button.
  10. Open a browser and go to URL “http://localhost/EPMS”

If you have any Doubt, comment it. Click here to Download.
Download

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Read More
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Read More
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Read More
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Read More