<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;">
<p>You will install Sun&#8217;s JavaMail reference implementation .After you install the Sun&#8217;s JavaMail reference then introduce the demonstration programs that come with the reference implementation.</p>
<h2>Then using the some special Task to established JavaMail API Environment setup:<br />
<b></b></h2>
<p><b>Task 1:</b> firstly Download the latest version of the JavaMail Implementation from Sun.</p>
<p><b>Task 2:</b> After JavaMail download to latest version for<b><a href="http://www.oracle.com/technetwork/java/javase/index-jsp-136939.html" target="_blank" rel="noopener"> JavaBeans Activation Framework from Sun</a></b>.</p>
<p><b>Task 3:</b> Then both downloaded packages Unzip. you get the ZIP file for all platform for both packages.</p>
<p><b>Task 4:</b> using the jar tool to Unzip these packages .</p>
<p><b>Task 5: </b>Add the mail.jar file from the <b><a href="http://www.oracle.com/technetwork/java/javamail/index.html" target="_blank" rel="noopener">JavaMail 1.5 download</a></b> and the <b><a href="http://www.oracle.com/technetwork/java/javase/index-jsp-136939.html" target="_blank" rel="noopener">activation.jar file</a></b> from the JavaBeans Activation Framework download to your CLASSPATH.</p>
<p><b>Task 6: </b>Then total files copy into your extension library directory. The default installation copy using for Microsoft Windows, the command look like the following:</p>
<p><i>cd javamail-1.2</i><br />
<i>copy mail.jar jdkjrelibext</i><br />
<i>cd jaf-1.0.1</i><br />
<i>copy activation.jar jdkjrelibext</i></p>
<p><b>Task 7:</b>After that Go into the demo directory. The demo directory comes with the JavaMail API implementation and compile to the msgsend program to send a test message.</p>
<p><b>Task 8:</b>The msgsend program compile to javac msgsend.java</p>
<p><b>Task 9:</b>Execute the program passing in a from address with the -o option, your SMTP server with the -M option, and the to address (with no option). You&#8217;ll then enter the subject, the text of your message, and the end-of-file character (CTRL-Z) to signal the end of the message input.</p>
<p><b>Task 10: </b>Then lastly check to make sure your message received with normal mail reader (Eudora, Outlook Express, pine,etc.</p>
<h2><b>SMPT server</b></h2>
<p>To send emails, you must have SMTP server that is responsible to send mails. You can use one of the following techniques to get the SMTP server:</p>
<p>Install and use any SMTP server such as Postfix server (for Ubuntu), Apache James server (Java Apache Mail Enterprise Server)etc. (or)</p>
<p>Use the SMTP server provided by the host provider for eg: free SMTP provide by JangoSMTP site is relay.jangosmtp.net (or)</p>
<p>Use the SMTP Server provided by companies e.g. gmail, yahoo, etc.</p>
</div>
<p> ;</p>
<div style="background-color: pink; border-width: thin; text-align: center;"><b><;<;<a href="https://dineshonjava.com/java-mail-api-tutorial/">Previous</a> <;<; || <a href="https://dineshonjava.com/java-mail-api-tutorial/">Index </a>|| >;>;<a href="https://dineshonjava.com/javamail-api-core-classes/" target="_blank" rel="noopener">Next</a> >;>;</b></div>
<p> ;</p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/java-mail-api-tutorial/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/javamail-api-core-classes/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '250'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…