Email is sent out but theres an error.

Hi,
I have try to connect the java mail to a gmail account. The connection to the gmail account is successful. I'm able to send out the email, but theres error which i do not understand. I have bold out the error. Can anyone guide me on this error?
Below are the codes i write in jsp to connect to the gmail account
//Variables for email
     String host = "smtp.gmail.com";
     String protocol = "smtp";
     String port = "25";
    String to = "";
    String from = "[email protected]";
    String subject = "Thank you!!!"
    String messageText = "";
     String username = "xxx";
    String password = "xxx";
     boolean sessionDebug = true;
     Properties props = System.getProperties();
    //props.put("mail.host", host);
     props.put("mail.smtp.host", host);
    props.put("mail.smtp.port", port);
     props.put("mail.smtp.starttls.enable","true");
     props.put("mail.smtp.auth", "true");
     props.put("mail.smtp.socketFactory.port", port);
     props.put("mail.transport.protocol", "smtp");
     props.put("mail.debug", "true");
to = str_email;
               messageText = "<html><body>Thank you .<p> Keep this email for your future reference.<p></body></html>";
               javax.mail.Session mailSession = javax.mail.Session.getInstance(props, null);
               mailSession.setDebug(sessionDebug);
               Message msg = new MimeMessage(mailSession);
               msg.setFrom(new InternetAddress(from));
               InternetAddress[] address = {new InternetAddress(to)};
               msg.setRecipients(Message.RecipientType.TO, address);
               msg.setSubject(subject);
               msg.setSentDate(new Date());
               msg.setText(messageText);
               msg.setContent(messageText, "text/html");
               //Transport.send(msg);
               // Send message with authentication!
               Transport tr = mailSession.getTransport(protocol);
               tr.connect(host, username, password);
               msg.saveChanges(); // don't forget this
               tr.sendMessage(msg, msg.getAllRecipients());
               tr.close();                                        These are the feedback copy from the jboss
15:15:52,265 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
15:15:52,265 INFO [STDOUT] DEBUG: !anyLoaded
15:15:52,265 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
15:15:52,265 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_12\jre\lib\javamail.address.map (The system
cannot find the file specified)
15:15:52,265 INFO [STDOUT] DEBUG: setDebug: JavaMail version 1.4ea
15:15:52,328 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsyste
ms, Inc]
15:15:52,359 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
15:15:52,359 INFO [STDOUT] DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 25, isSSL false
15:15:53,343 INFO [STDOUT] 220 mx.google.com ESMTP 3sm9036607rvi
15:15:53,343 INFO [STDOUT] DEBUG SMTP: connected to host "smtp.gmail.com", port: 25
15:15:53,343 INFO [STDOUT] EHLO DellCM
15:15:53,546 INFO [STDOUT] 250-mx.google.com at your service, [121.6.67.38]
250-SIZE 28311552
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
15:15:53,562 INFO [STDOUT] DEBUG SMTP: Found extension "SIZE", arg "28311552"
15:15:53,562 INFO [STDOUT] DEBUG SMTP: Found extension "8BITMIME", arg ""
15:15:53,562 INFO [STDOUT] DEBUG SMTP: Found extension "STARTTLS", arg ""
15:15:53,562 INFO [STDOUT] DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
15:15:53,562 INFO [STDOUT] STARTTLS
15:15:53,765 INFO [STDOUT] 220 2.0.0 Ready to start TLS
15:15:54,218 INFO [STDOUT] EHLO DellCM
15:15:55,187 INFO [STDOUT] 250-mx.google.com at your service, [121.6.67.38]
250-SIZE 28311552
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES
15:15:55,187 INFO [STDOUT] DEBUG SMTP: Found extension "SIZE", arg "28311552"
15:15:55,187 INFO [STDOUT] DEBUG SMTP: Found extension "8BITMIME", arg ""
15:15:55,187 INFO [STDOUT] DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
15:15:55,187 INFO [STDOUT] DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
15:15:55,187 INFO [STDOUT] DEBUG SMTP: Attempt to authenticate
15:15:55,187 INFO [STDOUT] AUTH LOGIN
15:15:55,390 INFO [STDOUT] 334 VXNlcm5hbWU6
15:15:55,406 INFO [STDOUT] YmdlbmllLmFkbWlu
15:15:55,609 INFO [STDOUT] 334 UGFzc3dvcmQ6
15:15:55,609 INFO [STDOUT] Ymdlbmll
15:15:56,312 INFO [STDOUT] 235 2.7.0 Accepted
15:15:56,437 INFO [STDOUT] DEBUG SMTP: use8bit false
15:15:56,437 INFO [STDOUT] MAIL FROM:<[email protected]>
15:15:56,640 INFO [STDOUT] 250 2.1.0 OK
15:15:56,640 INFO [STDOUT] RCPT TO:<[email protected]>
15:15:56,843 INFO [STDOUT] 250 2.1.5 OK
15:15:56,859 INFO [STDOUT] DEBUG SMTP: Verified Addresses
15:15:56,859 INFO [STDOUT] DEBUG SMTP: [email protected]
15:15:56,859 INFO [STDOUT] DATA
15:15:57,750 INFO [STDOUT] 354 Go ahead
15:15:57,750 INFO [STDOUT] Date: Mon, 13 Aug 2007 15:15:52 +0800 (SGT)
From: [email protected]
To: [email protected]
Message-ID: <12341829.01186989356437.JavaMail.ChongMing@DellCM>
Subject: Thank you !!!
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html><body>Thank you.<p> Keep this email for your future reference</body></html>
15:15:59,171 INFO [STDOUT] 250 2.0.0 OK 1186989367 3sm9036607rvi
15:15:59,187 INFO [STDOUT] QUIT
15:15:59,406 INFO [STDOUT] DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: Unsupported record version Unknown-50.49
15:15:59,406 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: Unsupported record version Unknown-50.49
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:645)
at org.apache.jsp.register_jsp._jspService(org.apache.jsp.register_jsp:137)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.net.ssl.SSLException: Unsupported record version Unknown-50.49
at com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputRecord.java:375)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:360)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:723)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:680)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 27 more
Thanks

Hi, i have try your suggestion. The error is still the same.. I remember 2 months ago when i use this coding, theres no error. How come thats this error?
Thanks guys....
I have list out the error below.
root cause
javax.servlet.ServletException: javax.mail.MessagingException: Exception reading response;
nested exception is:
     javax.net.ssl.SSLException: Unsupported record version Unknown-50.49
     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
     org.apache.jsp.register_jsp._jspService(register_jsp.java:418)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.mail.MessagingException: Exception reading response;
nested exception is:
     javax.net.ssl.SSLException: Unsupported record version Unknown-50.49
     com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
     com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:645)
     org.apache.jsp.register_jsp._jspService(register_jsp.java:154)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.net.ssl.SSLException: Unsupported record version Unknown-50.49
     com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputRecord.java:375)
     com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:360)
     com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:722)
     com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:679)
     com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
     com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
     java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
     java.io.BufferedInputStream.read(BufferedInputStream.java:237)
     com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
     com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
     com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:645)
     org.apache.jsp.register_jsp._jspService(register_jsp.java:154)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Similar Messages

  • My adobe account was hacked and compromised, emails were sent out on one of my accounts.  I changed my adobe password, when I scan my computer, some adobe files are password protected and can not be scanned, is this normal?

    my adobe account was hacked and compromised, emails were sent out on one of my accounts.  I changed my adobe password, when I scan my computer, some adobe files are password protected and can not be scanned, is this normal?

    I have contacted them, but apart from letting them look at it and deal with it, is there anything I can personally do myself? Or is it just a matter of waiting for me now?

  • I have yahoo email and it downloads, but there is nothing there when I open it.  Does anyone know how to get the message?

    I have yahoo email and it downloads, but there is nothing there when I open the message. Does anyone have any suggestions?

    First of all, thank you for your patience, this is driving me nuts, can't imagine what you must think right now....
    I made a screenshot that hopefully clears this up:
    On the left is what I see when I open up Finder preferences, and then the Sidebar tab. As you can see all boxes are checked. The Middle folder that is open is what I see when I open Finder from the taskbar. which is fine by me. On the right however I have opened Macintosh HD. And as you can see, there is no sidebar, it just opens up with 4 folders.
    Weirdly enough, when I tried to add a photo to my apple ID just now, the sidebar came up just fine. And I have found that it does that with more programs. So it is literally only when I open up Macintosh HD that it wont do it. I hope this clarifies it a bit more.
    and to answer this question:
    I'm not quite sure I understand. Is the sidebar layout you showed me not the one you want? Because if it is the one you want then you should just close the preferences window behind it.
    this sidebar only pops up when I open the preferences - general - show in new finder  part and then choose 'other'. I cant close the preference window behind it, because then it will close that pop-out folder as well..

  • My email was recently invaded and a mass email blast sent out to all my contacts. How do I clean this up?

    My email was recently invaded and a mass email blast sent out to all my contacts. How do I clean this up?

    Yes, change the password - however,  the problem is that the email addresses have already been stolen, so the damage is already done.
    In fact, I had a similar problem with my Yahoo account; so, for now, I've actually taken most close friends' addresses off (deleted them); not sure that that will help either, but at least they won't be able to steal them in the future.

  • I use a gift card and I finished all the redeem steps and they said the email is sent already but I didn't recieve anything so can u resent it please

    I use a gift card and I finished all the redeem steps and they said the email is sent already but I didn't recieve anything so can u resent it please

    Apple - Support - iTunes

  • I want to download apps for my iphone 4 (4.3.5) but there is Error 1009.help me please.

    i want to download apps for my iphone 4 (4.3.5) but there is Error 1009.help me please.

    Just select no credit card as outlined here:
    http://support.apple.com/kb/ht2534

  • HT1414 i was trying to updates the new version but there was error occured so i was trying to restore but the massage come to connect yo wi-fi so i dont know where to start from there

    i was trying to updates the new version but there was error occured so i was trying to restore but the massage come to connect yo wi-fi so i dont know where to start from there

    Downloading past purchases from the App Store, iBookstore, and iTunes Storehttp://support.apple.com/kb/HT2519
    Message was edited by: michael08081

  • Emails being sent out even while I haven't had the computer on.

    Last week I had a worm email that come to my mac and sent out junk emails. I scanned the system but it couldn't find anything. It didn't bother me because I had order the new 27" iMac which came on Thursday.
    I set up the new Mac and used time machine to transfer settings across from a back up I made on the 26 April which was three weeks before the worm email came to me from a PC user. Yesterday, I started getting messages sent to my iPhone about failed delivery of emails like before when I had the worm on my old system. How can this happen on a new system? I have a friend staying with me since Friday so I haven't used the new mac. Any ideas? Also what is the best bit of software for checking for worms? Is it possible that this could be an email issue at the server end?
    I have made the assumtion that someone must have hacked my account because I can't see how a brand new machine would be infected by a virus of any kind. Further I was out all day on Saturday and my Mac was not on. Is it possible for viruses to be active on the servers at my email provider?
    Any suggestions?
    Thanks guys.

    They are using your email address as the return address and faking all the other headers, or they do have your password and are sending directly using your account.
    If they are using your account directly, log into your web mail interface for that account and check the sent mail.
    If you find anything in there that you didn't send, then they have your password.
    Either way, change your password on the account.
    If they just have your email address, you'll just have to wait it out.

  • Group text sent out, replies sent out but not received by my phone???

    Last night I sent out a group text but received no replies, whilst everyone else was happily chatting away. I have an iPhone4, its been recently updated, i've checked all the settings and can't see anything wrong???? I've sent out group texts before the update with no problems

    To identify your iMessages as coming from your phone number go to Settings>Messages>Receive At>Caller ID and select your phone number rather than your email address.  Also, the email can't be removed because this is the email address linked to the Apple ID you are using for iMessage.  If you really want to remove it you have to go to Settings>Messages>Receive At, tap the Apple ID at the top and sign out.

  • Why are the emails I sent out being held in my outbox, and how do I resend them

    why are the emails that I have sent out not going to the recepiants but instead being held in my outbox, and how do I resend them?

    This problem is generally caused by not having a connection to the ISP mail sender (send and receive authenticate and operate independently).
    Mail > Window > Connection Doctor ...
    ... to look into it.

  • Trying to copy a 10gb file to a memory stick but theres an error msg file to large for the file format of the stick. is there a way around this

    trying to copy a 10gb file to a memory stick but there's an error msg, file to large for the file format of the stick. is there a way around this

    If you use 'Disc Utility' you can format the stick (this will erase its contents) to be exFat which will still work with Mac and Windows but allow a larger file sizes to be placed onto the stick.
    Disc Utility > Click the drive on the left > Erase (tab) > Change format to ExFat > Erase > Try putting the file on to the stick again.

  • My iCloud email account is showing one unread email on my iPad but there are no unread emails

    My iCloud email account is showing I have one unread email but there is no unread mail. How can I get round this

    Solved my own problem. Went to iCloud email on my PC. One message was marked as unread despite fact I had read it on iPad. " read" offending message on PC and it disappeared from iPad

  • Using the correct email address when forwarding/replying to an email I sent out earlier...

    I have several email accounts. A very familiar scenario is that I send an email with some tasks in it to a bunch of people. After some time has elapsed, I send a chaser, reminding people about a needed response. Normally, I would open the email I had sent earlier and press reply all, and I was done in seconds.
    I think from the time Mountain Lion was introduced, it does not work like this any more, what it does is that it changes the sending email to the default instead of using the account from which it was originally sent, creating huge confusion with the receivers as well as revealing my other email IDs to them.
    It is exactly the same when I press 'forward' on an email I had sent out earlier. Same problem.
    All my setting are CORRECT, I think this is a system bug and needs to be fixed.
    However, if someone else has found a solution, can you please help me with this?

    Resolved with the add-on "Folder Account 6.0"
    Mike

  • SMTP Email ..Sent items no there in Sentitems Folder

    i m using SMTP email setting on my application...
    If i  use a gmail account , whenever i sent an email from my application i can see it in my sent folder in GMAIL.
    But, if i use my corporate account email is sending...but i could not able to find the copy of sent email in SENT ITEMS folder...
    How to resolve this, expert advise is required.. please 
    Hai

    What i did is.... i used my
    company account ([email protected]) in .NET Application to send emails..
    Thanks for the update. I thought you are using Outlook as your mail client in my first reply. From the quoted sentence, you are using a .NET application as your mail client rather than Microsoft Outlook. If this is the case, you may need to contact the designer
    of the application for further assistance because this forum focuses on general questions and feedback related to Office 2010, and we are not familiar with the .NET application you are using.
    Thank you for your understanding.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • HT201210 my ipod touch had a glitch and it told me to connect it to itunes. so i did and i had to restore it or else it wouldnt work and i couldnt get my data.when i hit restore it loads and it says its extracting but there isa error & it wont retore what

    last night i was using my ipodtouch and all of a sudden it starteed to have a glitch then it said i need to connect it to itunes. so in the morning i did. when i  plugged it in it said i needed to restore my ipod in order to use and get my data back from itunes when i hit retore it loaded then it said extrcting data after a few minutes a error came up and said it couldnt restore. i tried it a few more times but the same error kept coming up. now i can not use my ipod what do i do?

    Seee:
    iPhone Error 3194 - How to Fix iTunes Error 3194?
    Fix Error 3194 from iTunes during iPhone restore
    iTunes: Specific update-and-restore error messages and advanced troubleshooting

Maybe you are looking for

  • Blank screen after memory ram changed SL510

    Hi,  I had  1GB & 2GB rams working fine in the SL510,  windows 7 Profession, 62-bit, 320 GB drive. SL510 62-bit can take up to 8GB ram. I replaced the 1GB  by Samsung with a Hynix 4GB.  At Crucial they give specs that are replacable for existing ram.

  • Horrible buzzing noise whilst on charge

    Hi all...not sure if anyone has had the same problem but when my Mac is plugged into charge and I have audio or video playing I have this awful buzzing noise in the back ground but when unplugged the audio is perfect - maybe there is some kind of ele

  • IPod completely frozen

    Hi Got a new iPod nano 4gb just under a month ago. Has been working fine until today when I tried to play a song and it just froze. Have tried the 5 Rs but when I connect it to my PC, iTunes doesn't detect the iPod so I can't even try restoring it. T

  • Sales order management certification

    Hi, I will be appearing for SAP Certified Application Professional - Sales Order Management with SAP ERP 6.0(P_SD_60). Can any one let me know from where can I get relevant material, and also some question & answers. Thanks in advance...

  • Usage of vl06g

    Hi, Everyone, will anyone tell me what vl06g can be used for? what are its function, purpose or usage? Is this tcode just used to search the deliveries you want and post GI in mass? just like vl02n (i know with vl02n the GI is posted one by one)? Btw