Can we run external mail program from JSP / Servlet deployed on tomcat

Hi folks,
Had a tough time getting JavaMail API to work, finally when things seem to be working
there were some issues with the vendor's server, so finally gave up the idea.
On the server Apache and Tomcat are integrated via mod_jk and currently I redirect to a php page
which acts as a helper to send mail, however for the given business needs and server's limitations
there are potential security holes.
So I was wondering if I could directly execute the linux sendmail program from JSP/Servlet
as we would in a standalone java program or do we need special settings on Tomcat to execute external
programs.
Please let me know your views / ideas / comments on this
Thanks in advance
Abishek

Hi
It's not designed for you to be able to do this, it needs to run through 10gAS or 11gWeblogic.
Tony

Similar Messages

  • How can I run external console program, printing output to JTextPane?

    How can I run external console program, printing output to JTextPane?
    I have a console app. written in C++ and I would like to run in it from java swing app. and I would like to see its output in a JTextPane.

    I have used this article
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    to successfully pipe output from jboss batch files to a JTextPane.

  • How can I disable the Mail program from starting automatically on boot?

    Why everytime I start my computer, the Mail program start automatically?...how can I disable this?
    Thanks!

    Control-click its Dock icon and set it not to open at login, or remove it from the list of login items for your user account in the Accounts pane of System Preferences.
    (40415)

  • How can I run a perl program from XPRESS?

    Hellos..
    Java it seems has no concept of file permissions and ownership.
    Our handbuilt IDM XML file output adapter create files OK but they seem to be owned and have default permissions of root the account that kicks off the App Server.
    We want these XML files our resource adapter (written in java) creates to be accessible by a noshell account so it can get them with scp.
    The easiest way I thought was to have a little perl script in the mix. Must I really exec() `chmod` and `chown` ?
    I notice there is the <script> </script> for javascript 'coding'... when do we get a <perl> </perl> interface for doing useful things?
    GF

    here there is an example about how a PL/SQL procedure can
    work with an external C program.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76936/dbms_pi2.htm#1003384
    Apart from that you have Java Stored Procedures option
    to carry out your task.
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    Joel P�rez

  • Run external exe program from APEX button

    Hi,
    I want to run external programs like EXCEL or Word called from an APEX button.
    Does anyone hav an idea?
    Regards,
    Siegwin

    Hi Siegwin,
    To my knowledge, there are two possibilities running apps on the client side: Either user IE with ActiveX or create your own browser and deploy it with the application.
    I did this using the WebKit browser which comes free with the Qute-Framework. It works very well, the only thing I need to do is create a link that starts with os:// to start an external application and hand parameters over. The browser is a minimal browser component, strong enough to run Flash and enabled to interact with the local computer. Deployment of this C++ application is a simple copy to a network device. This approach gave me piece of mind in regard to compatibility issues as well. The browser is a simple window that even don't allow for direct address entering, therefore the Apex-application looks like a normal application then and is unable to connect to any other internet resource other than the APEX applicaiton itself.
    To the others moaning about this security whole: There are situations where you need something like this, fi in intranet environments where you want to enable APEX to interact with the local environment. So I think it's a valid request.
    Best regards,
    Jürgen

  • Can't run java .class programs from Windows command line!

    I have tried to get a program that I wrote with the JDK to run from the Windows command line, but it is not working. I typed:
    java HelloWorld
    Where my .class was HelloWorld.class, a compiled java program. I spelled the name correctly (and I am in the correct directory), yet I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    I think something is screwy with windows, but that's just me. Any ideas??

    Likely a CLASSPATH issue - try
    java -classpath . HelloWorldGood Luck
    Lee

  • How can I execute a java program from a Servlet?

    Thank You
    [email protected]

    You could call it via Runtime.exec(), just as you would from any Java program. Or better, you could redesign it as a proper Java class. Then your servlet could create an instance of the class and call its methods as necessary.

  • How do I get my email in Apple's Mail program from old drive to new drive?

    I can not determine from Apple's support info how to export my email in Apple's Mail program from the old drive to the new drive.
    The old 60 GB drive was at 55GB and had 3 volume structure problems. It would not backup all files using SuperDuper!, but I could backup the user files onto an external 250GB Tintanium Fantom Drive. So I installed a new 120 GB in the iMac and took the old 60GB drive and put it in an external firewire drive housing, which mounts, runs and will even act as the startup drive. I installed 10.3.9 on the new 120GB drive. I was able to export the address book over to the new drive with no problems, but I don't know how to export the email.
    There does not appear to be an export function in Apple's Mail program (This sounds kind of ???).
    I have a lot of email (#???) in a lot folders and subfolders (60) in addition to the inboxes, plus all the sent mail (2,000)

    The Mail.app preference file (which stores all account information and general Mail.app preferences) is located at Home > Library > Preferences > com.apple.mail.plist.
    All Mail.app mailboxes and other data is stored in the Mail folder at Home > Library > Mail.
    With the Mail.app quit on the new hard drive, place a copy of the Mail folder from the old hard drive at Home > Library on the new drive. If there is an existing Mail folder at Home > Library, this will replace it.
    Place a copy of the com.apple.mail.plist file from the old hard drive at Home > Library > Preferences on the new hard drive. If there is an existing com.apple.mail.plist file at Home > Library > Preferences on the new hard drive (and there should be one if you have launched the Mail.app on the new hard drive), this will replace it.
    Launch Mail on the new hard drive and the Mail.app should be completely restored or identical to the Mail.app on the old hard drive.

  • How can i run my java program with out java language

    Hai to every one ..Iam new to java language ...am using windows xp operating system , i did not installed java language in my system .. how can i run a java program with out installing java language... Which files is requied to run java program..?
    any one can help me??

    Hai to every one ..Iam new to java language ...am
    using windows xp operating system , i did not
    installed java language in my system .. how can i run
    a java program with out installing java language...
    you ... can ... not ... do ... this
    Which files is requied to run java program..?
    any one can help me??a JVM. Download it from sun's website.
    [url http://java.sun.com/javase/downloads/index.jsp]Download JavaSE here

  • Running external java program

    Hi all,
    I need to run an external java program from my application.
    The external program can be executed command prompt as follow
    c:\> java -classpath SDMetrics.jar sdmetrics.SDMetrics and another argument
    Since I use the output of the above command , I prefer to do that as a part of my application, in which the external program will be run automatically in my application.
    Any help will be appreciated
    zara 75

    Yeah you can use Runtime.exec (or, if you're using JDK 1.5, ProcessBuilder) to exec the program as a separate process.
    Read this about it:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • URGENT: How to run a Java program from a different directory?

    Hi.
    How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
    What would be the command to run the Java file from c:\Java.
    I can't remember it and I need it asap.
    Cheers.

    If the class you are trying to run is MyApp.class, try
    c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
    Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
    The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)".

  • Can you run a pc program on a mac?

    Can I run a PC program on the a new mac?

    Yes. But.
    You will need some kind of software environment such as Boot Camp (free from Apple) or Parallels.  Then you will need to buy and install Windoze.
    charlie

  • HT6030 I have many problems with my mail since I moved to mavericks. The filter is very sensitive, read mail appears as unread, I can't drag mail to the folders and more. I can't update the mail program as directed on this page, update says my system is u

    I have many problems with my mail since I moved to mavericks. The filter is very sensitive, read mail appears as unread, I can't drag mail to the folders and more. I can't update the mail program as directed on this page, update says my system is updated

    I don't think that a software update from Apple will solve the issues that you are having. You have a rogue installation. After you posted I have just done the following:
    Disk Utility can verify  my partitioned Volume (including my boot disk) AND REPAIR the non-boot disks on the same Volume without a glitch. It repairs the non-boot disks containing data smoothly.
    I have used Mail to send some mails from some Yahoo and Hotmail accounts to my Thunderbird client containing GMail accounts - absolutely normal.
    I have iLife '09 but my iMovie '09 and iPhoto '09 open in a jiffy and I see no issues here. I have 6GB RAM (Maximum) on an early 2008 Macbook Pro with a 750GB hard drive partitioned with 120GB reserved for the Boot Drive.
    I am sorry that I cannot help further but I am sure there must be a way to reinstall the software without having to revert to restoring your ML backup. I have two clones and if you have such I would attempt to do that through that rather than through Time Machine - that is of course if you have a cloned drive.
    Good luck!

  • Transfer email on MAIL program from one macbook pro to an IMac.

    Is it possible to just transfer email on MAIL program from one mac computer to another mac without using the internet? I have a huge amount of email that I would like to transfer my email but I have a limited amount of data download allowance. I am not sure if migration assistant will be that specific.

    Follow these instructions only if both Macs are running exactly the same version of OS X.
    Triple-click the line below to select it:
    ~/Library/Mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with an item selected. Quit the application if it's running. Copy the selected item from the old Mac to the new one any way you like.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Sending Mail from JSP-Servlet

    hi all,
    Can any one help me, how can i send the mail from JSP-Servlet.
    in Spring, we have a the following package to send mail,
    import org.springframework.mail.MailSender;
    import org.springframework.mail.SimpleMailMessage;
    import org.springframework.mail.javamail.JavaMailSenderImpl;
    Suggest me to solve the problem.
    Thanx in advance.
    Bala

    Hi balu,
    i already go thru that API. My problem is if i add any additional jar file for sending the mail from JSP or Servlets only. not in high technology.
    i mention spring as an example.
    so, kindly suggets me on that.
    Bala

Maybe you are looking for

  • I can't press done to complete game center account creation

    I've just bought iPad 2 today. I want to make my apple ID available for game center so I do what the instructions said. When I've got to the screen that want me to enter the Nickname, I complete every field there and press done. After that, the scree

  • Euro character in HTML with non-euro supported language

    I have a customer in Belgium who wants a servlet-generated webpage that displays the text in english, but the decimal notation as belgium and the currency as EURO. The problem is that en_BE_EURO does not work because it doesn't exist according to: ht

  • Transferring Books/other items

    will I be able to transfer books from my kindle app or other pictures/videos from my iPad to an IPad 2!??

  • Inspection lot stock tab is missing

    Hi, In inspection lot generated for 01 insp type purchase order, the inspection lot stock tab is missing. Is there any control ?

  • Apex 4.0.1 Error handling

    Hi All, Do we need plug in to handle user friendly error message instread of throwing ORA- error to user?