Gather email from Form to submit PDF attachment.

Hello all.
First off, I am a Javascript noob, but am pretty good at figuring things out. This is what I am attempting to do:
I have several forms that our office uses for tracking mileage, new employee hire stuff, etc. I'm trying to set the office up to use digital signatures, and decrease the amount of paper waste.
I have the forms created, and at the top have two buttons, print, and Send form. On top the of the Send Form button, I have a text field where I want people to be able to put an email address in, and when they press Submit Form, it will load up their Outlook and already have that email filled in.
I'd also like the option of using a drop down menu as well on certain forms.
I am having trouble getting the coding right. Eventually I'd like to be able to determine the subject line and body of the email as well, but at this point I'd settle for getting it to load up outlook with the email that was typed into the form "Destination" or, as on certain forms, whatever value is selected from the drop down menu.
I can set up a submit button to a pre-determined email easily, but I need something beyond that now.
Thanks for any and all help!
Regards,
Dylan

I think I figured it out. Here is what I use to pull the email address:
var mailTo = this.getField("DeliveryCombo").value;
var subject = "Mileage Report for " + this.getField("EmployeesName").value;
var msgBody = "Here is my mileage report for you.";
this.mailDoc();
If you look at the var subject line, you will see that I have the first part of the subject as static (Mileage Report for ) and then I have it pull the name from the EmployeesName field to complete the rest of the subject.
When someone clicks send, it generates and email to the email address they typed in or selected from the combo box, puts the subject line as Mileage Report for (name of employee), and generates that short part in the body. Finally, it attaches the PDF in full to the email.
I hope this helps. Let me know if it doesn't and we'll see if we can figure something out.
Dylan.

Similar Messages

  • Submit button to return a completed form as a pdf attachment

    Win XP SP3
    LiveCycle ES 8.2
    I’ve created a submit button to return a completed form as a pdf attachment (see http://cookbooks.adobe.com/post_How_do_I_change_the__Email_Submit__button_so_it_wi-16533.h tml “Use a regular form button”) but the fields in the filled & submitted form that arrives in me inbox are editable e.g. I can alter or delete what’s been entered.
    This form will be accessed through a link on the organisation’s website & will open in a browser, rather than in reader itself.
    How can I set the form so that once it’s been submitted the fields become uneditable? This needs to be something that I do to the form before it’s uploaded to the site so as to make it as simple as possible for the people filling it in.
    TIA

    You can put a Signature Field on the Form and set the Property to lock the form Fields after signing.
    So once the form is signed and submitted it cannot be edited.
    ~Pranav

  • Send email from forms

    Can anybody send me a code how to send an email from forms
    with attachement for multiple users
    I am using oracle 8i and forms 6i
    My mail application is Novel group wise
    Thanks for your help

    Oracle Reports can be run directly to email.
    Check out the DESTYPE parameter.
    To send emails you can use a call to Java Mail using the Java importer. There is a sample form for this in the Oracle9i Forms demos. This should work in 6i also.
    You might also be able to use email from the database with the UTL_SMTP package:
    http://otn.oracle.com/sample_code/tech/pl_sql/htdocs/maildemo8i_sql.txt

  • Eudora Email from Forms

    We are trying to send email from Forms (background not interactively). We use Eudora as a standard mail application. I am trying to use OLE Automation to send mails as I have to attach Word documents to the mail. There are sample code in Metalink for OLE automation of Outlook but not for Eudora. I'm not even sure if Eudora is an OLE server application. I would appreciate any kind of help and suggestions here.
    Thx
    --Shyam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jilla:
    I want to send email from forms 45 .
    how can I do it.
    appreciate any help on this<HR></BLOCKQUOTE>
    To send the mail from within a program unit/trigger, you will have to find out the mail batch command for the mail program that you are using eg. Microsoft Mail. If you are not sure, contact whoever created the mail program. Next, use TEXT_IO (built-in package) or some other method to write to the 'control' file that will be the email file you will send. Once you have done this you will need to invoke the HOST command, passing the mail batch command as a parameter to it.
    It is possible to write to an error file to see why the email was not sent, if this so happens. Again this file (any name you like to give it) will be a parameter to the mail batch command.
    To test if the mail was sent, write code like the following:
    procedure send_mail is
    l_file text_io.file_type;
    l_buffer varchar2(2000);
    l_mail_command varchar2(1000);
    begin
    /* Send mail */
    host(l_mail_command);
    /* Check if mail was sent */
    l_file := text_io.fopen('c:\temp\mailerr.err','r');
    text_io.get_line(l_file,l_buffer);
    /* If there is data in this file display message to user, using an alert for example */
    exception
    when no_data_found
    then
    text_io.fclose(l_file);
    end;
    One other point. When you are creating your 'control' file, make sure you precede the email address of the recipient with 'SMTP:'.
    I hope this helps.

  • How can i send emails from forms

    I need to be able to send emails from forms 6.(assuming the pc is running Outlook) What is the best way of doing this? Would OLE or DDE control of Outlook be the easiest method?
    If anyone has done this please let me know.

    See:
    iOS: Unable to send or receive email
    I would Google for:
    setup verizon email on phone
    for the settings to use.

  • Sending email from forms using 'from'

    I'm trying to send an email from forms. It goes well, but I like to use the 'from' field from Outlook. How can I use it in OLE? I have searched everywhere, but can't find it.
    It seems to me it is something like the way you do with BCC and CC options, but I haven't found a way to do the same thing with the From field. Can anyone help?
    Thanks,
    Pauline Kooy

    Fabrizio,
    Are you just sending the Line Feed character 'CHR(10)"? I typically send the Carrage Return character 'CHR(13)' as well. I'll create a variable called CRLF and assign the Carrage Return and Line Feed characters to this variable. Then reference the CRLF variable when I want to embed a new line.
    For example:
    DECLARE
       crlf         VARCHAR2(2) := chr(13)||chr(10);
       v_msg_body   VARCHAR2(2000);
    BEGIN
       v_msg_body := 'lots of text here'||crlf;
    END;Hope this helps.
    Craig...

  • Email from forms 45

    I want to send email from forms 45 .
    how can I do it.
    appreciate any help on this

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jilla:
    I want to send email from forms 45 .
    how can I do it.
    appreciate any help on this<HR></BLOCKQUOTE>
    To send the mail from within a program unit/trigger, you will have to find out the mail batch command for the mail program that you are using eg. Microsoft Mail. If you are not sure, contact whoever created the mail program. Next, use TEXT_IO (built-in package) or some other method to write to the 'control' file that will be the email file you will send. Once you have done this you will need to invoke the HOST command, passing the mail batch command as a parameter to it.
    It is possible to write to an error file to see why the email was not sent, if this so happens. Again this file (any name you like to give it) will be a parameter to the mail batch command.
    To test if the mail was sent, write code like the following:
    procedure send_mail is
    l_file text_io.file_type;
    l_buffer varchar2(2000);
    l_mail_command varchar2(1000);
    begin
    /* Send mail */
    host(l_mail_command);
    /* Check if mail was sent */
    l_file := text_io.fopen('c:\temp\mailerr.err','r');
    text_io.get_line(l_file,l_buffer);
    /* If there is data in this file display message to user, using an alert for example */
    exception
    when no_data_found
    then
    text_io.fclose(l_file);
    end;
    One other point. When you are creating your 'control' file, make sure you precede the email address of the recipient with 'SMTP:'.
    I hope this helps.

  • Help: how to send emails from FORMS?

    Are there simple steps to send emails from FORMS?
    Thank you in advance.
    Jimmy

    I'm sure there are many ways to send emails from Forms. Personally I never had to do this, but I can imagine following ways.
    a) use UTL_SMTP-Package to send the email via your database
    b) use a Java-Call
    Peter

  • Sending an email from forms

    hi all,
    i need your help.i.e how to send an email from forms .we actually want that facility in our project.we are trying for that but not yet geting .please help me giving information about email in forms.
    thank you in advance

    If you are using Forms on the web, one of the most easiest way to do it is to use the Java mailing support from sun. You can load it into the rdbms 8i or later and use it. There is a step by stepp detailed description on
    www.oracle.com > publications > Oracle Magazine > Ask Tom. If you just type java mail it will be between the first ten I suppose, it's a popular topic.
    HTH,
    Tamas

  • My Form generate no pdf attachment in mail

    Hello all.
    I as newbe have designed an form in livecycle 8.
    My problem is that as i submit by mail i get no warning wich emailclient has te be used.
    But my hotmail wil start up and the form will amke a email with everting in it exept te pdf attachement.
    I did try everting what i could find here on the forum but noting works.
    Olso with a other form in PDF what i not designed, works evertyting well.
    Please help.
    Marcel

    Hello all.
    I as newbe have designed an form in livecycle 8.
    My problem is that as i submit by mail i get no warning wich emailclient has te be used.
    But my hotmail wil start up and the form will amke a email with everting in it exept te pdf attachement.
    I did try everting what i could find here on the forum but noting works.
    Olso with a other form in PDF what i not designed, works evertyting well.
    Please help.
    Marcel

  • Calling report from form. Need PDF output

    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

    Thanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
    win_api_environment.read_registry must be declared. Is there some package I need to attach?
    Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
    Thanks
    The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
    Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
    PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
    IS
    vcServerApp varchar2(40);
    vcServerTag varchar2(600);
    vcCommand varchar2(2000);
    iArgPos pls_integer;
    dummy NUMBER;
    BEGIN
    -- 1 get the Server App for .PDF files
    vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
    -- 2 get the executable
    vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
    vcServerApp||'\SHELL\OPEN\COMMAND';
    vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
    -- 3 Sort out how to specify the Filename
    iArgPos:= instr(vcCommand,'%1');
    if iArgPos = 0 then --no substitution Var on the command line
    vcCommand := vcCommand||' '||vFile;
    else
    vcCommand := substr(vcCommand,1,(iArgPos-1))||
    vFile||substr(vcCommand,(iArgPos+2));
    end if;
    -- 4 Run using Winexec (or Host if preferred).
    win_api_shell.winexec(vcCommand);
    EXCEPTION
    when no_data_found then
    abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
    END;
    Chad
    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

  • Chrome not sending email from form

    Hi Everyone,
    I have setup a form in CS5 have the input sent to me with a script.  It all works fine in IE 8, Firefox 12.0, Safari 5.1.2 for PC, but I do not get the email when using Chrome.
    I have the form page working on my website but the page itself is not linked yet, as I am testing still. 
    I am including the form page itself meetfrm2 and the script sendresults 
    If anyone has any ideas they would be appreciated.
    Thanks in advance,
    dloj
    meetfrm2 page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Meeting Change Form</title>
    <link href="styles/daone.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    /* Give the menu bar a width and set the margins to "auto"
    * so that the browser does the centering.
    ul.MenuBarHorizontal {
              width: 50.2em;
              margin: auto;
    /* Center the text within all menu item links.
    ul.MenuBarHorizontal a {
              text-align: center;
              background-color:#FC9;
    /* Set the the alignment back to left for any
    * menu item links that are in a sub menu.
    ul.MenuBarHorizontal ul a {
              text-align: left;
    -->
    a:link {
              text-decoration: none;
    a:visited {
              text-decoration: none;
    a:hover {
              text-decoration: none;
    a:active {
              text-decoration: none;
    </style>
    </head>
    <body >
    <div id="container">
      <div id="banner"><img src="images/newheadercb2.png" alt="socalda" width="1101" height="180"  /></div>
      <div id="main_image">
       <?php include("includes/menu.php"); ?>
      </div><br /><br /><br />
      <div id="centerb_col" style="font-size:14px"><h2>Online Meeting Change Form</h2>
      <p align="center">Please fill-out the form below to expedite your meeting changes.</p>
      <h2>Your Information</h2>
      <form action="scripts/sendresults.php" method="post" name="form1" id="form1">
      <table class="myForms">
      <tr><td>Your Name</td><td><input name="Your Name" type="text" id="yname_meet" size="50" /></td></tr>
      <tr><td>Your Email</td><td><input name="Your email Address" type="text" id="email_meet" size="50" /></td></tr>
      <tr><td>Your Phone Number</td><td><input name="Your Phone Number" type="text" id="phone_meet" size="15" maxlength="12" /></td></tr>
      </table>
      <p>Please check the correct radio button below to signify what type of information you are submitting. <br /> Is this a New Meeting, Changing Information about a current Meeting, <br />or information about a meeting that is closing. 
      <p>
        <label>New Meeting
          <input type="radio" name="radio" id="new_meet" value="new_meet" />
        </label>
        <label>Change Meeting Information
          <input type="radio" name="radio" id="change_meet" value="change_meet" />
        </label>
          <label>Closing Meeting
            <input type="radio" name="radio" id="closing_meet" value="closing_meet" />
          </label>
         <br />
          <h2>Meeting Information</h2>
          <table class="myForms">
          <tr><td>Meeting Name</td><td><input name="Meeting Name" type="text" id="name_meet"         size="50" /></td></tr>
          <tr><td>GSO ID</td><td><input name="GSO ID" type="text" id="gso_meet" size="10" /></td></tr>
          <tr><td>Meeting Contact</td><td><input name="Meeting Contact" type="text" id="contact_meet" size="50" /></td></tr>
          <tr><td>Meeting Contact Phone</td><td><input name="Meeting Contact Phone" type="text" id="cphone_meet" size="12" /></td></tr>
          <tr><td>Meeting Address</td><td><input name="Meeting Address" type="text" id="address_meet" size="50" /></td></tr>
          <tr><td>Meeting City</td><td><input name="Meeting City" type="text" id="city_meet" size="50" /></td></tr>
          <tr><td>Meeting Zip</td><td><input name="Meeting Zip" type="text" id="zip_meet" size="10" /></td></tr>
          <tr><td>Meeting Room</td><td><input name="Meeting Room" type="text" id="room_meet" size="50" /></td></tr>
          <tr><td>Meeting Focus</td><td><input name="Meeting Focus" type="text" id="focus_meet" size="50" /></td></tr>
            <tr><td>Meeting Directions</td><td><textarea name="Meeting Directions" cols="" rows="" id="directions_meet"></textarea></td></tr>
          </table>
          <br />
          <input name="Submit" type="submit" id="submit_meet" value="Submit" />
      </form>
      <br /><br />
      </p>
      <hr />
      </div>
       </div>
    </body>
    </html>
    The Script sendresults.php:
    <?php
    //--------------------------Set these paramaters--------------------------
    // Subject of email sent to you.
    $subject = 'Results from Meeting Change Form';
    // Your email address. This is where the form information will be sent.
    $emailadd = '[email protected]';
    $emailadd2 = '[email protected]';
    // Where to redirect after form is processed.
    $url = 'http://www.socalda.org/confirmation.php';
    // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
    $req = '0';
    // --------------------------Do not edit below this line--------------------------
    $text = "Results from form:\n\n";
    $space = ' ';
    $line = '
    foreach ($_POST as $key => $value)
    if ($req == '1')
    if ($value == '')
    {echo "$key is empty";die;}
    $j = strlen($key);
    if ($j >= 50)
    {echo "Name of form element $key cannot be longer than 50 characters";die;}
    $j = 50 - $j;
    for ($i = 1; $i <= $j; $i++)
    {$space .= ' ';}
    $value = str_replace('\n', "$line", $value);
    $conc = "{$key}:$space{$value}$line";
    $text .= $conc;
    $space = ' ';
    mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
    mail($emailadd2, $subject, $text, 'From:'.$emailadd2.'');
    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
    ?>

    You're entirely welcome.
    Good luck with your project.

  • JSP and dynamic email from form on web page

    I fairly new to JSP, I trying to create a form the will automatically send an email once an insert button is clicked. But in the email there will be to dynamic fields, like SSN and Last Name. These would be passed in from to textboxes on the page. Here is the code I have so far. Thanks for any help
    Joaquin
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%
    // Set Session Variable To Value Of Form Element - JSPSessions_102
    session.setAttribute
    ("SSN",
    request.getParameter
    ("txtSSN"));
    // Send Email From Web Page - JSPMail_101
    Properties props = new Properties();
    props.put("smtp.sbcglobal.yahoo.com", "smtp.sbcglobal.yahoo.com");
    Session s = Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress("[email protected]");
    message.setFrom(from);
    InternetAddress to = new InternetAddress("[email protected]");
    message.addRecipient(Message.RecipientType.TO, to);
    message.setSubject("New Employee.");
    message.setText("This is a test ");
    Transport.send(message);
    %>
    <%@ include file="Connections/conCap2.jsp" %>
    <%
    // *** Restrict Access To Page: Grant or deny access to this page
    String MM_authorizedUsers="";
    String MM_authFailedURL="loginFailedFac.htm";
    boolean MM_grantAccess=false;
    if (session.getValue("MM_Username") != null && !session.getValue("MM_Username").equals("")) {
    if (true || (session.getValue("MM_UserAuthorization")=="") ||
    (MM_authorizedUsers.indexOf((String)session.getValue("MM_UserAuthorization")) >=0)) {
    MM_grantAccess = true;
    if (!MM_grantAccess) {
    String MM_qsChar = "?";
    if (MM_authFailedURL.indexOf("?") >= 0) MM_qsChar = "&";
    String MM_referrer = request.getRequestURI();
    if (request.getQueryString() != null) MM_referrer = MM_referrer + "?" + request.getQueryString();
    MM_authFailedURL = MM_authFailedURL + MM_qsChar + "accessdenied=" + java.net.URLEncoder.encode(MM_referrer);
    response.sendRedirect(response.encodeRedirectURL(MM_authFailedURL));
    return;
    %>
    <%
    // *** Edit Operations: declare variables
    // set the form action variable
    String MM_editAction = request.getRequestURI();
    if (request.getQueryString() != null && request.getQueryString().length() > 0) {
    MM_editAction += "?" + request.getQueryString();
    // connection information
    String MM_editDriver = null, MM_editConnection = null, MM_editUserName = null, MM_editPassword = null;
    // redirect information
    String MM_editRedirectUrl = null;
    // query string to execute
    StringBuffer MM_editQuery = null;
    // boolean to abort record edit
    boolean MM_abortEdit = false;
    // table information
    String MM_editTable = null, MM_editColumn = null, MM_recordId = null;
    // form field information
    String[] MM_fields = null, MM_columns = null;
    %>
    <%
    // *** Insert Record: set variables
    if (request.getParameter("MM_insert") != null && request.getParameter("MM_insert").toString().equals("FacSupPo")) {
    MM_editDriver = MM_conCap2_DRIVER;
    MM_editConnection = MM_conCap2_STRING;
    MM_editUserName = MM_conCap2_USERNAME;
    MM_editPassword = MM_conCap2_PASSWORD;
    MM_editTable = "facsupport";
    MM_editRedirectUrl = "insertOk.jsp";
    String MM_fieldsStr = "txtSSN|value|txtLstNm|value|DkCHDo|value|doCompDK|value|GenOffSupDo|value";
    String MM_columnsStr = "SSN|',none,''|LstName|',none,''|DeskChair|',none,''|CompDsk|',none,''|GenOffSup|',none,''";
    // create the MM_fields and MM_columns arrays
    java.util.StringTokenizer tokens = new java.util.StringTokenizer(MM_fieldsStr,"|");
    MM_fields = new String[tokens.countTokens()];
    for (int i=0; tokens.hasMoreTokens(); i++) MM_fields[i] = tokens.nextToken();
    tokens = new java.util.StringTokenizer(MM_columnsStr,"|");
    MM_columns = new String[tokens.countTokens()];
    for (int i=0; tokens.hasMoreTokens(); i++) MM_columns[i] = tokens.nextToken();
    // set the form values
    for (int i=0; i+1 < MM_fields.length; i+=2) {
    MM_fields[i+1] = ((request.getParameter(MM_fields)!=null)?(String)request.getParameter(MM_fields[i]):"");
    // append the query string to the redirect URL
    if (MM_editRedirectUrl.length() != 0 && request.getQueryString() != null) {
    MM_editRedirectUrl += ((MM_editRedirectUrl.indexOf('?') == -1)?"?":"&") + request.getQueryString();
    %>
    <%
    // *** Insert Record: construct a sql insert statement and execute it
    if (request.getParameter("MM_insert") != null) {
    // create the insert sql statement
    StringBuffer MM_tableValues = new StringBuffer(), MM_dbValues = new StringBuffer();
    for (int i=0; i+1 < MM_fields.length; i+=2) {
    String formVal = MM_fields[i+1];
    String elem;
    java.util.StringTokenizer tokens = new java.util.StringTokenizer(MM_columns[i+1],",");
    String delim = ((elem = (String)tokens.nextToken()) != null && elem.compareTo("none")!=0)?elem:"";
    String altVal = ((elem = (String)tokens.nextToken()) != null && elem.compareTo("none")!=0)?elem:"";
    String emptyVal = ((elem = (String)tokens.nextToken()) != null && elem.compareTo("none")!=0)?elem:"";
    if (formVal.length() == 0) {
    formVal = emptyVal;
    } else {
    if (altVal.length() != 0) {
    formVal = altVal;
    } else if (delim.compareTo("'") == 0) {  // escape quotes
    StringBuffer escQuotes = new StringBuffer(formVal);
    for (int j=0; j < escQuotes.length(); j++)
    if (escQuotes.charAt(j) == '\'') escQuotes.insert(j++,'\'');
    formVal = "'" + escQuotes + "'";
    } else {
    formVal = delim + formVal + delim;
    MM_tableValues.append((i!=0)?",":"").append(MM_columns[i]);
    MM_dbValues.append((i!=0)?",":"").append(formVal);
    MM_editQuery = new StringBuffer("insert into " + MM_editTable);
    MM_editQuery.append(" (").append(MM_tableValues.toString()).append(") values (");
    MM_editQuery.append(MM_dbValues.toString()).append(")");
    if (!MM_abortEdit) {
    // finish the sql and execute it
    Driver MM_driver = (Driver)Class.forName(MM_editDriver).newInstance();
    Connection MM_connection = DriverManager.getConnection(MM_editConnection,MM_editUserName,MM_editPassword);
    PreparedStatement MM_editStatement = MM_connection.prepareStatement(MM_editQuery.toString());
    MM_editStatement.executeUpdate();
    MM_connection.close();
    // redirect with URL parameters
    if (MM_editRedirectUrl.length() != 0) {
    response.sendRedirect(response.encodeRedirectURL(MM_editRedirectUrl));
    return;
    %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <form action="<%=MM_editAction%>" method="POST" name="FacSupPo" id="FacSupPo">
    <table width="575" border="1">
    <tr>
    <td><div align="center">
    <h2>Facilities Support Form Submition</h2>
    <p><strong>Please Check all of the Fields</strong></p>
    </div></td>
    </tr>
    </table>
    <p>  </p>
    <p>Please Enter Employees SSN </p>
    <p>
    <input name="txtSSN" type="text" id="txtSSN" value="<%= ((request.getParameter("txtSSN")!=null)?request.getParameter("txtSSN"):"") %>"readonly="true">
    </p>
    <p>Enter Last Name</p>
    <p>
    <input name="txtLstNm" type="text" id="txtLstNm" value="<%= ((request.getParameter("txtLstNm")!=null)?request.getParameter("txtLstNm"):"") %>"readonly="true">
    </p>
    <table width="575" border="1" cellspacing="0" bordercolor="#000000">
    <!--DWLayoutTable-->
    <tr bgcolor="#FF0000">
    <td height="23" colspan="3"> </td>
    </tr>
    <tr>
    <td width="179" height="102" valign="top">
    <p>
    <input name="DkCHDo" type="text" id="DkCHDo" value="<%= ((request.getParameter("DkCHDo")!=null)?request.getParameter("DkCHDo"):"") %>"size="9" readonly="true">
    </p>
    <p>Desk & Desk Chair</p>
    </td>
    <td width="191"><p>
    <input name="doCompDK" type="text" id="doCompDK" value="<%= ((request.getParameter("doCompDK")!=null)?request.getParameter("doCompDK"):"") %>"size="9" readonly="true">
    </p>
    <p>Computer Desk</p></td>
    <td width="191"><p>
    <input name="GenOffSupDo" type="text" id="GenOffSupDo" value="<%= ((request.getParameter("GenOffSupDo")!=null)?request.getParameter("GenOffSupDo"):"") %>"size="9" readonly="true">
    </p> <p>General Office Supplies</p>
    </td>
    </tr>
    <tr>
    <td height="31" colspan="3" valign="top">
    <div align="center">
    <p>
    <input type="submit" value=" Insert " name="Submit">
    </p>
    <p>Back </p>
    </div>
    </td>
    </tr>
    </table>
    <p> </p>
    <input type="hidden" name="MM_insert" value="FacSupPo">
    </form>
    </body>
    </html>

    This how I send out e-mail(s)
    'emailBean
    import java.io.*;
    import java.net.Socket;
    import java.net.SocketException;
    public class EMailBean {
         private Socket socket;
         private OutputStreamWriter outputStreamWriter;
         private BufferedReader bufferedReader;
         public void start( String subject, String message, String from, String to ) {
              try {
                   System.out.println( "Connection to smtp.host.com..." );
                   this.socket = new Socket( "smtp.host.com", 25 );
                   this.outputStreamWriter = new OutputStreamWriter( this.socket.getOutputStream() );
                   this.bufferedReader = new BufferedReader( new InputStreamReader( this.socket.getInputStream() ) );
                   System.out.println( "Connected!" );
                   System.out.println( "From server: " + bufferedReader.readLine() );
                   send( "helo smtp.host.com" );
                   send( "MAIL FROM:<" + from + ">" );
                   send( "RCPT TO:<" + to + ">" );
                   send( "DATA" );
                   send("Subject:"+subject+"\r\n\r\n"+message + "\r\n.\r\n" );
                   this.outputStreamWriter.close();
                   this.bufferedReader.close();
                   this.socket.close();
              catch( Exception e ) {
                   System.err.println( "Error: " + e.getMessage() );
                   e.printStackTrace();
         private void send( String sendMe ) throws Exception {
              System.out.println( "To server: " + sendMe );
              this.outputStreamWriter.write( sendMe + "\r\n" );
              this.outputStreamWriter.flush();
              System.out.println( "From server: " + this.bufferedReader.readLine() );
    }And the .jsp looks like:
    <jsp:useBean id="mailBean" scope="request" class="EMailBean" />
    <%
    try {
    String date = activateBean.doQuery();
    String from = "[email protected]";
    String to = "[email protected]";
    String subject = "Myserverspy - Activation";
    String emsg = "Dear " + to + ",";
    emsg += "\nsome text here, maybe recive some variables.";
    mailBean.start(subject, emsg, from, to);
    %>
    E-mail has been sent
    <%
    catch(Exception exp){
         System.out.println("Exception: "+exp);
    %>Just insert the parameters into the emsg string.
    Andreas

  • Sending external email from forms

    Hello.
    I want to send an email using a form and a report. The report is the attachment of the email. I run the report from form using this command
    v_rep := RUN_REPORT_OBJECT(repid);
    If i send the mail to an internal address, works properly. If i want to send the email to an external address i have this error:
    FRM-41214
    Error when running report ORA - 0000: normal, successful completion
    I made a check with telnet on my computer and i managed to send an mail to an external address.
    Anyone has any idea?
    Thanks.

    I looked at the logs on the SMTP server, the extern mail doesn't even reach the SMTP server queue.
    I enabled the trace for the report server and I get this error:
    [2008/6/6 0:52:18:703] Exception 50152 (): Error while sending mail - Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [email protected]
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.utility.Utility.newRWException(Utility.java:756)
    at oracle.reports.server.MailService.send(MailService.java:492)
    at oracle.reports.server.DesMail.sendFile(DesMail.java:186)
    at oracle.reports.server.Destination.send(Destination.java:489)
    at oracle.reports.server.JobObject.distribute(JobObject.java:1582)
    at oracle.reports.server.JobManager.updateJobStatus(JobManager.java:2231)
    at oracle.reports.server.EngineCommImpl.updateEngineJobStatus(EngineCommImpl.java:134)
    at oracle.reports.server._EngineCommImplBase._invoke(_EngineCommImplBase.java:94)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    Thanks

  • Sending an email of the layout in PDF attachement

    Hello All,
    I have written a program to send the layout in PDF format to send in a mail to the customer.
    The email is going fne with the PDF attachement in the development box, but it is not working in Quality box.
    In the Quality box the email is going but the attachement is not opening.
    I have used CONVERT_OTF function module for converting OTF format to PDF format. As per my analysis it is returning the PDF format properly in Developement box but not the same in Quality. In Quality the the data returning in PDF format is not in proper manner. It is giving some junk data with symbols like traingle, rectange..etc..
    I am using FM SO_OBJECT_SEND for sending an email.
    Can you please suggest me what may be problem?
    Valuable answers will be rewarded.
    Thanks & Regards,
    Satish.

    Hi,
    you need to save the File in PDF format not in the text format.
    check whether the file is saved in pdf format or not.
    Regards,
    Raj.

Maybe you are looking for

  • Best Drum program for logic???

    HI need help..which is the better drum program.for a non drummer..Idrum..ezdrummer..or bfd?...what i intend on using it for is for making my own beats..i need to know if these r loop sampled software or can i make my own beats...thank u..any and all

  • FF log issue.

    Hi Experts, Our FF log job /VIRSA/ZVFATBAK runs hourly, without varient and with same timezone of A/P server batch user ID as per SAP recommendation. It generets FF logs perfectly. Inbetween due to maintenance of our batch Job scheduler software it w

  • Installing Adobe LCCS on a dedicated server

    Hi, Recently, I was trying out Adobe LCCS for screen sharing and file publishing features, and indeed found it as great collaboration service for all the flex application build around the world. We have a application built on Flex and .net for virtua

  • PSE 10 and ACR plug-in

    Downloade and installed ACR v.6.6 for my Canon 70D and PSE 10.  PSE 10 will not allow download of raw files.  Pleae help!

  • How to transport deletions of InfoPackages

    Hi, After migrating the datasources to 7.0, I am deleting the infopackages under the datasources. Some of them are prompting for a transport request, but some do not. What is the procedure for transporting those deleted infopacks that did not prompt