11161N/A * Copyright (c) 1996-2010 Oracle and/or its affiliates. All rights reserved. 11161N/A * Redistribution and use in source and binary forms, with or without 11161N/A * modification, are permitted provided that the following conditions 11161N/A * - Redistributions of source code must retain the above copyright 11904N/A * notice, this list of conditions and the following disclaimer. 11161N/A * - Redistributions in binary form must reproduce the above copyright 11161N/A * notice, this list of conditions and the following disclaimer in the 11161N/A * documentation and/or other materials provided with the distribution. 11161N/A * - Neither the name of Oracle nor the names of its 11904N/A * contributors may be used to endorse or promote products derived 11161N/A * from this software without specific prior written permission. 11161N/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 11161N/A * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 11161N/A * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 11161N/A * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 11161N/A * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 11161N/A * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 11161N/A * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 11161N/A * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 11161N/A * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 11904N/A * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 11161N/A * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 11904N/A * usage: <code>java msgmultisendsample <i>to from smtp true|false</i></code> 11904N/A * where <i>to</i> and <i>from</i> are the destination and 11904N/A * origin email addresses, respectively, and <i>smtp</i> 11161N/A * is the hostname of the machine that has smtp server 11161N/A * running. The last parameter either turns on or turns off 11161N/A // create some properties and get the default Session 11904N/A // create and fill the first message part // create and fill the second message part // Use setText(text, charset), to show it off ! // create the Multipart and its parts to it // add the Multipart to the message