Organizational Research By

Surprising Reserch Topic

how do i send an email using javamail


how do i send an email using javamail  using -'jsp,servlets,javamail'

It looks like in http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/javamail/javamail.html, the administrator sends email to another user(from email setting is default). But I actually have a submit form like this:

<form action="contact" method="post">
<p>Your email address: <input name="email"></p>
<p>Mail subject: <input name="subject"></p>
<p>Mail message: <textarea name="message"></textarea></p>
<p><input type="submit"><span class="message">${message}</span></p>
</form>


I actually want user to enter their email address, subject, and body(to email=my gmail is default).

How do I make change to sendMail method in http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/javamail/javamail.html?

I appreciate if someone could help me.
    
asked Oct 19, 2015 by deven.bendale
0 votes
3 views



Related Hot Questions



Government Jobs Opening


...