Sending email from web forms (Forms 6i)

Does anyone know how to send email using Outlook from web forms? I can get it working with client server but not with web forms.
Thanks,
Darcea Klein
null

Many ways to send a email:
1. use Web.Show_Document(v_url, '_blank') to call a .asp or .php or .cgi page which can send email, attaching some message.
2. use utl_smtp built_in in Oracle 8i, you can save this procedure in database, then call this procedure in your web form.
PROCEDURE SEND_EMAIL (sender IN VARCHAR2,
recipient IN VARCHAR2,
message IN VARCHAR2)
IS
mailhost VARCHAR2(30) := 'smtp.aaaaa.com';
mail_conn utl_smtp.connection;
BEGIN
mail_conn := utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, sender);
utl_smtp.rcpt(mail_conn, recipient);
utl_smtp.data(mail_conn, message);
utl_smtp.quit(mail_conn);
-- Handle the error
END;
GOOD LUCK

Similar Messages

  • 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 Email from Web Dynpro

    Hi,
    I'am new in that business and have a simple question:
    What is the easiest way to send emails from a web dynpro application to a specific (e.g. value of an input field in my application).
    The only way I found was the "email - web service tutorial in the pdk).
    Can anyone give me some code to solve this problem.
    Thanx
    christoph

    Hi,
    Sorry ! One sec! I will edit it and do it again !
              InitialContext ctx = new InitialContext();
              Properties props = new Properties();
              props.put("mail.smtp.host","Message server");
              Session sess = Session.getInstance(props);
              //Create new mime message object
              Message message = new MimeMessage(sess);
              message.setFrom(new InternetAddress(wdContext.currentContextElement().getFrom()));
              String recepient = wdContext.currentContextElement().getTo();
              message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));
              String subject = wdContext.currentContextElement().getSubject();
              message.setSubject(subject);
              String content = wdContext.currentContextElement().getMessage();
              message.setContent(content,"text/plain");
              //Send the message
              Transport.send(message);
    This should work.. (Some editing error while i was pasting it !)
    Message was edited by: Bharathwaj R

  • Sending email from Oracle Forms with attachments

    Hi,
    Is there any package or option available in Oracle forms to send email with attachments?
    Your reply will be highly appreciated.
    Regds,
    noneda

    There are a couple of ways to send email (with attachements) from Oracle Forms. Check out these links to some examples.
    using OLE2 or CLIENT_OLE2 to access a mail-client via Mail-Api ( Get and set Outlook properties )
    using MAILTO in conjunction with HOST or CLIENT_HOST to "start" a mail-client ( Re: Open Microsoft Outlook new massage with TO containing the email address )
    using UTL_SMTP for database-side-mailing ( Re: Send mail with attachment )
    Hope this helps,
    Craig...

  • Sending email from a form (runtime)

    Hi otn,
    I wanna send an email with a text file attached from a form at run time mode.
    can u help ?
    Thank u

    HERE IS CODE :
    PROCEDURE kr_sendmail(
    p_mail_subject IN VARCHAR2
    ,p_mail_to                IN VARCHAR2
    ,p_mail_cc                IN VARCHAR2 DEFAULT NULL
    ,p_mail_bcc           IN VARCHAR2 DEFAULT NULL
    ,p_mail_body           IN VARCHAR2 DEFAULT NULL
    ,p_attachment_source      IN VARCHAR2 DEFAULT NULL
    ,p_attachment_name           IN VARCHAR2 DEFAULT NULL
    ,p_display                IN BOOLEAN DEFAULT TRUE
    ,p_cisoe_id IN NUMBER DEFAULT 0
    ,pio_entry_id IN OUT VARCHAR2)
    IS
    c_cisoe_id               CONSTANT VARCHAR2
    (30) := 'CISOEMAILID';
    objArgL                         
         OLE2.OBJ_TYPE;
    objAppOutlook           OLE2.OBJ_TYPE;
    objNameSpace                OLE2.OBJ_TYPE;
    objInBox                          OLE2.OBJ_TYPE;
    --objFolders                     OLE2.OBJ_TYPE;
    --objFolder                     OLE2.OBJ_TYPE;
    objMailItem                    OLE2.OBJ_TYPE;
    objAttachments          OLE2.OBJ_TYPE;
    objAttachment               OLE2.OBJ_TYPE;
    objUserProperties     OLE2.OBJ_TYPE;
    objUserProperty          OLE2.OBJ_TYPE;
    v_id_new                     VARCHAR2(2000);
    v_id_folder           VARCHAR2(2000);
    v_cisoe_id               NUMBER;
    v_test BOOLEAN;
    BEGIN
         -- Create Outlook Application Object
    objAppOutlook := ole2.create_obj('Outlook.Application');
    -- Get Namespace
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,'MAPI');
    objNameSpace := ole2.invoke_obj
    (objAppOutlook,'GetNamespace',objArgL);
    ole2.destroy_arglist(objArgL);
    -- Get InBox-Folder (Posteingang)
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,6);
    objInBox := ole2.invoke_obj
    (objNameSpace,'GetDefaultFolder',objArgL);
    ole2.destroy_arglist(objArgL);
    -- Create MailItem with properties
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,0);
    objMailItem := ole2.invoke_obj
    (objAppOutlook,'CreateItem',objArgL);
    ole2.destroy_arglist(objArgL);
    ole2.set_property(objMailItem,'To', p_mail_to);
    ole2.set_property(objMailItem,'CC', p_mail_cc);
    ole2.set_property(objMailItem,'BCC',p_mail_bcc);
    ole2.set_property(objMailItem,'Subject',p_mail_subject);
    ole2.set_property(objMailItem,'Body',p_mail_body);
    --Test p_attachment_source
    IF p_attachment_source IS NOT NULL THEN -- Create Attachment
    --Test exist File
    v_test := kr$fexists(p_attachment_source);
    IF v_test = FALSE THEN --NOT TEXT_IO.IS_OPEN(v_test) THEN
    --qms$errors.show_message(p_mesg=>'CKR-00022',p_param1 =>
    1);
    MESSAGE('Datei '||p_attachment_source||' ist nicht
    existieren !');
    RETURN;
    ELSE
    -- Create Attachment
    objAttachments := ole2.get_obj_property
    (objMailItem,'Attachments');
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,p_attachment_source);
    ole2.add_arg(objArgL,1);                     --
    property type
    ole2.add_arg(objArgL,1);                     --
    property position
    ole2.add_arg(objArgL,p_attachment_name);     -- property name
    objAttachment := ole2.invoke_obj
    (objAttachments,'Add',objArgL);
    ole2.destroy_arglist(objArgL);
    END IF;
    END IF;
    -- Create User Property
    objUserProperties := ole2.get_obj_property
    (objMailItem,'UserProperties');
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,c_cisoe_id); -- property name
    ole2.add_arg(objArgL,3);                     
         -- property type (number)
    objUserProperty := ole2.invoke_obj
    (objUserProperties,'Add',objArgL);
    ole2.destroy_arglist(objArgL);
    -- Set User Property
    ole2.set_property(objUserProperty,'Value',p_cisoe_id);
    -- Save
    ole2.invoke(objMailItem,'Save');
    -- Get Entry ID
    v_id_new := ole2.get_char_property(objMailItem,'EntryID');
    pio_entry_id := v_id_new;
    -- Get User Property
    v_cisoe_id := ole2.get_num_property(objUserProperty,'Value');
    -- Create new Folder in InBox
    -- objFolders := ole2.invoke_obj(objInBox,'Folders');
    -- objArgL := ole2.create_arglist;
    -- ole2.add_arg(objArgL,'MyFolder');
    -- objFolder := ole2.invoke_obj(objFolders,'Add',objArgL);
    -- ole2.destroy_arglist(objArgL);
    -- Display Folder
    -- ole2.invoke(objFolder,'Display');
    -- Move Mail to new Folder
    objArgL := ole2.create_arglist;
    ole2.add_arg_obj(objArgL,objInbox); --objFolder);
    ole2.invoke(objMailItem,'Move',objArgL);
    ole2.destroy_arglist(objArgL);
    v_id_folder := ole2.get_char_property(objMailItem,'EntryID');
    -- Display or send
    IF p_display
    THEN
    ole2.invoke(objMailItem,'Display');
    ELSE
    ole2.invoke(objMailItem,'Send');
    END IF;
    -- Release objects
    ole2.release_obj(objUserProperty);
    ole2.release_obj(objUserProperties);
    --Test p_attachment_source
    IF p_attachment_source IS NOT NULL THEN -- Create Attachment
    ole2.release_obj(objAttachment);
    ole2.release_obj(objAttachments);
    END IF;
    ole2.release_obj(objMailItem);
    --ole2.release_obj(objFolder);
    --ole2.release_obj(objFolders);
    ole2.release_obj(objInBox);
    ole2.release_obj(objNameSpace);
    ole2.release_obj(objAppOutlook);
    END kr_sendmail;

  • Disabling Name/Email from Web Form

    Our client, who is a doctor, had us create a patient survey form. However, he would like it to be submitted anonymously, therefore I need to take the Name and Email off of the form.  I know this is not possible within the web form options on the back end of the site.
    Any tips?

    Hello Design054atAlphagraphics,
    You would just give each input field a value so that the form does vailidate. Here is an example of how I would go about this:
    http://jsfiddle.net/chaddidthis/FZnvW/1/
    I removed the inputs from the table since they no longer have anything to do with the information I'm trying to collect and you don't need the labels any longer.  And placing them in a div that is hidden so the user doesn't have to worry about them.
    I hope this helps you.
    Chad Smith | www.bcgurus.com/Business-Catalyst-Templates for only $7

  • Sending email from oracle forms

    Hi, I want to send an email within oracle forms 10g.
    If anyone could help me.
    Thanks.

    Hi,
    I didn't understand.....
    Isn't it convienient to you , to create a button , for example , and call the UTL_MAIL.SEND(......<parameters given in text items of your form>......) buolt in procedure....????? or the equivalent procedure in UTL_SMTP ....????
    Regards,
    Simon

  • SAP screen frozen once in a while after sending email from adobe form

    Hi Experts,
    I am facing weird problems.
    I am using ABAP program to generate a adobe form.
    While testing, once in a while, after we clicked on the email icon on the adobe form, and then email sent out, we got frozen SAP screen. Sometimes, we need to hit keyboard: "ESC"/ "F3" to go back to SAP selection screen.
    Did you have this problem before? Please kindly advise.
    I am using Adobe Reader X 10, SAP GUI 710 patch 18.
    Thanks.
    Tee

    Hi Experts,
    I am facing weird problems.
    I am using ABAP program to generate a adobe form.
    While testing, once in a while, after we clicked on the email icon on the adobe form, and then email sent out, we got frozen SAP screen. Sometimes, we need to hit keyboard: "ESC"/ "F3" to go back to SAP selection screen.
    Did you have this problem before? Please kindly advise.
    I am using Adobe Reader X 10, SAP GUI 710 patch 18.
    Thanks.
    Tee

  • How to use Yahoo or Gmail instead of Mail to send emails from Web Browser?

    When I'm on the web & want to send a web page or link as an email, how do I change the default so I can use either my Yahoo or Gmail email account?
    I don't want Apple Mail to open, but I want it sent from my internet email account.

    A rather primitive way to use GMail via browser, is to
    get a second browser for use with the web mail, & also
    get Google Notifier, so you can select GMail to run in a
    browser of your choice via Notifier.
    For mine, I use Camino, a decently quick and current
    browser; and have chosen it as the system Default
    browser (you can do that in Safari) so Camino opens
    if/when you click on something that needs a browser.
    Notifier can run in the main Menu bar, and does OK.
    As my systems all have at least four current browsers,
    and I often find my use centers around Firefox, the
    second browser used for web mail does not affect my
    use of the primary browser when doing online tasks.
    And I can hide the open web mail browser in the Dock.
    So, this is my primitive cure for using web mail via browser.
    This, due to the fact I never use any client Mail application.
    And when I leave my computer (it is left asleep) I am sure to
    use the Camino browser 'reset' command to wipe sessions.
    (If you have your computer set up to require a password to
    function on awakening from sleep, that can help keep it safe.)
    Not sure how you could handle Yahoo mail, probably with a
    login link in a browser, so you can click on it; or have the
    Yahoo login a home page in a limited-use secure browser.
    Probably there are other and better ideas; since I don't use
    an email client app and don't have email other than Gmail,
    this is a primitive way to make it work. Gmail Notifier is OK.
    Not sure how supportive it may be, but it works in 10.5.8.
    {And this allows one to choose an IP or other supplied email
    account via Mail, separate from the gmail accounts.}
    Good luck & happy computing!

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

  • 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 do I extract email from a form and send the PDF to that user?

    How do I extract email from a form and send the PDF to that user?

    here you can add email to send to, CC, Subject, and body message
    var oDoc = event.target;
                        oDoc.mailDoc({
                                                                bUI: false,
                                                                cTo: "Agency Contact Email",
                                                                cCC: "",
                                                                cSubject: "Write your title here,
                                                                cMsg: "Dear" + AgencyContact + "(" + AgencyContactEmail + ")\nThe student, " + FirstName + " " + LastName + " has applied to work at your agency. Please confirm they can work here blah blah blah.......\n\nThanks.\n\nrespectuflly,\n\nme"

  • 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

  • Emails from contact form not working

    I have a contact form on one of my website and it is not working properly. 
    Muse gives me a warning of not using another email than connected to the domain of the web.
    As I use Gmail in this particular website it is not working.
    How to solve this?
    Thanks
    Pétur

    Hi,
    I have and they told me they use SMTP authentication for their incoming emails.
    They also tried to work on Muse PHP code for me - but did not manage to configure it correctly for emails through SMTP from forms in Adobe Muse.
    The problem is that I have a customer that is not receiving any inquiries from his customers because the form on his website is not working.
    Do I have to use Businesscatalyst - is it alright there to use Gmail to send emails from forms hosted there?
    Hope you have some solution - I have to solve this
    Reg.
    Pétur

Maybe you are looking for

  • I need help i have a problem in photoshop cs4

    HI everybody how r ya ??    today when im opening my photoshop cs4 i was trying to make an anmation image  but i found a problem i did not found timeline i just found frames this iz a pic of the problem ::: so please tell me how to correct this probl

  • Firefox prints pieces of a single page on multiple pages

    Firefox prints pieces of a single page on multiple pages. For example, if a page is only one page long in IE, it will print one page. But if I print the same page in FF, it will print 5 pages, and each page would have a different section of the origi

  • Where are my games?

    I bought and downloaded two games and played them, lots of fun, no problem. Today I read that there was a newer firmware version and upgrading was recommended. So I upgraded to the latest firmware. iTunes made a backup right before the reset. After i

  • Dreamweaver cc won't start up

    Dreamweaver cc (not 2014) won't start up, it still working yesterday and i have no idea what happen to it. And btw does graphic card relate to this problem? Because i switch my monitor's vga to dvi.

  • VERIZON FIOS: I used to be a fan, not any more.

    Long time Verizon and FIOS customer and feeling cheated.  We were upgraded to 50/50 from 25/25, 9 months ago. Lately our services and speed have been really poor. I used the chat feature to solve the problem and provided the technician access to my M