How to respond to the prompt?

Hello Friends, I have a class that sends mail. It is petty cool but now I want it to send e-mail without me entering the info. So, when the program prompts To: I can have a program that fills that out for me. And Then when it asks for a message, I can have my predefine text input and when it is done it types a point. I think this is simple but I really have no clue how to do this, Thanks in advance... I have cut and past how this program looks when you are running it.
somecomputer/someuser>java SendMail
To: [email protected]
Connecting...
Enter the message. End with a '.' on a line by itself.
Hello!
Message sent.
somecomputer/someuser>

I wrote this code but it seems to work in windows but it hangs in Unix. Can someone help me, thanks.
import java.io.*;
public class testSendMail
     public static void main(String[] args)
          String [] email = {"[email protected]" , "Hello!" , "."};
          SendMail  sm = new SendMail();
          sm.main(email);
}

Similar Messages

  • Phone asked for voicemail password after update to iOS5. I pushed cancel bc I didn't know it. Now I now it but the screen just says set-up. How do I get the prompt to appear again?

    Phone asked for voicemail password after update to iOS5. I pushed cancel bc I didn't know it. Now I now it but the screen just says set-up. How do I get the prompt to appear again?

    usaspirit88 wrote:
    Phone asked for voicemail password after update to iOS5. I pushed cancel bc I didn't know it. Now I now it but the screen just says set-up. How do I get the prompt to appear again?
    Try typing in your 10 didget cell number. Restart iPhone to get the prompt again.

  • How can we get the prompt to enter IP Address, Subnet Mask , gateway and DNS Server during Task Sequence?

    How can we get the prompt to enter IP Address, Subnet Mask , gateway and DNS Server during Task Sequence?

    This is for 2007 but may still be relevant for 2012
    http://hexdump.net/?p=391
    Cheers
    Paul | sccmentor.wordpress.com

  • HT5132 If I've already moved MobileMe albums to iPhoto, how can I stop the prompt asking me to move them to Aperture?

    If I've already moved MobileMe albums to iPhoto, how can I stop the prompt asking me to move them to Aperture?

    To William Lloyds recommendation I have to add the following: I tried to implement the suggestion and thus to have the Mobileme-account closed to avoid the lenghty process mentioned, however, I am given to understand that if one choose to have the account closed, ALL of the galleries/albums etc, so far hosted within Mobileme will ALSO be deleted within APERTURE!! And that is not exactly what I want, in as much as I am intending to move everything (Galleries etc) to Smugmug...any suggestions as to eliminate the migration suggeted within Aperture?

  • I am being prompted to update Firefox, but upon consulting the details, I find that it may interfere with my Windows XP. How can I stop the prompts?

    I am still using (and will not be updating) Windows XP. The details of a Firefox update indicate that the new version (which I don't need) may interfere with XP. I want to have Firefox cease and desist prompting me for an update. How can I do this? I just keep selecting "Ask me later". Is there a more permanent fix?

    Firefox 32.0.3 works fine on WinXP and contains many important security patches - in fact the "nightly" Firefox 35 pre-release tester version works fine, too.

  • My macbook is not responding to the prompt to shut down

    using the Recovery HD...it prompts me: "holding down the Command key and the R key until you see the Apple logo"...but nothing happens...HELP PLEASE!

    What are you trying to do? If you are booted from the Recovery HD you shutdown by selecting that option from the menubar's Apple menu.
    If you are trying to boot from the Recovery HD:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.

  • How do I get the prompt in "Step 2" of the download process to provide the icon I need to drag to my applications folder?

    The problem with the help page is that it starts after the browser is downloaded which is great, but I generally have very few questions about the browser once it is downloaded, it is getting it downloaded that generally provides the most difficulty.
    The last time I tried to download a Firefox upgrade 3.4 to 3.6, I think. I had a different but similar problem. Then I would click on the download button and nothing would happen, this went on for several months. But I hung in there and dutifully clicked the download button again and again for about 6 months and one day, I won the download lottery for that day and the damn ting downloaded.
    Now I am trying to download the beta verson 4. As a result I guess of my past determination I am now getting hung up at Step 2. It appears to download, by that I mean the little window (excuse my nomenclature I'd completely computer illiterate which doesn't help) with the blue download line and the timer numbers runs across the top of the download window. But then nothing else happens. It never goes to step 2 which is dragging the icon to my applications folder. What is the magic formula this time? Or am I destined to just continue to attempt the download again until the computer gods finally decide I am worthy to receive version 4?
    I have already tried three different times. Still nothing. I have a 1.5 GHz PowerbookPC G4 with Mac OS X Version 10.5.8 and 1.5 GB DDR SDRAM

    Hi,
    I still have a problem in geting
    Window Coords for the Plot Area of a CNiGraph (under VC++) :
    What I do (inside of CNiGraph derived) :
    CNiImage image = Images("Plot Area");
    image.SetUrl("C:\\WINDOWS\\Circles.bmp");
    image.Reload();
    CNiPicture Picture = image.GetPicture();
    int width = Picture.GetWidth();
    width is 847,
    and that is, I think,
    the Himetric (1/1000 m) width of the
    bitmap ploted on my Display.
    The width doesent change, if I
    resize the CNiGraph Ctrl !
    So, is there a nother way to calculate the
    actual size of the Plot Area ??
    Yours,
    Joerg Peleikis

  • How do I change the Prompt values in a rep sched to run weekly

    My clients run reports on regularly, monthly, weekly, bi-annually you get the idea.  I want to know if there is a way I can automatically increment the date values to mach the run frequency of the report.  I want to make this as bullet proof as possible so if I can avoid manual input by the client that would be great.

    Create date variable in Universe which calculates the days automatically and use these objects in the condition and schedule the report accordingly.
    Eg: If you want to run a report  daily to bring previous 7 days data create an object in desinger with the def sysdate-7 (if it is oracle) and use that object in the condition. Then schedule the report. so whenever the report runs it brings the prvious 7 days data.

  • Captivate 8: Can I pull a report to tell me how learners responded to the individual questions in a quiz?

    I need to know if the questions were answered correctly or incorrectly by each learner. Of those questions that were incorrectly answered, I need to know which incorrect option was chosen as the answer.

    The LMS should show what the user chose as their answer when they complete a quiz. I am only really familiar with Joomla, but they do show what the user answered for each question. Is this not happening for you?
    -Peter

  • Wrong Apple ID: How do I change the Apple ID prompt when Updating All Apps?

    How can I change the (wrong) Apple ID from the password prompting dialogue when I am already signed in Apple Store with my own ID?
    More details of my problem:
    When I try the Apps' Update-All option in my iPod 4, the password dialogue prompts me with my girlfriend's Apple ID; YET, I AM signed in the Apple Store with MY own Apple ID.
    I have already verified my ID under Settings/Store. I have also signed out, signing back in with my Apple ID, just in case. No problems there, for I DO sign in with my own ID ok. The problem is just the prompt dialogue for password, when I try to use the 'Update All' feature it prompts me for password with her ID, not mine.
    If I go back to Apps and choose the Categories (or Top25) menu, at the bottom of the page, it shows me signed in (my Apple ID). If I try to update one Apps it will do ok. But if I try to Update All it will prompt me for password using her ID, waiting for me to type in HER password. I cannot change the Apple ID on that dialogue (static). If I use my password, it will return the "wrong password" dialogue.
    How can I change the prompt for the Update All? What is going on here that I AM signed in but my iPod prompts me with her ID. My iPod is registered under my Apple ID. I have already tried the Hard reset by pressing Home and Power buttons simultaneously, to no avail. I am also using my own network to go Online. I am also with the latest OS in my iPod and my Mac's iTunes.
    Thank you!
    PS This problem is not occurring in my iPhone 4 (same account) nor my Macs.

    Does not work for me. (My iPhone is not jailbroken.)
    I downloaded a paid app "Imray Marine Rules and Signals v1.5" in the USA with my original account (Account1) then moved countries and needed to create a new Apple account (Account2). If I get 'Info' for the app, it is registered to Account1.
    A new version 1.6 of the Imray app has now been released.
    I have set up only Account1 on the iphone (settings - App Store) and both Account1 and Account2 in iTunes on my computer. My iphone always tells me there is 1 app to update. However, when I try to update this app on my iphone, I get asked for the password for Account2, then the download fails as it says I do not have a paid earlier version to update.
    When I am logged into my computer iTunes as Account1 and try to update it on the computer iTunes, it says there are no apps to update (although my version of the app is definitely the old version).
    When I search for the app in iTune Store, it tells me I have already downloaded version 1.6 of the app and the download button is grayed out.
    If I temporarily delete the app from my iTunes then try to re-download, I am asked to purchase it again.
    If I log into iTunes as Account2 then try to download it, I am asked to purchase it.
    Any ideas? I feel I have tried every option and no success.

  • How to avoid printer name prompt while calling Smartform

    Hi All,
    I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:
    wa_outputoptions-tddest = 'LP01'.  "Printer name
    wa_outputoptions-tdnewid = 'X'.     "New request
    wa_controlpara-device = 'PRINTER'.   "Device
    wa_controlpara-no_dialog = 'X'.          "No dialog
    Even after these settings I am getting prompt which asks printer name and other details.
    Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.
    Thanks in Advance.
    Regards,
    Vijay

    Hi Vijay,
    Try like this.
    CALL FUNCTION fm_name
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
    <b>   control_parameters         = wa_controlpara</b>
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       <b>output_options             = wa_outputoptions
       user_settings              = space</b>
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = tab_otf_data
      JOB_OUTPUT_OPTIONS         =
      TABLES
        it_tab                     = itab[]
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
    Regards,
    SP.

  • How do I stop the Adobe Product Improvement Program prompt?

    How do I stop the Adobe Product Improvement Program prompt from coming up every time I open Photoshop CS5 on my Mac, even after I have responded that I do not want to participate?  This is becoming very annoying and I have looked on line for a method to turn this off without luck.
    Thanks,
    Alan

    It only asks once.
    So it sounds like your preferences might not be getting saved for some reason (usually a permissions problem on your system)..

  • How do we get Apple to respond to the CD burning problem?

    How do we get Apple's answer to the problem so many of us are having burning CDs?

    Apple responds to problems with their software though KnowledgeBase articles and/or software updates. Except on very, very rare occasions, Apple tech support people will not respond in the Discussions forums. If you want to communicate with Apple tech support directly, you would have to call their tech support forum (the call will not be free).
    Have you seen this KB article?
    iTunes for Windows: Additional troubleshooting for burning issues
    It may not help, but if you haven't seen that article, it's worth a look.
    You might also try as a temporary test disconnecting the Lite-On drive and setting the Samsung as master and then see if you can successfully burn from iTunes.
    Regards.

  • After downloading Mozilla Firefox 4.0 Beta to my desktop I restarted the computer, but I do not receive any prompts to create an account with a Secret Password. How do I set up the account if the prompt never show up?

    Several months ago I installed the Firefox Home app on my iPhone to sync the bookmarks that I had on my Windows XP home computer. It has worked just fine until a few days ago. Just recently I was notified that the app would no longer work because of changes that have been made. I have tried to follow the instructions that were emailed to me regarding how to setup the new Firefox Sync add-on, but I am having a problem. After downloading Mozilla Firefox 4.0 Beta to my desktop and restarting my computer, I do not receive any prompts to create an account with a password and a secret phrase, as the instructions specify. How do I set up the account if the prompt never shows up?

    Click on the Firefox button then select Options to open the Options dialog. Now go to the Sync panel for the option to setup a new account.

  • How to use the prompt value in the report column

    Hi
    I have a report prompt column which is 'Adj Type' which holds values 10,20,30 and when user selects Adj Type = 10 then this value should be passed to report column.
    For Eg. Column 1 value is 10 and this should multiple with prompt value and the output should be 10* 10.
    Any thoughts how to capture the prompt values in report column for calculation.

    hi hsekar,
    1) Declare a presentation variable in prompt under the Set Variable section -->Presentation Variable -->P_var
    2) In Fx Table_name.Your_column * @{P_Var}
    @{P_var}{20} ( 20 is default value it will override when a user selects value in prompt
    Thanks,
    Saichand.v

Maybe you are looking for