Mail Program using Java as...

HI!
Is this possible in java...
to make Mail Program using Java as frontend & use Outlook Express database as backend
PLease Help...
Bunty India

Hi Gandalf,
I picked up your code and ran it, couple of things, firstly windows and Unix line terminations are different so in your method doCommand use "\r\n" not just \n, this will give a full <CRLF>
On you initial HELO you want to use your computer's id as part of the command so use this line:
sender_domain = InetAddress.getLocalHost().getHostName();
String s1 = new String("HELO " + sender_domain);
s1.trim();
response = doCommand(s1);
Cheers
Dom

Similar Messages

  • Mail Program used by Oracle reposts builder

    I'am trying to send mail through oracle reports builder.
    But it seems like Virus Scan has blocked port 25 on my computer so I cannot send mails and I 'am getting the following error.
    REP -0069;Internal error
    REP -57054:In Process job terminate:Terminated with error
    REP -50152:Error while ending mail-Sending failed;
    nested exception is:
    javax.mail.MessagingException:Could not connect to SMTP host: mail.yahoo.com,port:25;
    What is the mail program used by oracle reports builder to send mails(e.g.. javamail.exe) so that I can request my administrator to open the port for this mail program alone.
    Thanks in advance.
    Preethi

    Hello,
    Reports (Builder and Server) uses the Java Mail API to contact the smtp server
    http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetAddress.html
    The smtp server to use is defined in the Reports Server Configuration File
    Example:
    <pluginParam name="mailServer">smtp01.mycorp.com</pluginParam>
    Regards

  • How to send mail attachments using java mail

    can any one help how to create mails attachments using java mail

    you can do it like this:
    Message msg = new MimeMessage(session);
    String fileAttachment = "c:/test.txt";
    Multipart mp = new MimeMultipart();
    BodyPart bp = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(fileAttachment);
    bp.setDataHandler(new DataHandler(fds));
    bp.setFileName(fds.getName());
    mp.addBodyPart(bp);
    msg.setContent(mp);
    ...

  • New "Windows Programming Using Java" Website

    Our newly created "Windows Programming Using Java" website (http://fivedots.coe.psu.ac.th/~ad/winJava/) is for programmers who want to extend Java's capabilities on Windows XP and/or Vista, but aren't sure where to start. One of the drawbacks of Java's portability is that many Java programmers have a rather sketchy knowledge of Windows-specific programming.
    We plan to explain how Java applications can utilize Windows application software, OS features, and hardware beyond the reach of Java's standard libraries. A variety of Java/Windows programming techniques will be explained, including:
    * Java's employment of the Win32 API via C, JNI, and J/Invoke.
    * Java's utilization of Window's Command Line Interface (CLI) and batch files, accessed through Java's Runtime, ProcessBuilder, and Process classes.
    * Java and Windows object-based scripting, centered around the use of VBScript, Windows Script Host (WSH), and Windows Management Instrumentation (WMI).
    * Java interoperability with COM, including hosting of ActiveX controls in Swing containers using jacoZoom.
    This website is a work in progress, with four chapters available for download at the moment. We'll be adding more regularly, and would love feedback on what we're doing.
    Thanks,
    Gayathri Singh and Andrew Davison
    [email protected] and [email protected]
    Edited by: AndrewDavison on Jun 20, 2008 1:36 AM

    Hi, I am looking the similar kind of requirement that you had done.. Do you have any more details on the code that is working for you . All i need is if the user logs in successfully in windows, the the app should be accessible. Please let me know if you have the code with you on this problem.
    Thanks in advance
    "what i meant is the we b applications running in my system, when i access the application iam able to to login automatically with windows authentication and now in case of other users following process happened:"

  • Monitor Unix Mail Queue using java

    Hi! ,
    I want to monitor unix mail queue using java. how can i proceed..
    Please advice..
    Thanks..
    Ganesh

    Google and see if there is an API which lets you monitor it.
    Kaj

  • Can any one please send me sample programs using java mapping..

    <b>Can any one please send me sample programs using java mapping with input and output?</b>
    please let me know how to get started with java mapping?
    Prerequisites for java mapping ?
    What are the jars need to be deployed for SAX,DOM.  And how to do it in NWDS?
    Use of Execute() and setparameter() ... StreamTransformation?
    Some sample program using java mapping with simple logic(input and output)?

    Hi,
    Did you go thro these blogs?
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    Nice blogs to start Java Mapping.
    Go thro this one too.
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    Regards,
    P.Venkat
    Message was edited by:
            Venkataramanan

  • Kernel programming using Java

    I'm currently doing a research in computer security and would like to develop a system which can deal directly to linux kernel in order to enhance the security. During my research I found that Java is a type-safe language which is more secure if I develop my system compare to C language which is lack of type-safe. So I decided to use Java to develop my security system which will enhance resources management in Linux. My question is, does anyone know whether Java could be used in kernel programming or not? Where could I get some sort of references related to my work especially tutorial about kernel programming using Java. I would appreciate if anyone of you could help me in this matter. TQ

    I'm currently doing a research in computer security ...You might want to do a bit more research into the languages.
    What you are discussing has nothing to do with security.
    If you are writing kernel services then java is probably ill suited because the normal implementations use garbage collection which is not under your control. This makes it hard (if not impossible) to control timing.
    If your sole desire is type safety then C++ provides better type safety and provides more control over types as well.

  • Re: Mail Program using FORTE

    Hi Khatil,
    You should write "C" wrapper class which inturn calls MAPI send mail from
    mapi32.lib, that function you call from forte.
    For further detail information you should refer Integrating with external
    systems
    hope this helps
    bye
    Ashok Segu
    IBC
    Raaman Subbiah wrote:
    Dear Friends,
    Can anyone suggest me, how to write a mail program using forte:
    The question is, From Forte Application, we have to send a message via
    mail. e.g., to [email protected]
    Always thanks,
    Khatil
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    The easiest way to send e-mail from Forte is using ExternalConnection class
    - no "C" wrappering required. Simply, just use SMTP. It is very easy to
    implement and because it could be written in Forte you get all the
    advantages that come with it.
    On Forte -users list look for mail that I send a few weeks ago about SMTP
    email client.
    If you can not fidnd it let me know.
    Hope this helps.
    Dariusz Rakowicz
    Consultant
    BORN Information Services (http://www.born.com)
    8101 E. Prentice Ave, Suite 310
    Englewood, CO 80111
    303-846-8273
    [email protected]
    -----Original Message-----
    From: ashok segu [SMTP:[email protected]]
    Sent: Thursday, September 03, 1998 8:15 AM
    To: Raaman Subbiah
    Cc: [email protected]
    Subject: Re: Mail Program using FORTE
    Hi Khatil,
    You should write "C" wrapper class which inturn calls MAPI send mail from
    mapi32.lib, that function you call from forte.
    For further detail information you should refer Integrating with external
    systems
    hope this helps
    bye
    Ashok Segu
    IBC
    Raaman Subbiah wrote:
    Dear Friends,
    Can anyone suggest me, how to write a mail program using forte:
    The question is, From Forte Application, we have to send a message via
    mail. e.g., to [email protected]
    Always thanks,
    Khatil
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Extract Mail Attachment using Java Mail

    Hello Friends
    A day ago I entered into Java Mail , now I am able to send mail from my Java Program.
    The help I need from you is I wanna save the attachment coming in the mail using Java.
    For eg : a mail reched my Inbox contains .xls or .csv file which I wanna save to some place.
    Plss guide me to acheive this friends.
    Regards
    Vicky

    String host = "";
    String username = "";
    String password = "";
    String srcDir = "INBOX";
    String tarDir = "";
         String subject = "";
    String filepath = "C:/Documents and Settings/name/Desktop";
    String filename = "demo";
    Properties props = System.getProperties();
    props.put("mail.host", host);
    Session session = Session.getDefaultInstance(props, null);
    Store store = session.getStore("imap");
    store.connect(host, username, password);
    Folder folder = store.getFolder(srcDir);
              Folder dFolder = store.getFolder(tarDir);
    folder.open(Folder.READ_WRITE);
              Message message[] = folder.getMessages();
              java.util.Date yesterdayDate = new Date(System.currentTimeMillis() - 24*60*60*1000);
    for (int p = 0; p < message.length; p++) {
                   java.util.Date messageReceivedDate = message[p].getReceivedDate();
                   if(messageReceivedDate.after(yesterdayDate))
                        if (message[p].getSubject().equals(subject)) {
                             Multipart mp = (Multipart)(message[p].getContent());
                             for (int i = 0, n = mp.getCount(); i < n; i++) {
    Part part = mp.getBodyPart(i);
    String disposition = part.getDisposition();
    if ((disposition != null) && (disposition.equals("ATTACHMENT") || disposition.equals("INLINE")))) {
    String fullpath = filepath+"/" + filename+".csv";               
    File file = new File(fullpath);
    InputStream in = part.getInputStream();
    FileOutputStream fos = new FileOutputStream(file);
    byte[] buf = new byte[part.getSize()];
    int c = 0;
                             while ((c = in.read(buf)) != -1) {
    fos.write(buf, 0, c);
                                       in.close();
                                       fos.close();
                                  } // if (disposition) closing
                             }// inner for loop closing
    /* ----------------------------------------------------Move Message to new folder--------------------------------------------------------------------- */
    if (message.length != 0) {
    folder.copyMessages(message, dFolder);
    folder.setFlags(message, new Flags(Flags.Flag.DELETED), true);
    // Dump out the Flags of the moved messages, to insure that
    // all got deleted
    for (int i = 0; i < message.length; i++)
                                  if (!message.isSet(Flags.Flag.DELETED))
                                       System.out.println("Message # " + message[i] + " not deleted");
                             } //for
    }// if (message.length != 0)
    // System.out.println("*** Message moved to "+tarDir+" Directory ***");
                        }//if loop closing - checking message subject
                   }// if loop closing checking date
    }// outer for() loop closing

  • How Can I execute a java program using java code?

    {color:#000000}Hello,
    i am in great trouble someone please help me. i want to execute java program through java code i have compiled the java class using Compiler API now i want to execute this Class file through java code please help me, thanks in advance
    {color}

    Thanks Manko.
    i think my question was not clear enough.. actually i want to run this class using some java code . like any IDE would do i am making a text editor for java, as my term project i have been able to complie the code usign compiler api and it genertaes the class file but now i want to run this class file "THROUGH JAVA CODE" instead of using Java command. I want to achive it programatically. do you have any idea about it.. thanks in advance

  • Dynamic Programming Using Java

    hiiii...anyone knows how to use a dynamic programming to compare a mouse movement using java??? i hope some one can help me......

    This was just an idea. I do not know of any program
    implementing this. I will not help you store coordinates
    into a database, but I can explain my suggestion in
    more detail.
    Since the characters might be more dependent on the page
    then the user, you must make a sub character for each page.
    Your table row must then contain following fields:
    user, time, page, x-cord, and y-cord.
    Now assume following
    - we will use the characters 'average speed' and
    'centre of gravity of movement'.
    - we have two sessions of data, that is two sets of table
    rows as described above. Every set belongs to different
    users.
    - the sessions are spread on a set of pages.
    Now we will compute the distance between these users. There
    are a lot of distance metrics but let us choose the most
    common one. Let P be a set of points in R^n and p.n
    be the n coordinate of the point p in P. Then for any p1
    and p2 in P, define the distance metric to be
    D(p1,p2) = summa_{over n} (p1.n-p2.n)^2
    Define the average speed for a certain user and page to be
    Speed(user, page) (in) R. Further more let
    Gravity(user, page) (in) R^2 be the centre of gravity of
    movement for a user and page.
    Then the total distance is
    D(user_1, user_2) = summa_{over all pages} k1*D(Gravity(user_1, page), Gravity(user_2, page)) + k2*D(Speed(user_1, page), Speed(user_2, page))
    where k1 and k2 are constants determines the importance
    you want to assign the two characters.

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

  • Flash programming using Java!

    I found there are tools to compile .net applications to SWF movies that can be run by Flash.
    Are there any similar tools for Java, which can compile Java programs into SWF files?
    Looking for a way to write my Flash movies using Java...
    Thanks :)

    see if this is useful
    http://www.anotherbigidea.com/javaswf/
    Thanks, but I wanted to find a way to use Java syntax instead of Actionscript syntax when programming SWF files...
    Basically a compiler similar to javac, but which produces swf binaries instead of .class binaries.

  • Window programming using java

    hi,
    can anybody suggest me how to go with widow API using java?
    say like if i want to shutdown my computer after pressing the button.
    thanks in advance,
    sachin

    Given the platform-independant nature of Java, I'm not sure there's a way to program Windows directly using it. Certainly there's no Java methods for this.
    However, it is possible to wrap windows dlls and access them from java, and this is probably the route you'll have to take. It's not particularly easy, but it's effective.
    I remember there being an article on gamelan.com about this, sorry don't have the link anymore - you'll have to search.

  • Java mail program in java

    Hi,
    Can anybody suggest me the java code which sends mails using java mail api?
    Thanks & Regards,
    Karimulla

    Hi
    I have worked on it,so if you need code for the application,please write mail to me on my address [email protected]
    hopes u will get gud solution.
    cheers
    Sandy

Maybe you are looking for

  • IPod touch isn't showing up on My Computer

    I'm trying to move my pictures off of my iPod and onto my laptop, but when I go to My Computer, my iPod doesn't show up. Forums and discussions said that if it's not updated, it needs to be, so I did, but it's still not showing up.

  • TS3694 i down loaded ios 6 onto my ipad 2 and now it is recovery mode? what do i do now

    I downloaded ios 6 onto my ipad 2 and now it is recovery mode, how do I fix this?

  • Keep getting Error 1310

    Loading ele 10 into vista. Stops and asks to verify access to E_ImageStackLR.prg.

  • ALV Grid Layout problem

    I have define a form layout on the first screen (ALV) of my program then the program call another screen,  the same layout is applied to the new screen 0200 (ALV). I don't want the same layout been applied to the new screen. What is my problem? Regar

  • Edge Animate Installed as Trial?

    I am an Adobe CC subscriber. Today when I updated my apps, it showed Edge Animate installed as a 30 Day trial. As a CC subscriber, shouldn't it just be full version activated?