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

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.

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

  • Sending email from form

    I cannot get email to send from a form under SL Server, the same form will send find from my SL test environment on my laptop and will send fine from Tiger server, but attempts on SL server return the mail.log error
    postfix/sendmail[xxxx]: fatal: unable to use my own hostname
    The form suggests it has sent the email but obviously nothing is really sent.
    Has anyone got any ideas?

    What's the computer's hostname? You can check the mail service's hostname setting in Server Admin -> Mail service in sidebar -> Settings in the toolbar -> General tab -> "Host name:" field. Also, check the OS hostname with the Terminal command "hostname". Finally, take a look at the hostname according to DNS in Server Admin -> server name in sidebar -> Settings in the toolbar -> Network tab -> "DNS Name" column of the Network Interfaces list. If one of them is blank or otherwise invalid, it might explain this error.

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

  • Sending email from forms

    Hi All !
    I have a form with some text fields and command button.. On clicking the button, i need to send the form datas through email ..
    I tried with the coding
    Trigger: when button pressed
    declare
      msg_from    varchar2(30) := 'oracle';
      msg_to      varchar2(30):= '[email protected]' ;
      msg_subject varchar2(30) := 'E-Mail message from RAJIV' ;
      msg_text    varchar2(30) := ''; 
      c  utl_tcp.connection;
      rc integer;
    BEGIN
      c := utl_tcp.open_connection('10.10.3.16', 25);       -- open the SMTP port 25 on local machine
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      rc := utl_tcp.write_line(c, 'HELO localhost');
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      rc := utl_tcp.write_line(c, 'MAIL FROM: '||msg_from);
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      rc := utl_tcp.write_line(c, 'RCPT TO: '||msg_to);
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      rc := utl_tcp.write_line(c, 'DATA');                 -- Start message body
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      rc := utl_tcp.write_line(c, 'Subject: '||msg_subject);
      rc := utl_tcp.write_line(c, '');
      rc := utl_tcp.write_line(c, msg_text);
      rc := utl_tcp.write_line(c, '.');                    -- End of message body
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      rc := utl_tcp.write_line(c, 'QUIT');
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      utl_tcp.close_connection(c);     This gives me the compilation error
    RPC defaults cannot include package statepls help to overcome this ..
    Thanks and Regards
    user 10685325

    About your error:
    Oracle Error :: PLS-00424
    RPC defaults cannot include Package State
    Cause
    An attempt was made to call a remote subprogram whose defaulted parameters depend on package state, which is not allowed. When calling remote subprograms, the actual parameters must be passed explicitly if the corresponding formal parameters depend on package state.
    Action
    Call the remote subprogram by passing each actual parameter explicitly.
    -> I would create a mail procedure on the database and call that procedure from the form.
    Edited by: poelger on Feb 17, 2009 9:16 AM

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

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

  • Send Email from approval task form

    In my reusable workflow, I have added an approval action. Everything works perfectly. What I want is - When approver comes to approval form, he should be able to send notification email to the initiator (From that form) that he has started working on that document.
    What I have tried - I have added a button clicking on which will submit the form to initiator. 
    But it fails. possible reason - when I create a data connection in workflow's infopath form to submit form as email, I am getting following warning
    "Domain trust form templates cannot be sent as email attachments. to fix this problem, modify the form option to change the security level of form template to restricted".
    I also tried to update status field and wait for it to changes in workflow and send an email from sp designer workflow. it didn't work.
    Please help or suggest any other possible way to achieve this functionality (Send Email from approval task form to initiator).

    Hi mry,
    I could reproduce on my SharePoint 2013 on-premise based on your another
    post.
    Based on the the following article, SharePoint workflow cannot use the InfoPath form in restricted mode which doesn't allow the data connection, but as your image warning message shows sending InfoPath form as mail attachments will need restricted level.
    http://msdn.microsoft.com/en-us/library/office/ee526352.aspx
    You can consider to send a mail to initiator in "Whe a Task Completes" step when you click button approved/rejected, and construct the current task form link format as follow,
    http://sp/_layouts/15/WrkTaskIP.aspx?List=WorkflowTasksListGUID&ID=[%Current Task:ID%]
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to sending email from Oracle 6i(Forms)

    How can I send email from Oracle Forms(6i).
    I need to send email to a distribution list(multiple email addresses).

    send email of multiple email address
    [email protected],[email protected],[email protected]
    create or replace function mailout
    (sender in varchar2,
    recipient in varchar2,
    ccrecipient in varchar2,
    subject in varchar2,
    message in varchar2) return number
    is
    crlf varchar2(2) := chr(13)||chr(10);
    connection utl_smtp.connection;
    mailhost varchar2(50) := 'Add email server Ip Address here';
    header varchar2(4000);
    v_num number :=1;
    str number:=0;
    email varchar2(50);
    begin
    connection := utl_smtp.open_connection(mailhost,25);
    header := 'Date: '||to_char(sysdate,'dd mon yy hh24:mi:ss')||crlf||
    'From: '||sender||' '||crlf||
    'Subject: '||subject||crlf||
    'To: '||recipient||crlf||
    'Cc: '||ccrecipient||crlf||message;
    utl_smtp.helo(connection,mailhost);
    utl_smtp.mail(connection,sender);
    utl_smtp.rcpt(connection,recipient);
    while (instr(ccrecipient,',',1,v_num)>0) loop
    email:=substr(ccrecipient,str+1,instr(ccrecipient,',',1,v_num)-str-1);
    dbms_output.put_line(email);
    utl_smtp.rcpt(connection,email);
    str:=instr(ccrecipient,',',1,v_num);
    v_num:=v_num+1;
    end loop;
    utl_smtp.open_data(connection);
    -- utl_smtp.write_data(connection,header);
    utl_smtp.write_data(connection,'MIME-Version:1.0'||crlf||'Content-type:text/html'||crlf||header);
    utl_smtp.close_data(connection);
    utl_smtp.quit(connection);
    return 0;
    exception
    when utl_smtp.invalid_operation then
    dbms_output.put_line('Invalid Operation in SMTP transaction');
    return 1;
    when utl_smtp.transient_error then
    dbms_output.put_line('Temporary problem with sending email ');
    return 2;
    when utl_smtp.permanent_error then
    dbms_output.put_line('Permanent problem with sending email ');
    return 3;
    end;

  • How to sending email from Oracle Forms

    How to sending email from Oracle 6i(Forms)
    I need to send email to a distribution list(multiple email addresses).

    send email of multiple email address
    [email protected],[email protected],[email protected]
    create or replace function mailout
    (sender in varchar2,
    recipient in varchar2,
    ccrecipient in varchar2,
    subject in varchar2,
    message in varchar2) return number
    is
    crlf varchar2(2) := chr(13)||chr(10);
    connection utl_smtp.connection;
    mailhost varchar2(50) := 'Add email server Ip Address here';
    header varchar2(4000);
    v_num number :=1;
    str number:=0;
    email varchar2(50);
    begin
    connection := utl_smtp.open_connection(mailhost,25);
    header := 'Date: '||to_char(sysdate,'dd mon yy hh24:mi:ss')||crlf||
    'From: '||sender||' '||crlf||
    'Subject: '||subject||crlf||
    'To: '||recipient||crlf||
    'Cc: '||ccrecipient||crlf||message;
    utl_smtp.helo(connection,mailhost);
    utl_smtp.mail(connection,sender);
    utl_smtp.rcpt(connection,recipient);
    while (instr(ccrecipient,',',1,v_num)>0) loop
    email:=substr(ccrecipient,str+1,instr(ccrecipient,',',1,v_num)-str-1);
    dbms_output.put_line(email);
    utl_smtp.rcpt(connection,email);
    str:=instr(ccrecipient,',',1,v_num);
    v_num:=v_num+1;
    end loop;
    utl_smtp.open_data(connection);
    -- utl_smtp.write_data(connection,header);
    utl_smtp.write_data(connection,'MIME-Version:1.0'||crlf||'Content-type:text/html'||crlf||header);
    utl_smtp.close_data(connection);
    utl_smtp.quit(connection);
    return 0;
    exception
    when utl_smtp.invalid_operation then
    dbms_output.put_line('Invalid Operation in SMTP transaction');
    return 1;
    when utl_smtp.transient_error then
    dbms_output.put_line('Temporary problem with sending email ');
    return 2;
    when utl_smtp.permanent_error then
    dbms_output.put_line('Permanent problem with sending email ');
    return 3;
    end;

  • 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

  • Still cannot send email from icloud .me address

    hi. does anybody knows why i cannot send email from my ipad (ios 5.0.1) icloud me.com account? i can recieve but i cannot send. on my mac (lion) it works perfectly. the message i get is "the sender address .mac.com was rejected by the server". mac.com ?? but i use my me.com address. any ideas pls?
    thank you

    I have been having the same problems for the last two days now.  It won't let me send, but it will let me save it to my drafts folder.  I even tried opening the e-mail form my iPhone 5 and it won't let me send it there either.  The last two times i ended up copying the contents from my failed e-mail on my phone and pasting that into a new e-mail and that works.  I normally use the icloud web app to reply to e-mails when i'm at work (using win 7) and it is very frustrating. 

  • Can't send email from Outlook with parentheses in address

    I can't send email from Outlook 2007 through my WRT400N when Outlook displays the address with parentheses as in this example: Firstname Lastname ([email protected])
    I can send if the address is in this form: Firstname Lastname <[email protected]>
    I have tested with the ISP and nothing gets through the router when the problem occurs. When I bypass the router, both forms of address will send correctly. This problem is perfectly reproducible. My router is brand new, but the problem did not show up for about a week after installation. OS is Win7. Any ideas? Thanks.
    -JimW
    Solved!
    Go to Solution.

    Try to forward the port 443 to 447 on the router.Check this link.

Maybe you are looking for