How to connect client mail through java mail.

Hi all,
I want to open client Mail with specified file as attachement. Is it possible to do thru java mail API. other wise can any one suggest me how can i proceed this.
Kindly do needfull
Thanks and Regards,
Mohan Rao

You can both send attachments and receive attachments using JavaMail API. There's a tutorial on the JGuru site that gives a good overview - http://java.sun.com/developer/onlineTraining/JavaMail/ .
Good Luck :)
∞ brew.man ∞

Similar Messages

  • Reading Mail through Java Mail using IMAP

    When i tried to connect to IMAP server am getting the following error like Ntlm class not found
    Am using JAvaMAIL API version 1.4.3.
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/auth/Ntl
    m
    at com.sun.mail.imap.protocol.IMAPProtocol.authntlm(IMAPProtocol.java:56
    1)
    at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:667)
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:596)
    at javax.mail.Service.connect(Service.java:291)
    at javax.mail.Service.connect(Service.java:172)
    at FetchMailUsage.main(FetchMailUsage.java:35)
    Caused by: java.lang.ClassNotFoundException: com.sun.mail.auth.Ntlm
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    I searched this clas in the all the jar in the java mail api.Appreciate your earlier help

    I assume you're not actually trying to use NTLM authentication.
    A bug in JavaMail 1.4.3 can cause failures related to NTLM in some cases, although I don't think
    it should show up as the failure you're seeing. To work around, set the session property
    "mail.imap.auth.ntlm.disable" to "true".
    If that doesn't solve your problem, make sure you don't have more than one set of JavaMail
    classes in your CLASSPATH.

  • How can i send and recieve mail through java

    HI All,
    plz let me know how can i send and receive mail through java.
    Regards:
    sachin kakkar
    http://www.datamansoftwares.com

    Using java mail API..
    try to search the forum for java mail... you find many question and answer.
    use the left search textfield

  • How to send HTML Format Mail using Java Mail in oracle 9i Forms

    Dear All
    could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
    if it is possible, could you please send me the sample code? please very urgent
    Thanks
    P.Sivaraman

    Hello,
    <p>Here is a Form sample.</p>
    Francois

  • How to Read An Attachment Using Java Mail

    Hi
    I Am Able To Read The Mail Using Java Mail ,but Unable To Read The Attachment Which Comes Along With The Mail.
    Please Help Me , In Reading The Attachment.

    Hi
    I Am Able To Read The Mail Using Java Mail ,but
    t Unable To Read The Attachment Which Comes Along
    With The Mail.
    Please Help Me , In Reading The Attachment.Do you mean:
    - I only recieve .txt or .doc attachments and I want to see the contents? Or could you get a .jpg as well?
    or
    - Do you need to seperate the attachment from the e-mail and then view it?

  • How to Connect MySQL Database Through JTable?

    Hi,
    How to Connect MySQL Database Through JTable? anyone of u knows these concept please send me coding of that Part..
    Thanks,
    Guru..

    Start by reading the tutorials. There's a section on Swing which shows you how to use tables and a section on JDBC which shows you how to use SQL.
    And you can always search the forum as well since there are working examples of both posted on the forum.
    If you need further help with a specific problem then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

  • How to connect oracle data through BlazeDS in flex 4

    How to connect oracle data through BlazeDS in flex 4

    Hi
                   If u want to connect to the database oracle just paste the Ojdbc14.jar file into the lib folder of blazeds project..
                             Normally blazeds distribution version contains blazeds.war file... upload that war file to the tomcat or any other application server..
                          u will get the build path and in lib folder paste the ojdbc14.jar file to connect to the oracle and do u r stuff at server side java ....
                      if this will reslove ur problem please mark as answered..

  • How to change system time through java program

    Hi
    I want to know, how to change system time through java program.
    give me a idia with example.
    Thanks

    There isn't any core Java API for this. Use JNI or call an external process with Runtime.exec().
    ~

  • How to Install VPN and how to connect client Application server

    Hi All,
    Could any one tell me. How to connect Client's Application server and How to Install VPN. Thanks in advance.......
    Thanks  & regards
    Vardhan

    where r u working?
    ask your help desk to give the URL link to down load vpn
    after downloading install it, its just like a wizard
    you need to give your userid and password , and secureid number
    secureid is a small device which displays a number(say a 6 digit number ) this number is keeps on changing for every one minitue.
    you need to enter the number which is displaing while you are trying to connect to vpn.
    in the middle of connecting to vpn if your secureid number changed , you need to login once again by the same procedure

  • How to connect to website through computer if i do not use internet through phon's sim

    how to connect to website through computer if i do not use internet through phon's sim

    Connect through wifi.
    Turn off Cellular data through settings __ General __ Network __ Cellular Data on/off

  • How to connect to Internet through a LAN

    Hi everybody !!!
    Please show me how to connect to Internet through a LAN (through another computer).
    On Windows XP system, i use the following informations to do that:
    + My IP: 192.168 .1.45
    +subnet mask: 255.255.255.0
    +default getway: 192.168.1.12 (IP of another machine)
    +Preferred DNS server: 85.255.192.2
    +Alternate DNS server: 195.131.52.130
    and in IE i use the proxy server: 192.168.1.12:8080
    Thanks alot !!!

    Just how is the one computer connecting to the internet? What type of connection does the office have, DSL, Cable or is it a Data connection through a Cell phone provider.
    I doubt all other computer are doing Ad-Hoc but are probably Sharing the Internet connection with Internet Connection Sharing from that one Windows base PC.
    All you khave to do is Connect to that same WiFi SSID name and have the correct password for it.

  • How To Call HTML Page Through Java Swing Page  ???....

    Hi All ;
    Please Can You Tell Me How To Call HTML Page Through Java Swing Page ....
    Regards ;

    Hi,
    you can use HTML fragments on a panel.
    http://java.sun.com/docs/books/tutorial/uiswing/components/html.html
    However, to integrate a browser you need 3rd party software like IceBrowser
    If you Google for: HTML Swing
    then you find many more hints
    Frank

  • How to connect oracle database with JAVA

    how to connect oracle database with JAVA....
    using j2sdk and Jcreator . which connector to use .. what are the code for that ..

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • How to connect client database to server database

    please provide me the steps that how to connect client database to server database in oracle 10g i am getting error ORA-12560 TNS:Protocol adapter error.

    Why don't you search in this forum ???? There are many link which would help
    ORA-12560 adapter error, connecting to remote database
    ORA-12560: TNS:protocol adapter error
    How to solve ORA-12560:TNS:protocol adapter error?
    ORA-12560: TNS: protocol adapter error

  • Masking my pop mail through iCloud mail

    I use pop mail from godaddy. So mails across my apple device is not synced. Is there a way to route my mails through iCloud mails so that all incoming mails come to my iCloud mailbox and all receivers of my outgoing mail sees my actual mail I'd even though oak sending it through my iCloud mail. Ian trying to find out an alternative to the expensive imap mail option from godaddy.

    Who is the POP mail provider? When you removed the account, did you verify that you entered the username and password in all of the locations, even where it said optional? When you see the error, is this for receiving mail, sending mail, or both?

Maybe you are looking for

  • How to install a new hard drive in hp 2000 laptop

    My hard drive crashed and I need to install the OS in the new hard drive. The laptop came with windows 8 already installed. I can't recover anything from the old hard drive. There were no windows 8 back up disc or boot up disc with laptop. I purchase

  • How to install filters 8BF in photoshop CC

    How to install filters 8BF in photoshop CC? I ask because it does not appear in the menu Photoshop, or do not work

  • A report with functionality

    Hello all, I need to create a report with an additional column named "Remove" so that each record in the report has a check box beside it. In addition to the check boxes, there is a submit button at the end of the report for submission. The goal is t

  • Data pump import from 11g to 10g

    I have 2 database: first is 11.2.0.2.0 and second is 10.2.0.1.0 In 10g i created database link on 11g CREATE DATABASE LINK "TEST.LINK" CONNECT TO "monservice" IDENTIFIED BY "monservice" USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP

  • Drill Down With Tablix

    Hello, group - I'm trying to figure out how to apply a drill down report tied to a cell entry in a Tablix. Now, I don't mean something that expands to see detail, like with a '+' button, but something that brings up a new report using its own query,