Skip to content

Latest commit

 

History

History
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Readme: AWS SDK for Java - Amazon Simple Email Service JavaMail Sample</title>
<style type="text/css">
/* --------------------------------------------- */
/*  AWS Developer Content Styles                 */
/* --------------------------------------------- */

body, div, p, td, th {
    font-family : helvetica,sans-serif, arial;
    font-size : 12px;
    color : #000000;
}

.aws-h1, h1{
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #000000;
}
.aws-h2, h2{
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 14px;
	color: #c60;
}
.aws-h3, h3{
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #333333;
}

/*table ID selector styles*/
#aws-table {
  border-top: 1px solid #cccccc;
  border-left: 1px solid #cccccc;
  width:95%;
}

#aws-table td{
  font-size: 12px;
  padding: 5px 5px 5px 5px;
  border-bottom: 1px solid #cccccc;
  border-right: 1px solid #cccccc;
  vertical-align:top;
}

#aws-table th {
  font-size: 12px;
  padding: 5px 5px 5px 5px;
  border-bottom: 1px solid #cccccc;
  border-right: 1px solid #cccccc;
  vertical-align:top;
  background-color: #eeeeee;
  color: #333333;
  font-size: 12px;
  font-weight: bold;
  text-align: left;
}

/*code, note, and example styles*/
.aws-code .programlisting{
	font-family: "Courier New", Courier, mono;
	font-size: 12px;
	margin-top: 5px;
	margin-bottom: 5px;
	color: #000066;
	padding: 5px;
	background-color: #eff7ff;
	border: 1px dashed #333;
	width:99%;
}
.aws-code-inline {
	font-family: "Courier New", Courier, mono;
	font-size: 11px;
}
.aws-note {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-bottom-color: #CCCCCC;
	border-left-color: #CCCCCC;
	padding: 10px;
	width:95%;
	margin-left: 20px;
	margin-right: 20px;
}
</style>
</head>
<body>
<h1>Amazon Simple Email Service JavaMail Sample</h1>
This sample demonstrates how to send email using the AWS Simple Email Service JavaMail provider from the AWS SDK for Java.
<h2>Prerequisites</h2>
<ul>
  <li>You must have a valid Amazon Web Services developer account.</li>
  <li>Requires the AWS SDK for Java. For more information on the AWS SDK for Java, see <a href="http://aws.amazon.com/sdkforjava">http://aws.amazon.com/sdkforjava</a>.</li>
  <li>You must be signed up for the following services:
    <ul>
      <li>Amazon Simple Email Service. For more information, see <a href="http://aws.amazon.com/ses">http://aws.amazon.com/ses</a>.</li>
    </ul>
  </li>
  </ul>
<h2>Running the Sample</h2>
<p>The basic steps for running this sample are:</p>
<ol>
  <li>Open the AwsCredentials.properties       in the sample folder.</li>
  <li>Locate the following       section and fill in your Access Key ID and Secret Access Key:<br />
      <br />
      <code># Fill in your AWS Access Key ID and Secret Access Key<br />
        # <a href="http://aws.amazon.com/security-credentials">http://aws.amazon.com/security-credentials</a><br />
        accessKey =<br />
        secretKey =</code><br />
  </li>
  <li>Save the file.</li>
  <li>Run the <code>AWSJavaMailSample.java</code> file, located in the same directory as the properties file. The sample prints information to the standard       output.</li>
</ol>
<p><span class="aws-note"><strong>NOTE:</strong> The sample also includes an  Ant build.xml file to run the sample.</span></p>
</body>
</html>