Sending form data to a specific email address

I have a form on an html page, and i would like to parse and process the information and send it to a specific email address.
So far i have the information from the html page sent to a jsp page to format it a certain way. But then, how can i send it as an email message? Is there any command in the JSP spec that will allow me to do this? If not, what are my options and can you please point me to the right directions?
Thanks
Englebert Sarmiento

There are a few ways to send an email in JSP. Some options are:
- Use the JavaMail library. Search Sun's site and you'll find a tutorial on how to program with JavaMail.
- Jakarta has a tag in its open source tag library for sending email (http://jakarta.apache.org).
- Use a commercial library such as dotJ (http://www.dotjonline.com).

Similar Messages

  • Send form data via email after posting to MySQL database

    I have created a form in DreamweaverMX 2004 and then tied it to mySQL database so that on submit the data posts to the database.
    This works fine. It also goes to a "success" page just fine. I then added in some php code to also email a few of the fields from the form to a specific email address. This functions correctly using this code below (the email does go - the "from" email address has my login for MySQL database) EXCEPT that the data from the fields does not come through. The field labels are there as indicated below and the email is formatted correctly, but the data doesn't come through.
    mail( $to = "[email protected]", $subject = "Someone has submitted an application",
    $content= "Essay 1: ".$Essay1."\r\n"
    ."Essay 2: ".$Essay2."\r\n"
    ."Essay 3: ".$Essay3."\r\n"
    ."Essay 4: ".$Essay4."\r\n"
    ."Essay 5: ".$Essay5."\r\n");
    What am I doing wrong?
    That's problem #1 - then problem #2 is that I actually also need to send the ID code in this email for the specific record which has been created in my database so the end recipient can associate the email with that specific ID later for other purposes. So even if I figure out problem #1, I'm not sure that I can use this code for problem #2 because the field isn't on the html form, but actually created by the database upon submission.
    Any suggestions would be helpful!
    Thanks

    Moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

  • How do I create a submit button for my form? I would like it to send the completed PDF to an email address

    Hi everyone,
    I recently upgraded to Adobe XI and I can't find a "submit by email" button for my form. I created a button and tried to set up some actions but, I can only get the button to direct the user to a URL. How do I make it send the completed PDF to our designated company email address? I'm not too familiar with JAVASCRIPTS so I haven't tried that plus I heard it may not work with users with adobe reader.
    Any help would be appreciated.
    Thanks,
    Matt

    Thanks for the input. I think you might have a different version of LiveCycle than the copy I have since it looks a little different. However, I found the answer in Adobe help. I had to type "mailto:" before the email address to indicate it's an email and not a URL. See below.
    To collect form data as attachments to email, type mailto: followed by the email address. For example, mailto:[email protected]

  • How can I get responses to return to a specific email address?

    How do I get all my for responses to return to a specific email address? Does the Acrobat user need to be logged in with this email or is there an option for this?
    Any help would be appreciated!

    Looks to me like the Distribute Forms feature in Acrobat taps into the email address you have specified in Acrobat as your identity; that's where it gets the mailto: address associated with the submit button in the document message bar. 
    Furthermore, if you create a form in LiveCycle the distribute process still seems to tap into Acrobat.  Just for grins you can open the distributed form in LiveCycle (better make and open a copy so you don't break the Reader extended usage rights), go & look in the object palette at the submit address property of your email submit button and it will be blank.  Surprise!  This data has migrated to one or more than one script at the document level.  And if your user then opens your LiveCycle-made form in Reader to complete and return, the submit button in the document bar corresponds to your identity email address in Acrobat.
    So I managed a quick but ugly workaround for an email submitted form by:
    Going into Acrobat:Edit/Preferences/Identity
    changing the email address in my identity to the desired return address
    distributing my form (can do either in LiveCycle or in Acrobat)
    putting my Identity email address back where it was afterwards.
    Good luck with all that.  And if anyone knows a more elegant method, do share!

  • How to whitelist a specific email address

    We are trying out an ironport C350. I am looking for a way to whitelist a specific email address ex. [email protected] The whitlist appears to onlyl let you add a whole domain or i.p. range and not a specific address. Is there a way to do this or would I need to build some kind of incomming content filter by sender name?

    A Content Filter would be the easiest but it is processed after the SBRS check.. Remember you can have a one content filter with multiple checks just make sure you use OR and not AND.
    So if you want to make sure a specific email is not spammed check you would need to create a Message Filter (regX expression) but then every single inbound email would be checked againest this filter.
    So the best way might be to create a whole new policy and place it before your normal or default policy. Have the policy only apply for sender = [email protected] You can turn off the spam check for this policy.

  • CDOSYS  sending Form Data

    I have tried every combination of trying to get form data
    sent in an email without any luck.
    objMail.txtEmail = Request.Form("Email")
    or
    objMail.txtEmail = Request("Email")
    If I take out the form elements I can get the system to send
    me a hardcoded email
    Can ANYONE tell me how to add a form variable into an email
    using CDOSYS.
    I am trying to use this as part of an insert, for members who
    add thier details to our database I want to be able to send an
    email to someone to be aware who has just been added.
    I rely need an answer to this...I have to get this up and
    running tomorrow
    When answering, can you advise were abouts in the script
    elements should be placed.
    ANY help would be appreciated

    i have had luck with this email code
    place before your insert record coding
    <%
    Dim ObjSendMail
    Set ObjSendMail = CreateObject("CDO.Message")
    'This section provides the configuration information for the
    remote SMTP server.
    ObjSendMail.Configuration.Fields.Item ("
    http://schemas.microsoft.com/cdo/configuration/smtpserver")
    ="127.0.0.1"
    ObjSendMail.Configuration.Fields.Item ("
    http://schemas.microsoft.com/cdo/configuration/smtpserverport")
    = 25
    ObjSendMail.Configuration.Fields.Item ("
    http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
    = 60
    ObjSendMail.Configuration.Fields.Update
    'End remote SMTP server configuration section==
    if Request.Form("Submit1") = "Send Form" then
    ObjSendMail.To = Request.Form("textfield")
    ObjSendMail.CC = "[email protected]"
    ObjSendMail.BCC = "[email protected]"
    ObjSendMail.Subject = "RE:golf tournament entry form is
    attached"
    ObjSendMail.From = "[email protected]"
    ' we are sending a text email.. simply switch the comments
    around to send an html email instead
    'ObjSendMail.HTMLBody = Request.Form("textfield")
    ObjSendMail.TextBody = ObjSendMail.TextBody &
    cStr(Request.Form("textfield"))
    ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
    vbCrlf & ""
    ObjSendMail.TextBody = ObjSendMail.TextBody & "Thank you
    for entering this years Panhandle Charitable Open"
    ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
    vbCrlf & ""
    ObjSendMail.TextBody = ObjSendMail.TextBody & "Entry form
    is attached"
    ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
    vbCrlf & ""
    ObjSendMail.TextBody = ObjSendMail.TextBody & "Please
    print form, fill out and mail in with your entry fee"
    ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
    vbCrlf & ""
    ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
    vbCrlf & ""
    ObjSendMail.AddAttachment Server.MapPath("/entryform.doc")
    ObjSendMail.Send
    Set ObjSendMail = Nothing
    end if
    %>

  • I installed Mountain Lion so that I could sync my notes with my iPhone that already syncs notes with a specific email address I use for school, but during the install it automatically set up Notes to sync w the wrong email addy. How can I fix it?

    I installed Mountain Lion so that I could sync my notes with my iPhone that already syncs notes with a specific email address I use for school, but during the install it automatically set up Notes to sync w the wrong email addy. It looked in Mail, which had 5 email accounts set up in it, and for some reason picked the only one that I no longer use because it is for a school that I no longer attend. How can I fix it so that it syncs with the correct email account for notes and calendar? There don't seem to be any settings available other than to check if you want to use the basic features. It also said during the set up that it was setting up 'find my mac' but if I look on the iCloud website there is nothing showing there for finding my mac.
    At this point I feel like I wasted my money paying for this supposed upgrade. I got nothing for it but frustration. It even automatically set my security settings to allow only downloads from the Mac store so the first time I went to download something I had to stop what I was doing and go correct settings first. I feel like there should be a security setting to block downloads from the Mac store so I don't accidentally end up clicking the wrong thing and being charged.

    iCloud isn't syncing them on your phone.  You simply added the email account to your phone and enabled calendar and notes syncing with the email provider, and the calendar and notes appear in the calendar and notes apps on your phone.  You can do this with Gmail, Yahoo and other IMAP account.  iCloud email is just another IMAP account, but syncs notes with Apple's iCloud server just as Gmail syncs notes and calendars with Google's server.
    iCloud didnt' set up a non-iCloud account on your Mac.  When you check Mail in System Preferences>iCloud, it only creates an iCloud email account.  You can also add other email accounts to your Mac by going to System Preferences>Mail,Contacts,Calendars and clicking on the "+" sign on the bottom of the left sidebar.  If you added these other email accounts to your Mac before you upgraded to Mountain Lion, these were simply maintained on your Mac after you upgraded.

  • Send Form Data to PC via USB cabile

    Respected SIr/Madam
    I want to send Form Data or RMS Data to PC via USB data cabile .
    Is it Possible ?
    if it is possible then please give me some idea how to make it
    thanks in advanse
    Souvik

    Yes ..
    First ensure that driver for the Data cable is installed.
    Get the comm port number .
    In windows
    control panel->Phone & Modem options ->Modems..
    The Comm port no for the data cable is present in Attached To column.
    In Linux ..
    you can get it by checking the Device options
    Next
    U need to establish a connection between PC & Handset using the comm port.
    Note that The comm port obtained here is the reference commport in the PC..
    U can get the comm port number in Handset using the J2ME application itself..
    String port;
    String ports = System.getProperty("microedition.commports");
    int comma = ports.indexOf(',');
    if (comma > 0) {
    // Parse the first port from the available ports list.
    port = ports.substring(0, comma);
    } else {
    // Only one serial port available.
    port =ports;
    /*Below is a code example showing how you can use serial I/O API to open a connection and read/write
    to it. */
    //using commconnection since midp2.0
    CommConnection commConn =
    (CommConnection)Connector.open("comm:COM0;baudrate=115200", Connector.READ_WRITE,
    true);
    InputStream iStream = commConn.openInputStream();
    OutputStream oStream = commConn.openOutputStream();
    String sMessage = "send";
    oStream.write(sMessage.getBytes());
    Thread tRead = new Thread() {
    public void run() {
    while (true) {
    StringBuffer sb = new StringBuffer();
    while(true) {
    int c = iStream.read();
    if(c != '\r') {
    sb.append((char)c);
    else
    break;
    try {
    sleep(1000);
    catch (InterruptedException e) {}
    tRead.start();For some handsets that do not support CommConnection, you can use StreamConnection in place of
    CommConnection with the same result:
    StreamConnection commConn =
    (StreamConnection)Connector.open("comm:COM0";baudrate=115200"); The above code is for J2me application running on Handset ...
    In PC you can refer it using the comm port identified from the Control Panel.

  • Send form data from Coldfusion to ASP

    I need to send form data from CF to ASP.
    I submit a CF page and validate it on my end with another CF
    page, which then needs to post the results to an asp page on
    another site. The post has to be sent via SSL and I don't need to
    and cannot receive any status message back from the remote ASP
    site. Any suggestions would be greatly appreciated. I was thinking
    some type of cfhttp, but I am not very familiar with its usage.
    Thanks!

    It doesn't matter what type of page you are sending to as
    long as it can handle the data that is sent. Either a form or
    cfhttp will work.

  • TS4002 Help, I can't receive emails from a specific email address!

    Help, I can't receive emails from a specific email address!

    https://discussions.apple.com/thread/4388008
    https://discussions.apple.com/thread/4742210?tstart=0

  • Cannot Send Mail One of the Recipients Email Addresses is Invalid

    Cannot Send Mail One of the Recipients Email Addresses is Invalid
    This is the error message I keep getting on outgoing mail. Incoming mail works fine. Does anyone have any suggestions to try?

    You mean you can receive and send messages when you are connected to your wi-fi network at home with your internet service provider as the internet connection for your wireless network at home, but you are unable to send messages with this account when connected to AT&T's cellular network?
    If so, this leans toward your email account being provided by your internet service provider.
    Most internet service providers block the use of SMTP servers that are outside of the ISP's network or not provided by the ISP unless the SMTP server is authenticated. Not many ISPs provide an authenticated SMTP server with the email account they provide their customers.
    You can do one of two things. The iPhone includes AT&T's SMTP server to select as the SMTP server to use for this email account when you are connected to AT&T's cellular network, but you probably won't be able to use AT&T's SMTP server to send with the account when connected to your wi-fi network at home.
    Or you can switch to using an email account that provides an authenticated SMTP server. A Gmail account is one, and a MobileMe account is another.

  • Can I send iTunes gift to a recipient email address which is non apple account email (I.e. Comcast or Gmail) as long as the person has an apple account and device to redeem it for use.

    Can I send iTunes gift to a recipient email address which is non apple account email (I.e. Comcast or Gmail) as long as the person has an apple account and device to redeem it for use.

    Yes - gifts are sent to an email address not to the iTunes account, the email has a redemption code in it which the recipient then redeems. The recipient needs to be in the same country as yourself, he/she won't be able to redeem it if their account is in a different country's store.
    Redeeming a gift : Redeeming iTunes Gift Cards and content codes - Apple Support

  • HT4061 Why when trying to message or FaceTime my mom On her iPad, it will not go through. I tried sending to her iPad number and email address.

    Why when trying to message or FaceTime my mom On her iPad, it will not go through. I tried sending to her iPad number and email address.

    Hi Judy,
    You can easily make FaceTime calls by opening the FaceTime app on your iPhone and entering in the email address and you will see an option for a FaceTime call. You can also create a contact for that person to make it easier if you plan on making frequent calls to them. Take a look at the link below for more information. 
    Make and answer calls
    http://help.apple.com/iphone/8/#/iph7801d5771
    Take it easy,
    -Norm G.  

  • Workflow using 'Specific Email Address' not trigerring emails

    I have set a Workflow on Revenue object 'When a modified record is saved'. I would an email to be sent to the Revenue Owner when the record is modified. So I set up the action to trigger an email and in the 'To' field I selected 'Specific Email Address' and for its value I selected '[<Owner>]' from the 'fx' pop-up window.
    Emails are not getting triggered when a Product Revenue record is modified. What am I doing wrong?
    I have deliberately not added any Workflow conditions. Please advice.

    Hi. You could try the following: JoinFieldValue('<User>',[<OwnerId>],'<EMailAddr>')
    [<Owner>] is just the name of the record owner. You need to get the email address of the record owner.
    Good luck! Cheers, Damian.

  • Print every email containing a specific email address for a court case

    I need to print a hard copy of every email I've sent or received that contains a specific email address for legal records. Is there a function that will make this less tedious than doing searches and printing them one by one?

    I think you should be able to do that with a filter.
    run a search and copy all the relevant emails into a local folder for the purpose.
    Use a filter and set the criteria as subject does not 0contain something like &&&&&**# that is about as improbable as a subject as a Martian in your room and select the action to print.
    Now run the filter on the appropriate folder and wait for your printer to catch up.
    Note I have had issues in the past with Windows printing just not keeping up with hundreds of print requests in a few seconds, but that was printing to PDF from Excel

Maybe you are looking for