<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sending mail using JavaMail APIs</title>
	<atom:link href="http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/</link>
	<description>A blog on Programming, Web and Technology</description>
	<lastBuildDate>Fri, 27 Jan 2012 11:09:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Asif Shahzad</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-16</link>
		<dc:creator>Asif Shahzad</dc:creator>
		<pubDate>Thu, 11 Sep 2008 08:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-16</guid>
		<description>Hi Kapil,
Yes it is possible. What you have to do is:
1. Get the Inbox Folder

store = session.getStore( mailProps.getProperty( &quot;MAIL_PROVIDER&quot; ) );
store.connect( &quot;mail.gmail.com&quot;, &quot;login&quot;, &quot;password&quot; ) ;
inbox = store.getFolder( &quot;INBOX&quot; ) ;
inbox.open( Folder.READ_ONLY ) ;

2. Get Messages fron InBox
Message[] messages = null ;
messages = inbox.getMessages() ;

3. Iterate through each Message in messages array, read the Message Content section
for ( int i = 0; i &lt; messages.length; i++ )
{
    if (messages[i].getContentType().equals(&quot;text/plain&quot;))
    {
     String content = (String)messages[i].getContent();
     // HERE APPY SOME STRING MATCHING PATTERN TO MATCH THE URL YOU ARE LOOKIN FOR INSIDE MAIL BODY, WHERE YOU FIND THE MATCH, ... READ THAT URL ...
    }

    if( messages[i].getContent() instanceof Multipart )
   { // ITS MEAN YOUR MESSAGE IS MULTIPART, WHICH SHOWS IT HAS SOME ATTACHMENTS ALSO, SO YOU NEED TO WRITE LOGIC TO PARSE MULTIPART MESSAGE.
   }
}

I hope you get the idea, and will extend the above code to write parser for multipart messages. Then you will be ready to parse both messages body/content (plain messages, attachment message), and identify the embedded URLs inside them.

Regards!</description>
		<content:encoded><![CDATA[<p>Hi Kapil,<br />
Yes it is possible. What you have to do is:<br />
1. Get the Inbox Folder</p>
<p>store = session.getStore( mailProps.getProperty( &#8220;MAIL_PROVIDER&#8221; ) );<br />
store.connect( &#8220;mail.gmail.com&#8221;, &#8220;login&#8221;, &#8220;password&#8221; ) ;<br />
inbox = store.getFolder( &#8220;INBOX&#8221; ) ;<br />
inbox.open( Folder.READ_ONLY ) ;</p>
<p>2. Get Messages fron InBox<br />
Message[] messages = null ;<br />
messages = inbox.getMessages() ;</p>
<p>3. Iterate through each Message in messages array, read the Message Content section<br />
for ( int i = 0; i &lt; messages.length; i++ )<br />
{<br />
    if (messages[i].getContentType().equals(&#8220;text/plain&#8221;))<br />
    {<br />
     String content = (String)messages[i].getContent();<br />
     // HERE APPY SOME STRING MATCHING PATTERN TO MATCH THE URL YOU ARE LOOKIN FOR INSIDE MAIL BODY, WHERE YOU FIND THE MATCH, &#8230; READ THAT URL &#8230;<br />
    }</p>
<p>    if( messages[i].getContent() instanceof Multipart )<br />
   { // ITS MEAN YOUR MESSAGE IS MULTIPART, WHICH SHOWS IT HAS SOME ATTACHMENTS ALSO, SO YOU NEED TO WRITE LOGIC TO PARSE MULTIPART MESSAGE.<br />
   }<br />
}</p>
<p>I hope you get the idea, and will extend the above code to write parser for multipart messages. Then you will be ready to parse both messages body/content (plain messages, attachment message), and identify the embedded URLs inside them.</p>
<p>Regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kapil</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-15</link>
		<dc:creator>Kapil</dc:creator>
		<pubDate>Mon, 08 Sep 2008 17:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-15</guid>
		<description>Hi all,
Thanx a ton for the load of information.
I was wondering if it is possible to go through the content of an email without actually having to open the message and then retrieve certain info out of them (eg. embedded URLs).
If so, can someone please help me out with the code for the same.
Thanks in advance,</description>
		<content:encoded><![CDATA[<p>Hi all,<br />
Thanx a ton for the load of information.<br />
I was wondering if it is possible to go through the content of an email without actually having to open the message and then retrieve certain info out of them (eg. embedded URLs).<br />
If so, can someone please help me out with the code for the same.<br />
Thanks in advance,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varun</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-14</link>
		<dc:creator>Varun</dc:creator>
		<pubDate>Tue, 12 Aug 2008 11:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-14</guid>
		<description>hi All.. i am getting the same exception as mentioned by shriram..
the solution proposed by tahir..//commenting the props.put( “mail.smtp.port”, port ); is taking the default port as 25.. but it is gining me the same exception.. the complete stack trace is as follows..


DEBUG: JavaMail version 1.4ea
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_03\lib\javamail.providers (The system cannot find the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_03\lib\javamail.address.map (The system cannot find the file specified)
DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host &quot;smtp.gmail.com&quot;, port 25, isSSL false
Exception in thread &quot;main&quot; javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;
  nested exception is:
	java.net.ConnectException: Connection timed out: connect
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
	at javax.mail.Service.connect(Service.java:297)
	at javax.mail.Service.connect(Service.java:156)
	at javax.mail.Service.connect(Service.java:105)
	at javax.mail.Transport.send0(Transport.java:168)
	at javax.mail.Transport.send(Transport.java:98)
	at GoogleTest.sendSSLMessage(GoogleTest.java:70)
	at GoogleTest.main(GoogleTest.java:27)
Caused by: java.net.ConnectException: Connection timed out: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(Unknown Source)
	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
	at java.net.PlainSocketImpl.connect(Unknown Source)
	at java.net.SocksSocketImpl.connect(Unknown Source)
	at java.net.Socket.connect(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163)
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
	... 8 more


Please help!!!!!!!</description>
		<content:encoded><![CDATA[<p>hi All.. i am getting the same exception as mentioned by shriram..<br />
the solution proposed by tahir..//commenting the props.put( “mail.smtp.port”, port ); is taking the default port as 25.. but it is gining me the same exception.. the complete stack trace is as follows..</p>
<p>DEBUG: JavaMail version 1.4ea<br />
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_03\lib\javamail.providers (The system cannot find the file specified)<br />
DEBUG: !anyLoaded<br />
DEBUG: not loading resource: /META-INF/javamail.providers<br />
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers<br />
DEBUG: Tables of loaded providers<br />
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}<br />
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}<br />
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map<br />
DEBUG: !anyLoaded<br />
DEBUG: not loading resource: /META-INF/javamail.address.map<br />
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_03\lib\javamail.address.map (The system cannot find the file specified)<br />
DEBUG: setDebug: JavaMail version 1.4ea<br />
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]<br />
DEBUG SMTP: useEhlo true, useAuth true<br />
DEBUG SMTP: useEhlo true, useAuth true<br />
DEBUG SMTP: trying to connect to host &#8220;smtp.gmail.com&#8221;, port 25, isSSL false<br />
Exception in thread &#8220;main&#8221; javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;<br />
  nested exception is:<br />
	java.net.ConnectException: Connection timed out: connect<br />
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)<br />
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)<br />
	at javax.mail.Service.connect(Service.java:297)<br />
	at javax.mail.Service.connect(Service.java:156)<br />
	at javax.mail.Service.connect(Service.java:105)<br />
	at javax.mail.Transport.send0(Transport.java:168)<br />
	at javax.mail.Transport.send(Transport.java:98)<br />
	at GoogleTest.sendSSLMessage(GoogleTest.java:70)<br />
	at GoogleTest.main(GoogleTest.java:27)<br />
Caused by: java.net.ConnectException: Connection timed out: connect<br />
	at java.net.PlainSocketImpl.socketConnect(Native Method)<br />
	at java.net.PlainSocketImpl.doConnect(Unknown Source)<br />
	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)<br />
	at java.net.PlainSocketImpl.connect(Unknown Source)<br />
	at java.net.SocksSocketImpl.connect(Unknown Source)<br />
	at java.net.Socket.connect(Unknown Source)<br />
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)<br />
	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)<br />
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)<br />
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163)<br />
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)<br />
	&#8230; 8 more</p>
<p>Please help!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir Akram</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-13</link>
		<dc:creator>Tahir Akram</dc:creator>
		<pubDate>Tue, 22 Jul 2008 17:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-13</guid>
		<description>shriram;

Initially I also got some relevant problem like you have. That I was unable to connect with SMTP server. I found my AntiVirus stopping my connection with it. You can check you Antivirus settings for this.

Check your code again by commenting &lt;code&gt;props.put( “mail.smtp.port”, port );&lt;/code&gt; I think it will/should use default port 25. Not full sure but give it a try and share your findings.</description>
		<content:encoded><![CDATA[<p>shriram;</p>
<p>Initially I also got some relevant problem like you have. That I was unable to connect with SMTP server. I found my AntiVirus stopping my connection with it. You can check you Antivirus settings for this.</p>
<p>Check your code again by commenting <code>props.put( “mail.smtp.port”, port );</code> I think it will/should use default port 25. Not full sure but give it a try and share your findings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asif shahzad</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-12</link>
		<dc:creator>asif shahzad</dc:creator>
		<pubDate>Tue, 22 Jul 2008 16:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-12</guid>
		<description>shriram!
check ur password. if still problem ... paste your code here ... and let me see.</description>
		<content:encoded><![CDATA[<p>shriram!<br />
check ur password. if still problem &#8230; paste your code here &#8230; and let me see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asif shahzad</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-9</link>
		<dc:creator>asif shahzad</dc:creator>
		<pubDate>Tue, 22 Jul 2008 16:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-9</guid>
		<description>hi,
i dont know exactly what code you are composing. my code is as follow, plz check, it might help you.

public class JavaMail {
	String
	from_email 	= &quot;asifsh7@gmail.com&quot;,
	password 	= &quot;mypassword&quot;,
	host 		= &quot;smtp.gmail.com&quot;,
	port 		= &quot;465&quot;;

	Properties props = new Properties();

	public JavaMail(){
		props.put( &quot;mail.smtp.user&quot;, from_email );
		props.put( &quot;mail.smtp.host&quot;, host );
		props.put( &quot;mail.smtp.port&quot;, port );
		props.put( &quot;mail.smtp.starttls,enable&quot;, &quot;true&quot; );
		props.put( &quot;mail.smtp.auth&quot; , &quot;true&quot; );
		props.put( &quot;mail.smtp.socketFactory.class&quot; ,&quot;javax.net.ssl.SSLSocketFactory&quot; );
		props.put( &quot;mail.smtp.socketFactory.fallback&quot; , &quot;false&quot; );
	}

	public void sendEmail(String m_to, String m_subject, String m_text){
		SecurityManager security = System.getSecurityManager();

		try{
			Authenticator auth = new SMTPAuthenticator();
			Session session = Session.getInstance(props,auth);

			session.setDebug(true);
			MimeMessage msg = new MimeMessage (session);
			msg.setText(m_text);
			msg.setSubject(m_subject);
			msg.setFrom(new InternetAddress(from_email));
			msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
			Transport.send(msg);
		}catch(Exception exp){
			exp.printStackTrace();
		}
	}

	private class SMTPAuthenticator extends javax.mail.Authenticator
	{
		public PasswordAuthentication getPasswordAuthentication(){
			return new PasswordAuthentication(from_email, password);
			}
	}

	public static void main( String arg[] ) {
		JavaMail mail = new JavaMail();
		mail.sendEmail(&quot;asifshahzad@seantechsoft.com&quot;, &quot;subject here&quot;, &quot;msg body here ....&quot;);
	}
}</description>
		<content:encoded><![CDATA[<p>hi,<br />
i dont know exactly what code you are composing. my code is as follow, plz check, it might help you.</p>
<p>public class JavaMail {<br />
	String<br />
	from_email 	= &#8220;asifsh7@gmail.com&#8221;,<br />
	password 	= &#8220;mypassword&#8221;,<br />
	host 		= &#8220;smtp.gmail.com&#8221;,<br />
	port 		= &#8220;465&#8243;;</p>
<p>	Properties props = new Properties();</p>
<p>	public JavaMail(){<br />
		props.put( &#8220;mail.smtp.user&#8221;, from_email );<br />
		props.put( &#8220;mail.smtp.host&#8221;, host );<br />
		props.put( &#8220;mail.smtp.port&#8221;, port );<br />
		props.put( &#8220;mail.smtp.starttls,enable&#8221;, &#8220;true&#8221; );<br />
		props.put( &#8220;mail.smtp.auth&#8221; , &#8220;true&#8221; );<br />
		props.put( &#8220;mail.smtp.socketFactory.class&#8221; ,&#8221;javax.net.ssl.SSLSocketFactory&#8221; );<br />
		props.put( &#8220;mail.smtp.socketFactory.fallback&#8221; , &#8220;false&#8221; );<br />
	}</p>
<p>	public void sendEmail(String m_to, String m_subject, String m_text){<br />
		SecurityManager security = System.getSecurityManager();</p>
<p>		try{<br />
			Authenticator auth = new SMTPAuthenticator();<br />
			Session session = Session.getInstance(props,auth);</p>
<p>			session.setDebug(true);<br />
			MimeMessage msg = new MimeMessage (session);<br />
			msg.setText(m_text);<br />
			msg.setSubject(m_subject);<br />
			msg.setFrom(new InternetAddress(from_email));<br />
			msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));<br />
			Transport.send(msg);<br />
		}catch(Exception exp){<br />
			exp.printStackTrace();<br />
		}<br />
	}</p>
<p>	private class SMTPAuthenticator extends javax.mail.Authenticator<br />
	{<br />
		public PasswordAuthentication getPasswordAuthentication(){<br />
			return new PasswordAuthentication(from_email, password);<br />
			}<br />
	}</p>
<p>	public static void main( String arg[] ) {<br />
		JavaMail mail = new JavaMail();<br />
		mail.sendEmail(&#8220;asifshahzad@seantechsoft.com&#8221;, &#8220;subject here&#8221;, &#8220;msg body here &#8230;.&#8221;);<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shriram</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-10</link>
		<dc:creator>shriram</dc:creator>
		<pubDate>Mon, 21 Jul 2008 09:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-10</guid>
		<description>DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host &quot;smtp.gmail.com&quot;, port 465, isSSL false
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
  nested exception is:



this is wat i m getting
can you help me out....</description>
		<content:encoded><![CDATA[<p>DEBUG: setDebug: JavaMail version 1.4ea<br />
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]<br />
DEBUG SMTP: useEhlo true, useAuth false<br />
DEBUG SMTP: trying to connect to host &#8220;smtp.gmail.com&#8221;, port 465, isSSL false<br />
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;<br />
  nested exception is:</p>
<p>this is wat i m getting<br />
can you help me out&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asif shahzad</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-11</link>
		<dc:creator>asif shahzad</dc:creator>
		<pubDate>Mon, 14 Jul 2008 14:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-11</guid>
		<description>thats great!

just 10 minutes earlier i was assigned a task to know and configure java-mail.
i used your post, and done it in less than 10 mins.

thank you so much.</description>
		<content:encoded><![CDATA[<p>thats great!</p>
<p>just 10 minutes earlier i was assigned a task to know and configure java-mail.<br />
i used your post, and done it in less than 10 mins.</p>
<p>thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir Akram</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-8</link>
		<dc:creator>Tahir Akram</dc:creator>
		<pubDate>Thu, 28 Feb 2008 18:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-8</guid>
		<description>Thanks Siva;

The thing you are telling to me is new to me, if I come up with this scenerio I will deffinately share with you. take care.</description>
		<content:encoded><![CDATA[<p>Thanks Siva;</p>
<p>The thing you are telling to me is new to me, if I come up with this scenerio I will deffinately share with you. take care.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva subrahmanyam</title>
		<link>http://www.pakzilla.com/2007/04/08/sending-mail-using-javamail-apis/comment-page-1/#comment-7</link>
		<dc:creator>siva subrahmanyam</dc:creator>
		<pubDate>Wed, 27 Feb 2008 11:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/#comment-7</guid>
		<description>Absolutely fine and working good. But the given is the code for sending emails. But can you provide us the code for getting the attachment name in case if the mail is bounced back.

TONS OF THANKS IN ADVANCE</description>
		<content:encoded><![CDATA[<p>Absolutely fine and working good. But the given is the code for sending emails. But can you provide us the code for getting the attachment name in case if the mail is bounced back.</p>
<p>TONS OF THANKS IN ADVANCE</p>
]]></content:encoded>
	</item>
</channel>
</rss>

