Set the subject of the mail

Hi,
Here is one working example
create or replace
procedure testing_mail
IS
mailhost VARCHAR2(30) := '10.?.5.?';
mail_conn utl_smtp.connection;
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
mesg VARCHAR2( 1000 );
BEGIN
mail_conn := utl_smtp.open_connection('10.?.5.?', 25);
mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
'From: <'postmaster@mysmtpdomain'||'>' || crlf ||
'Subject: '||'testing mail' || crlf ||
'To: '||'[email protected]'|| crlf ||
'' || crlf || 'Testing mail procedure';
utl_smtp.helo(mail_conn, '10.?.100.?');
utl_smtp.mail(mail_conn, 'postmaster@mysmtpdomain');
utl_smtp.rcpt(mail_conn, '[email protected]');
utl_smtp.data(mail_conn, 'Testing mail procedure');
utl_smtp.quit(mail_conn);
END;
But I need the idea to put the subject for the successful example above!
Best Regards

Do not invent your own linefeed combinations. Use the linefeed constant from the UTL_TCP package.
As for formatting the e-mail itself - that is governed by the specs for MIME bodies.
Have a look at the basic explanation at http://en.wikipedia.org/wiki/MIME and read the relevant RFCs that contains detailed specifications on how to construct MIME bodies.

Similar Messages

  • Email Submit:  Field Contents as the Subject of the Email?

    Hi All,
    I've built a .pdf form using Live Cycle Designer. I want the user to be able to press a button on the form to send the form (as a .pdf attachment) to a predetermined email address and cc.
    In addition, the subject of the email should be a concatenation of a) predetermined text that will remain static, and b) the contents of a field on the form (entitled "Project").
    Lastly, I'd love to have a predetermined message body automatically applied to each such email.
    I'm able to have the user press the button which sends the saved form as a pdf attachment to a predetermined address.
    I'm NOT able, however, to achieve the following:
    a) I don't know how to get it to cc the predetermined email address.
    b) I don't know how to get field contents into the subject of email, nor concantanate the field contents and the static text.
    c) Don't know how to set forth a predetermined message body.
    I don't know anything about javascript or xml.
    Can you help?
    Thanks!
    John

    Hi Chris!
    Thanks much! Now I only need the button to automatically cc a predetermined email address. My fully functioning code is below. What do I need to add? Thanks!
    J
    var concatenation = Picture.rawValue + ' - ' + Artist.rawValue + ' - ' + DealType.rawValue;
    event.target.submitForm({cURL:"mailto:[email protected]?subject=DEAL ORDER: " + concatenation + "&body=Click on send in order to submit your Deal Order Form.\nIf you experience any technical difficulties, please call Neil at x5175.",cSubmitAs:"PDF",cCharset:"utf-8"});

  • What does the "To" in a rounded rectangle mean on the subject line of Mail?

    Just wondering what the "To" in a rounded rectangle means on the subject line of iPad Mail. It's on nearly all my messages!! Really bugging me.
    Cheers!
    Tom Adams

    Cheers!! I turned that setting on thinking it displayed those fileds when typing a new message, rather than having to press details.
    Fab! Cheers all!
    Tom Adams

  • How to customize or change the subject of the mail send throu SM36

    HI,
    i m using SM36 to Schedule some of reports and send the output of those reports as an attachement to particular email ids.
    It is working fine people are receive mails with an output of the report as an attachement , but the subject is coming like this
    "Job PRODUCTION PLANING REPORT, Step 1"  where  "PRODUCTION PLANING REPORT" is the job name . What i want is the Subject should be only my Job Name "PRODUCTION PLANING REPORT"   the Prefix Iob and the Sufix Step 1, should not appear in the subject. How can i achive this ?
    Regards
    Edited by: nau on Jan 20, 2010 3:31 PM

    In SM36, under the 'General Data' area, the answer is right there. Click on the Spool list recepient button and place the e-mail recepient in the box. It looks like only one entry can be entered there so you may want to have a distribution group setup accordingly for multiple recepients
    My view is as per the line i can see only .html attachment  only you can send...
    See Mr NA. take intitiative and tell the clients....Clearly that if we schedule thtrough SM36 then we have limited funcitonalities like you can't attach the excel version's specially and Subject issue what you are discussing...
    So as of now my suggestion is Using the FM (if it is version 6.0 Ecc prefer using classes....) You can write extra funcitionality to report to send via Email
    Sas

  • Outlook 2010 - Subject line of new e-mail changes to duplicate the subject of the e-mail below

    I'm having the strangest issue with a new install of Outlook 2010. Sometimes when I receive a new e-mail, the from, subject, received, and size fields will duplicate the information from the e-mail below it. In other words, no matter what the sender, subject,
    time, etc. actually is, it will display in the inbox the same as the e-mail below it. Once I open it, it will list correctly in the inbox, or I can click on another folder and return to the inbox to see it correctly displayed.
    I do not have any kind of preview on, and the inbox only displays one line. There is no pattern to which e-mails this happens to.
    Any ideas?

    Please run /cleanviews switch to check the result.
    (Type "Outlook.exe /cleanviews in Windows search bar and press ENTER.)
    Please also create a new Outlook profile to check if the issue still persists. Thanks.
    Tony Chen
    TechNet Community Support

  • Customize the subject of a mail

    I want to change the subject of an alert functional email, but I cant find where can I do that.
    Searching in the forum, I notice that I cant do this in BPM; instead I go to ALRTCATDEF TCode and surprise!!!! I found tecnical and functional alerts, but in the "long and short text" on the Message title I found something that doesnt appear in the subject mails.
    Where can I found this? I just want to add 3 chars at the end of the subject and I cant understand how...

    That is what I tried to do but the title doesnt match with the mail subject (the mail subject says "Process xxxx" where xxxx is a large number, and the message title says another thing)
    Any other idea? Maybe this is not from XI, Im thinking that this is from the delivery system of outlook, but I'm not sure.

  • My iphone will list my emails and the subject, but the body will be empty.

    I have had my phone for approximately one year with no problems.  Now it sends only the senders name and the subject of emails but the body is blank.  I have checked settings etc. but can't find why it is doing this.  I think it may have happened when I tried to open an attachment.  Now, all my email is like this.  I am traveling and need to get this fixed soon.  I am not in a position to phone apple.

    The problem lies with your computer.
    If you are connecting the iPhone direct to a USB port on your computer - not connected to a USB hub, have you tried every USB port?
    Desktop or laptop?
    PC or Mac?

  • On the subject of bespoke mail clients (with BTInt...

    The clients I'm referring to are WindowsLiveMail and Outlook. We have a poor internet conenction (connectivity is pretty constant but speed varies between 1-3Mbps). We exchange quite alot of email (some with reasonable sized attachments).
    The question I have is with WindowsLiveMail. Quite often we end up with mail sitting in the Outbox.  Getting these to send involves one of:-
    1. restart WLM
    2. move items from Outbox to Drafts/Inbox whereever, and resend
    I have checked that the server timeouts are at their maximum. So WLM is a free product. The question is will Outlook (paid for) perform more reliably?
    EDIT: I have confirmed our SMTP settings as "port 465 and SSL with mail.btinternet.com"
    EDIT2: Oh I see reports of issues with Outlook.  Oh blimey, sounds like could be releated to BT mail migration.

    Or there is Thunderbird, another free e-mail client which works very well.
    https://www.mozilla.org/en-GB/thunderbird/
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • I need to set the homepage for 100 users to a local intranet site. I see articles about the subject but the stop short of telling me how to use the script. // lockPref("browser.startup.hompage",0); where should I enter the URL?

    I must allow users to use Firefox or Internet explorer while I can easliy contorl the homepage using a GPO for IE I cannot do the same for firefox. I found great information on a way that I can create a config file and then promulgate it to the users but trhe script information is incomplete I need to know exactly where to enter the desired name for the default browser

    Was it really necessary to post the whole API description?!?
    Locale[] locales = Locale.ENGLISH();ENGLISH is not a method in class Locale, so do not add the braces "( );".
    Also, the constant ENGLISH is not an array, but just a single Locale object.
    You didn't say what your problem was. What do you want to achieve with your program and what is it that you don't understand?

  • When i open my mail app it appear tp me onlu the list of in and out mail , for each account but I cannot read test an attachmentbecause I n tne right side appear only  the subject not the message. qhat should I do?e

    may I ask if this is aproblen of configuration or simething else?
    I will be grate to whom can give me suffestions
    giofrosr

    See if this helps .... Reset the iPad.
    Hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears - ignore the red slider bar - let go of the buttons and let the iPad start up. Then check your emails.

  • How can I include the data from a field in the subject of the notification email?

    Instead of having a static subject line for each form response, I would like to have something like:
    Form Response Received from <<Name>>
    That way, each email would have a unique subject line and make it easier to use conversation view in my email.
    Thanks for any help you can provide.  I searched the documentation and couldn't find the answer.

    There is not a way to do that within the automated system-wide e-mailing of responses from the FormsCentral application.
    Doing a search in your e-mail, or setting up e-mail filters to separate/segregate e-mails into different folders (based on content or selections in the submissions) is a good way to extend functionality outside of FormsCentral.
    Brian

  • I used to have this and now I don't have this anymore: whenever I used to type in subject lines in my emails, it would auto complete the subject of the email based on prior emails sent out. It no longer does this. How can I get this feature back?

    I have tried to find out how to change this in internet settings and by going to the tool menu and can find nothing.

    Make sure that you not run Firefox in permanent [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Permanent Private Browsing mode"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • E-Recruiting - Change the subject of the correspondence letter

    Hi Gurus,
    Till now the E-Rec correspondence letter has for email subject the activity name (eg: "Correspondence: Rejection").  We would like to replace it by the Posting ID and title. 
    I tried to found any things like this which could helps me in img but doesn't seem there is something like in standard.  Does anyone of you could let me know how we could change this subject ?
    Thank you
    Hadrien

    CL_HRRCF_CS_DOC_CAT_SF_SUPER-set_subject

  • How to obtain the Subject from the current context ?

    I’m working on a SSO project and everything is fine with getting the Principal from a HttpServletRequest object or from an EJB’s SessionContext. But, I have some business logic that is not necessarily behind a SLSB (as a façade patter) and I don’t want to propagate the Principal reference from Presentation to the Business Layer. That’s why, I would like too know if OC4J has some sort of utility to get the current authenticated Subject.
    Thanks for your help
    Miguel A. Onofre R.

    Hi,
    is it possible to obtain the current ApplicationModule from an EntityImpl?No. But you can get to the root ApplicationModule that holds the DBTransaction object from
    getDBTransaction().getRootApplicationModule() - new in JDev 903.

  • How to get subject of the Mail greator than 50 characters length

    Hi Friends,
    I am sending a mail by using the Class Interface cl_document_bcs and method create_document
    there the Parameter i_subject is of 50 characters length
    but the client need the subject of the mail nearly 100 chars lenght
    Please guide me how to go furthur
    are there any other Methods to go furthur to have subject of the mail greator than 50 characters lenght
    Thanks in Advance
    Ganesh

    Hi Ravi,
    could you plz help me how to set that subject... (len > 50 char )
    my previous code is
    TRY.
        gwa_sendreq = cl_bcs=>create_persistent( ).
        gwa_document = cl_document_bcs=>create_document(  i_type    = gc_htm
                                                          i_text    = gt_mail
                                                          i_subject = gwa_subject ).
       gwa_subject1  = 'Material Arrival (GIN No:12566) notification Against PO 26735 (To be Inspected)'.
       gwa_sendreq = cl_bcs=>set_message_subject( ip_subject = gwa_subject1 ).
        CALL method GWA_SENDREQ->SET_DOCUMENT( gwa_document ).
        gwa_sender = cl_sapuser_bcs=>create( sy-uname ).
        CALL METHOD gwa_sendreq->set_sender
          EXPORTING
            i_sender = gwa_sender.
        gwa_recipient = cl_cam_address_bcs=>create_internet_address( gv_mail_id ).
        CALL METHOD gwa_sendreq->add_recipient
          EXPORTING
            i_recipient = gwa_recipient
            i_express   = ' '.
        gwa_sendreq->set_send_immediately( gc_x ).
        CALL METHOD gwa_sendreq->send(
          EXPORTING
            i_with_error_screen = 'X'
          RECEIVING
            result              = gwa_sent_status ).
        IF gwa_sent_status <> 'X'.
        ENDIF.
      CATCH cx_bcs INTO gwa_bcs_exception.
    ENDTRY.
    COMMIT WORK.

Maybe you are looking for

  • PO and GRN different currency

    HI, I havale done with USD currency and done GRN but GRN has came to EUR currency. My PO is USD currency and GRN is EUR cuurency. I want clarification and solution why its happening with different currency. Thanks

  • Flash CS4 and ActionScript 2.0

    Hello Was wondering if you could recommend the publish and save settings in Flash CS4 when working with ActionScript 2.0. What are my publish settings? Flash Player 8 or 9? Script: ActionScript 2.0 Should I be saving the project as CS4 or CS3? - I no

  • Errors while starting

    hello i am using bea webserver 5.1 with java. evert time when i run the cmd file in the weblogic installation directory a few set of errors shows up eventhough these errors does not make any problem to the server frm enabling. the errors are 1: java.

  • How do I make an application the default?

      I installed Microsoft Office 2011.  I do not want to use Outlook for mail.  I want to use Apple Mac Mail.  Sometimes Outlook opens instead of Mail.  For instance if I click on an email link in Safari.  How do I stop this?    How do I make an applic

  • Broken Sidebar Link Navigation

    I have created links in a sidebar to other pages within the site, but they do not work. I have made sure that the file names are spelled correctly in the link properties and have tried several different methods of creating the links (type file in pro