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.

Similar Messages

  • 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...

  • 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

  • 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

  • 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.

  • 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.

  • LOVSon System Parameters & Email from Forms?

    I have 2 questions:
    1) Can email be sent from forms as well as reports or just reports?
    2) Can a LOV be set up from the System parameters as well as user parameters?
    If the answer to either of these questions is yes could someone tell me where to look?
    Thank you for your help!

    Hey buddy,
    I was working on a similar issue today.
    1. Set the SMT_OUT_SERVER in init.ora and shutdown the server and started
    using this init.ora
    2. Checked by logging as sys whether utl_mail package is valid
    3 From the sys account I tried sending the email
         BEGIN
         utl_mail.send('[email protected]', '[email protected]', NULL,      NULL, NULL);
         END ;
    4 If step 3 works ur set up is good and then you need to have the privilege for
    the user account where you are running this or grant it to public
    grant execure on utl_mail to public
    Rajesh Alex

  • Email from Forms

    I was hoping someone has launched email from within a form and
    can give me some information on how to accomplish this. I know
    it can be done with Reports by setting DESNAME.
    Thanks Sheila
    null

    Vas (guest) wrote:
    : Sheila (guest) wrote:
    : : I was hoping someone has launched email from within a form
    and
    : : can give me some information on how to accomplish this. I
    : know
    : : it can be done with Reports by setting DESNAME.
    : : Thanks Sheila
    : hello sheila...
    : may be this can help you...
    : use the host command to launch a email tool from forms
    : for example
    : host('c:\program files\communicator\programmes\sendto32.exe')
    : this launches the netscape mail tool....well you can launch
    : any of your mail tool.....through the host command.
    : if you have any questions....let me know....
    : well there are other ways to...like using IMAp.....this is
    : the simple one which i have told you...
    : Thank you
    : Vas
    Can use DDE also.
    : [email protected]
    null

  • Email from Forms 6i

    Does anyone know how to send an email from a form on the web?

    Andreas,
    If my understanding is correct, both UTL_MAIL and UTL_SMTP will basically create a string that will be placed
    in <to>,<cc>,etc. MS Outlook as, I believe, any other email has a limitation on the number of characters that can be placed in any of the fields. MS Outlook is limited to about 2000 characters in <bcc> (and in <cc> and <to> fields. It means if one email consist of 30 char, I can't place more than 60 emails in <bcc>. I will have to place about 500-1000 emails. What do you think about another approach: make the form create an Excel file which contains all emails and call it 'bcc emails'. Than place 'bcc emails' line into <bcc> section of the email.
    There probably is a mechanism built in Outlook email that will recognize a referral to 'bcc email' and take the corresponding emails from the excel file.
    I know, you use different default email.
    Will your email handle the situation?
    What would you do if you had to send mass emails from Oracle where number of emails is huge?
    Thanks. Lev.

  • 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

  • Emailing from Forms using OLE2....Critical problem

    Dear All,
    I > Iam sending Email thru ole2 from Forms6i. The whole business process is in LAN/WAN. The email process calls ms-outlook. But in some m/c although the report gets generated , nothing is sent to outbox.
    Do i need a MAPI profile to be installed in Outlook.Even if i installed a MAPI profile
    its giving a error messg ' Exchange server can't be found'.
    whats the issue can any one tell me ????
    2> Also if i bypass OLE2 and generate the report in pdf and email from report runtime thru the 'mail menu' it calls outlook express.But i want to fix the subject and report name in the outlook express.Its coming as default system generated.
    Can it be changed in any setting ???
    regards,

    i does not have any idea for sending mail from ole2 but i send the mails using the demo mail package.

  • Email from form using developer 6i

    Hi,
    Could anybody help me to resolve the below mentioned problem. I wanted to call "Outlook" Mailto: from a form where my email address is entered. How can I do this in forms 6i.
    PG Anil.

    I'm not sure what you mean by the "SQL Net client" not being compatible.
    We have one client using Oracle 11g and one on Oracle 9. I can still connect and test all of our Forms 6i client/server forms to BOTH databases and run tests successfully.
    As long as the new database is not using the AL32UTF8 character set, and Forms users have all Upper-case passwords, all seems to work ok.
    Edit: Following tony.g's note below: I have Patch 18 installed on Forms 6i, so it runs version 6.0.8.27.0
    Edited by: Steve Cosner on Oct 31, 2012 9:38 AM

Maybe you are looking for

  • Need to repartition HDD. No DVD drive available - what now?

    Hi. I posted this question here (http://discussions.apple.com/message.jspa?messageID=10691580#10691580), but was requested to start a new thread... An Apple Authorized Repair facility installed my new drive yesterday. They were supposed to create 2 p

  • Slowing down an imported Flash file

    Hi, Using Insert - Animation, I've imported a file with an .swf extension. My only problem is that it is playing too fast in my Captivate movie. Outside of Captivate, it plays slower. What options do I need to tweak in order to change its playing spe

  • CD's for Oracle 10g

    Hello, I used to receive CD's of products launched by Oracle for development purpose. Is there a link for ordering free CD's for Oracle 10g DB server and Application server?

  • MIGO-table entry error

    Hi While posting MIGO I am getting following error. In table 169P the entry PIL   is missing. Can anybody let me now the solution? Regards

  • Premiere Pro CS4 Überlastung beim Bearbeiten

    Beim Importieren von AVI-Files (auch bei anderen) hängt Premiere. Bei der Aktivitätsanzeige wird bei Premiere über 100 % angezeigt, teilweise 150 % (!). Der ImporterProcessServer (vermutlich der Auslöser dieser Misere) steht bei 100 % und mehr. Das S