Sending Email Using apache commons mail package from android
<p>I am new to android. I am developing the new app with email sending option. To send a mail I have used gmail configurations host "smtp.gmail.com", port 465 with SSL true. To send an email I have apache commons API. <code>OnTouch</code> event mail sending method will call. Whenever touch button it shows following errors,</p>

<p><pre>Error : Could not find class 'javax.naming.InitialContext', referenced from method org.apache.commons.mail.Email.setMailSessionFromJNDI
    Warning: VFY: unable to resolve new-instance 955 (Ljavax/naming/InitialContext;) in Lorg/apache/commons/mail/Email;
    Warning : org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465</pre></p>

<p>I have added  uses-permission android:name="android.permission.INTERNET" in my manifest file.</p>

<p>Can i use all java files in android ?</p>

<p>My email code executed correctly as a stand alone java program.</p>
