Create a simple mail form

Hi,
I want to create a simple mail form using portal. The form must not use the HTML "mailto:", cause this requires a mail client to be installed at the customers computer. So I want to use the UTL_SMTP package. I managed to send mails with this package, but the problem is: how do I build my form with lets say 3 fields, so that i can pass the entered values to the SendMail-Funtion? I tried to create a form based on a table, then add new items and delete the table-based-items, but that doesnt work. I cant access the not table-based-items and found the reasons for that in the forums here. Then I tried to do it with a dynamic page, but I didnt succeed in calling my send-mail-function from the dynamic page. How can I do it?
Bye,
Pascal

This question is best suited to the Oracle9iAS Portal Applications forum. But, have you tried a form based on a procedure?

Similar Messages

  • Creating a simple mail form

    Hi,
    I want to create a simple mail form using portal. The form must not use the HTML "mailto:", cause this requires a mail client to be installed at the customers computer. So I want to use the UTL_SMTP package. I managed to send mails with this package, but the problem is: how do I build my form with lets say 3 fields, so that i can pass the entered values to the SendMail-Funtion? I tried to create a form based on a table, then add new items and delete the table-based-items, but that doesnt work. I cant access the not table-based-items and found the reasons for that in the forums here. Then I tried to do it with a dynamic page, but I didnt succeed in calling my send-mail-function from the dynamic page. How can I do it?
    Bye,
    Pascal
    null

    Pascal,
    You can use something like this:
    Create two tables:
    1) Table1
    (id NUMBER PRIMARY KEY, sender varchar2(100),
    recipient varchar2(100) ,message varchar2(3000) ,subject varchar2(200))
    2) Table2
    (id NUMBER , sender varchar2(100),
    recipient varchar2(100) ,message varchar2(3000) ,subject varchar2(200))
    Here Table2 & Table1 are identical. You can use only one table if you do not want to maintain the history of the mails sent.
    Base your form on "Table1".
    Now pass whatever values you want to pass you can base it through this form to the table1(I mean INSERT).
    Calling utl_smtp directly from here won't be a good idea because your form will hang unless the mail is sent.
    So create a procedure for sending mails:
    it should be something like this:
    create or replace procedure send_email (sender IN varchar2, recipient IN varchar2,
    message IN varchar2, subject IN varchar2)
    is
    mailhost varchar2(30) := 'your mail host';
    mail_conn utl_smtp.connection;
    Vhelo utl_smtp.reply;
    Vvrfy utl_smtp.reply;
    Vmail utl_smtp.reply;
    Vrcpt utl_smtp.reply;
    Vdata utl_smtp.reply;
    Vquit utl_smtp.reply;
    Vtemp number;
    VMsg varchar2(4000);
    begin
    VMsg := 'Subject:'| |subject| |chr(10)| |message;
    mail_conn := utl_smtp.open_connection(mailhost,25);
    Vhelo := utl_smtp.helo(mail_conn, mailhost);
    Vvrfy := utl_smtp.vrfy(mail_conn, recipient);
    Vmail := utl_smtp.mail(mail_conn, sender);
    Vrcpt := utl_smtp.rcpt(mail_conn, recipient);
    vdata := utl_smtp.data(mail_conn, VMsg);
    Vquit := utl_smtp.quit(mail_conn);
    -- Handle the error
    end;
    create or replace procedure call_send_email
    cursor Cur1 is
    select * from table1;
    is
    for vcur1 in cur1
    loop
    send_email(vcur1.sender, cur1.recipient, vcur1.message, vcur1.subject);
    insert into table2 values(vcur1.id,vcur1.sender, vcur.recipient,
    vcur1.message, vcur1.subject);
    delete from table1 where id = vcur1.id;
    End Loop;
    commit;
    exception
    --handle exception
    end;
    now call this procedure (call_send_mail) from dbms_job
    Hope this helps,
    Chetan.

  • I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    Go to the App Store and search on "Forms Management".
    There are a lot of candidates.

  • Creating a Simple Parameter Form in Portal

    I am trying to create a simple parameter form in Oracle Portal 10.1.2. to be able to allow users to enter a parameter on the dashboard that will be passed to discoverer worksheets. However, I can't seem to find any information as to how to do this. All I find is information stating that it can be done.
    Can anyone explain this to me or send me a link that explains this?
    Many thanks.
    Dino

    hi
    You could look at http://www.oracle.com/technology/products/discoverer/files/viewlets/1012_dashboard.html
    I don´t remember if here you create the simple parameter form. But there is a portlet called "Simple Parameter Form", you can find it at Portlet Builders. You can reach this link in your Oracle portal in the Edit link, in the add portlet link.
    then you can follow the wizard to create your parameter portlet
    After this step you should link the parameters you send through this portlet with the page and the other portlets.
    I hope this help

  • To create varaibles in Mail Forms for Order Confirmation

    Hi All,
    I am having an requirement to send an email for order confirmation with some customer dependent data and some product data to be sent along in the mail, This has to be done through action.
    I want to use mail forms for this but in this I am not able to create variables in the mail form through which i can pass th value to the variables in the mail form.
    Please suggest what to do for variable creation in mail form.........
    Is there any standard oder confirmation template available as it is available for campaign??????
    Thanks and Reagrds
    Mayank

    Hi Mayank,
    I am not sure but u can try below standard smartforms :
    CRM_SERVICE_CONF_EXT
    CRM_ORDER_SERVICE
    Regards,
    Dipesh.

  • Creating Labels in Mail forms

    Hello everyone,
    I'm currently working on a CRM Marketing implementation.
    We are using the Segment builder to create target groups and then either send emails or print mails to the Business partners in that target group.
    Is it possible to create and print labels using the Mail Forms in that scenario?
    Thanks for your help

    Hi Jacques,
    You can even try with the File Export Function. The file-export function enables you to create a file with a list of business partners and corresponding specified attribute values. You can use this file for further processing, for example, to send to a lettershop for printing prior to sending as direct mail for example.
    During campaign execution, a file is created in CSV or XML. format and attached to the corresponding campaing (according to configuration settings)
    The content of the file is defined in the same way as with the mail forms. Each line in the mail form will represent a different column in the data file.
    Step1: Define File Export Variant
    Transaction Code SPRO->CRM->Marketing->Marketing Planning and Campaign Management->Campaing Execution->Define FIle Export Variants.
    Step 2: Define Communication Medium
    Transaction Code SPRO->CRM->Marketing->Marketing Planning and Campaign Management->Campaign Execution->Define Communication Medium
    Step3: Create Mail Form
    For more information, please go through the link provided below:
    [http://help.sap.com/saphelp_crm60/helpdata/en/4a/35d4fa296a4064a53c929d79983362/frameset.htm]
    Hope this helps you
    regards
    Srikantan

  • How to create a simple input form in BPC 10.0 and the details are below

    Hi Experts,
    I would like to know how to create attached input form and what are the dimension would require to use in order to populate correct report
    Please provide your comments and the sample report has been attached.
    MGA Index
    Column
    Head Count Planning Required
    Approver authority
    Asset
    Row_Cost Center
    Business Development
    Finance
    Procurement -
      C&P
    Legal
    HSS &  Environment
    Petroleum Engg
    Drilling
    Subsurface
    Thanks in advance.
    Regards,
    SK.

    Hello,
    The new update of Muse allows you to use the Webforms widget with a non Business Catalyst host as well.
    However, Captcha is something which currently cannot be used via Muse without using Business Catalyst as host.
    This document might be of some help : http://forums.adobe.com/docs/DOC-3581
    Regards,
    Sachin

  • Maintaining mail forms

    hi
    Does anyone know how to create an e-mail form template? Inside the e-mail form are also form elements/variable, such as input field (for BP) and etc? How do I "call" variable (in this case BP)
    For example, I wish to say in the E-mail:-
    <b>Hello    <i>text field box goes here</i>   ,
    blah blah blah</b>
    - A step by step guidance OR documentation on doing this would be great....

    HI Charlene sue,
    In Tcode CRMD_EMAIL_TEMPL1, click on create icon and then select an existing mail(source mail) template and create a new one (target mail) for urself
    click continue..
    You can copy the existing one and then make changes.
    Once you are in, in the email template form editor page, you can enter watever text you want.. in addition if you want thigns like plae holders for BP no , BP name etc.  you need to drag the respective objects to the editor page from the search locator --> Form tab page. Here you would seee a list of objects / attributes taht can be used in the mail form and thus can be dragged.
    Go ahead and drag some...:)
    Julius
    Its as simple as that.

  • Creating a reader enabled form for windows environment

    Am stumped on the above and would appreciate any advice.
    I've created a simple interactive form in Indesign CS6 and exported to Acrobat. Using Acrobat Pro X I've saved it as a Reader Extended pdf enabling additional features.
    The file works perfectly when users fill in the form using Acrobat Reader on a Mac, allowing them to save the file with the content they've added to the form fileds. Users who are working on a Windows/pc computer however, are unable to save the form with the text/data they've added, only print the form with new content. After printing the form clears the data and they are left with blank form fields.
    Does anyone know if this is a Mac/PC problem? Or is there another step I need to do to allow pcs to save this file?
    Thanks!

    Hi George,
    Thanks for your reply. No other errors or messages came up when opening the file.
    The file was set to open automatically in full screen mode, however when trouble shooting the above problem I decided to turn this option off...and now amazingly the file is fine on Windows systems. Clients are now able to add content in to the form fields, save and print the file with no problems. Weird!

  • Problem activating simple adobe form from SFP

    Hi
    I created a simple adobe form from transaction SFP....2 steps ...created interface then form.
    the problem is when try to activate the form there are no syntax errors but iam getting a message
    1,275 bytes transmitted, code page 0000
    Message no. FES032
    and the form is still inactive...
    any idea why iam getting this error? is configuration from basis not configured properly?
    Please advise
    Govi

    1. Create RFC (ABAP system side) destination through SM59 called as ADS which should of type G
    u2022     RFC Destination          : ADS
    u2022     Connection Type          :G(HTTP Connection to External services)
    u2022     Destination 1               : ADS connection to SID (Java system)
    Target System settings:
    u2022     Target HOST          : JAVA system Host 
    u2022     Port               : java system port
    u2022     Path prefix          : this defaults(/AdobeDocumentServices/Config?style=rpc)
    2. Login to Visual Administration
    Navigate to Server  Services  Destinations and select HTTP drop down.
    Create the RFC destination as FP_ICF_DATA_<SID>.
    Destination Name: FP_ICF_DATA_<SID>
    Destination Type: HTTP
    Connection settings:
    u2022     URL          :http://<hostname>:<ABAP-portno>
    u2022     system Id     :--NIL
    u2022     client            : ABAP system client no(200 or 300)
    u2022     Language     :--NIL
    Logon Data:
    u2022     Authentication: BASIC
    BASIS Authentication:
    u2022     Username:ADS_AGENT
    u2022     Password:xxxxx
    3. Please activate SOAP service:
    Login your ABAP System
    u2022     Use transaction: SICF  execute  and Select default hostselect sap---select bcu2014select-SOAP Select and activate

  • Sending Adobe form in perzonalized mail forms

    Hi
    I created a personalized mail form and I want to send the Adobe PDF form of the contract to the customer along with the personalized mail forms.
    I know how to send  a personalized mail form, but not sure how do we attach the generate the PDF and attach it to mail form through actions.
    Regards,
    Deepthi.

    Hi Bhargavi,
    In your action method first get the  FM name for your Adobe form using
    fp_function_module_name.
    Then you need to call Adobe form FM.Importing lv_formoutput.
    Then you need to call bcs interface. sample logic
    lcl_send_request - cl_bcs=>create_persistent( ).
    lv_pdfsize = zstrlen(  lv_formoutput-pdf ).
    lt_pdfcontent = cl_document_bcs=>xstring_to_solix( ip_xstring = lv_formoutput-pdf ).
    append the mail body to lt_text.
    append  mail subject to ls_subject.
    then
    lcl_document = cl_document_bcs=>create_document( i_type = 'RAW'
                                                                                            i_text = lt_text
                                                                                             i_length = '25'
                                                                                             i_subject = ls_subject ).
    atach pdf to mail using
    call method lcl_document->add_attachment
         exporting
         i_attachment_type = 'PDF'
         i_attachment_subject = ls_mail_sub
         i_attachment_size = lv_pdf_size
         i_att_content_hex = lt_pdf_content.
    lcl_send_request->set_documnt( lcl_document ).
    lcl_receipient = cl_cam_address_bcs=>create_internet_address( i_address_string = email id ).
    lcl_send_request->add_recipient( i_recipient = lcl_recipient ).
    lcl_sender = cl_cam_address_bcs=>create_internet_address( i_address_string = sender email id ).
    lcl_send_request->set_sender( i_sender = lcl_sender ).
    lv_sent_to_all = lcl_send_request->send( i_with_error_screen = 'x' ).
    commit work.
    Regards,
    Tejaswini P.

  • E-mail Form

    Hello.  I'm trying to create an e-mail form for one of my websites.  I do NOT want to use the mailto: command.  I want to setup the form so that when visitors click Send, the form sends that information to my e-mail address immediately.  I also want to setup a CAPTCHA system for security purposes.  How can I do this?  Thanks.

    Need to use server-side scripting with PHP or ASP.  This would depend on your web hosting provider.  If such options are not available you would need to use a third-party source.
    So, what language can you use on your server?

  • Accents donu00B4t appear in mail form (Mailing Campaigns)

    Hi Gurus,
    When we execute mailing campaigns there are some not common characters that don´t appear. These are characters with accent, €, ..., ñ, ...
    guía and the result in the customer mail is gua
    € and appears #
    ... and appears #
    ñ and appears nothing
    I´ve been cheching OSS in French, Russian... but without success because our language is Spanish
    Luis Angel Fernández

    Hi Luis,
    In the HTML code that you create in Personalized mail form you have to use entities instead of regular accents. (In the Personalized mail form click on the source and edit there directly).
    List of regular entities for various characters can be found here
    http://www.w3schools.com/tags/ref_entities.asp
    Also, please ensure that the system in which you are viewing email address supports UTF-8 characters. e.g. Eudora email clients do not support UTF-8 and you will continue to get problem of junk characters where you have special characters.
    Regards,
    Deepak

  • Mails forms in Campaign Management

    Hi Experts,
    I need to create a new mail for for the camapaign management.
    I have created a new mail form for the campaign, using the Attributes, Address and BP NO
    In Campaign creation under the Channel, Communication is selected as Email and in the Form: my mail form is displaying. When I try to execute,Error : TREX is not configured.
    please let me know how to configure this mail forms in sap crm 7 in campaign mgt, or whether some steps has been missed out  by me.
    regards.
    karthik
    Edited by: Karthik J on Feb 19, 2012 12:20 PM
    Edited by: Karthik J on Feb 19, 2012 12:24 PM

    Hi Karthik,
    In case of HV segmentation, may be you can check whether the TREX settings are maintained for the object ID : BPARTNER
    Path :CRM ->Marketing->Segmentation->High Volume Segmentation ->Define RFC Destination and Settings for TREX Index
    Hope this helps to resolve the error.
    Regards,
    Rashmi

  • Personalized Mail Form

    Hi Friend’s
    I created a Personalized Mail Form in Easy access in Dev server but I didn’t get any request no just that on showing Mail is save so how should I send that Personalized Mail Form Dev server to Qty Server?
    Plz give me the solution with Example plz
    Regard’s
    Mahesh Kumar
    My mail id is [email protected]

    hi
    I have a doubt . do we need mail forms whenever we r using send email in ICWC. actually when we are clicking on new email getting short dump which is coming from check_tracking_text method from the mail class.it is trying to get mail_form name but does not find any so giving dump.any help will be really appreciated
    thanks
    sonia

Maybe you are looking for

  • Sky Mobile TV and AV Cable

    Hi, I recently purchased the Composite AV Cable from the Apple store after being informed that if a video is being played on the iPhone then that video will be displayed on whatever the AV cables are plugged into. I am havng trouble with running Sky

  • Error on apps

    Whenever I try to send requests on games connected to Facebook, it comes back with "an error occurred please try again later". I've tried later, turned the iPad off completely and then back on, removed and reinstalled the apps and even went as far as

  • Getting kicked out of bex when i use a certain characteristic

    Would anyone know why I would get a BW server issue  and it kicks me out of BEx when i add in a particular field?

  • Cisco IDSM Event Viewer - Understanding Event ID

    Hi Everyone Attached in this discussion is a screen shot of the Event Viewer. Just to inquire, I see a lof of these message e.g. TIPC: Lost contact with, TIPC: Lost link etc. Is this a problem? These error messages comes with Event ID, but I'm unable

  • Error in DTW Business Partner Template

    Hi Experts, I'm getting an error "Invalid DebPayAcct" while uploading the data to Business Partner through DTW. I'm using SAP 2007B PL08. Please suggest me why this error is appearing. What is DebPayAcct? Thanks in advance.