WriteMessage(out, aMail, ContentType_Charset);
WriteMessage(out, aMail);
	private boolean SendSendmail(mail aMail, String ContentType_Charset)	{		try		{				//Create a vector of all Recipients, should include to, cc and bcc recipient			Vector allrecipients = new Vector();			allrecipients.addAll(aMail.getTo());			allrecipients.addAll(aMail.getCC());			allrecipients.addAll(aMail.getBCC());						//Get a string of all recipients email addresses			String recipients = "";						for(int x = 0; x < allrecipients.size(); x++)			{				//Check format of to address does it include a name as well as the email address?				if(((String)allrecipients.elementAt(x)).indexOf("<") != -1)				{					//yes, just add the email address					recipients += " " + ((String)allrecipients.elementAt(x)).substring(((String)allrecipients.elementAt(x)).indexOf("<") + 1, ((String)allrecipients.elementAt(x)).indexOf(">"));				}				else				{					//add the email address					recipients += " " + ((String)allrecipients.elementAt(x));				}			}						//Create a sendmail Process			Process p = Runtime.getRuntime().exec("/usr/sbin/sendmail" + recipients);						//Get a Buffered Print Writer to the Processes stdOut			PrintWriter out = new PrintWriter(p.getOutputStream());						//Send the Message			WriteMessage(out, aMail, ContentType_Charset);						//Close the stdOut			out.close();					}		catch(IOException e)		{			return(false);		}				//Message Sent Succesfully		LOG.info("send-email() message sent using Sendmail " + new Date());		return(true);	}