
/**
 * Title: SMTP Component
 * Description: The purpose of this module is to send email with order record
 *              information to the address specified by the Congo BackOffice.
 * Copyright:    Copyright (c) 2001
 * Company:  ICS 52, University of California, Irvine
 * @author: Girish Suryanarayana
 * @version 1.0
 */

public class SMTPComponent implements SMTPInterface {

  public SMTPComponent() {
  }

  // Sends an email to the recipient from the sender with the relevant subject
  // and message.
  public boolean sendEmail (String sender, String recipient, String subject,
                                                              String message) {

       System.out.println("From: " + sender);
       System.out.println("To: " + recipient);
       System.out.println("Subject: " + subject);
       System.out.println("************ START OF MESSAGE ************" + "\n");
       System.out.println(message + "\n");
       System.out.println("************ END OF MESSAGE ************");

       return true;
  }
}