Apex_mail.send / HTML formatting Ignored When Sent via Trigger

I have a PL/SQL procedure that sends a formatted email using the apex_mail.send procedure. This procedure works 100% perfectly if I run the procedure either from a scheduled job (using dbms_scheduler), or when I siimply call the procedure "ad hoc" from the APEX SQL Editor. However, when the exact same procedure gets invoked/called from a DB trigger, some of the formatting instructions get ignored with regards to font face and font size. I am stumped by this. Any ideas?
BTW, I'm using APEX 4.2.
Thanks in advance

Sorry totally my fault - no issue at all... more a problem with the tester! users with an external email address are receiving the email it just seems when the email is sent from Apex standalone is appears in the inbox but when it is sent from within an iframe it is sent straight to the junk mail by the email client... still a little strange there is a difference in behaviour but at least it doesn't totally fail as I first thought.

Similar Messages

  • Iphone 4 recieves my brothers iphone 3gs messages when sent via imessage

    My iphone 4 recieves my brothers iphone 3gs messages when sent via imessage. When he texts me, his name comes through as my email address. I think this could be because we both have the same itunes account. not all messages my brother sends i recieve but i would just like this sorted out. please help!

    Sounds like you signed up the same account for iMessages or the same phone number was added to iMessages.
    Go into SETTINGS/MESSAGES/SEND & RECEIVE
    That is the list of numbers and email addresses that the phones will receive iMessages for. Remove the duplicates that you might see between the two phones. Also make sure that the Apple ID at the top is not the same.
    Fred

  • How do I  Send HTML formatted email  using  class in  javax.mail pkg

    How do I Send HTML formatted email using javax.mail pkg class ?i mean is thr any class available in this package to do this ?

    Please see
    http://javaalmanac.com/egs/javax.mail/SendApp.html
    for Quintessential Program to Send E-Mail.
    Then substitute line
    msg.setText(content);
    /with this one
    msg.setContent( content , "text/html");
    it should do in simplest form.

  • How to send HTML Format Mail using Java Mail in oracle 9i Forms

    Dear All
    could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
    if it is possible, could you please send me the sample code? please very urgent
    Thanks
    P.Sivaraman

    Hello,
    <p>Here is a Form sample.</p>
    Francois

  • Error when sending HTML format mail from Oracle 9i forms

    Dear All,
    i have created one procedure with 15 in parameter by which i can send mail in HTML format. due to length problem i am using 15 parameter, every parameter has length 32767, i am splitting HTML coding after every parameter length fulfilled
    when 3 or 4 parameter only fulfilled mail comes well, but more than 4 parameter fulfilled mail is not coming, will any one of you kindly please help me to resolve this
    following procedure i am using.......
    PROCEDURE P_SEND_MAIL( subject_p varchar2, salutation_p varchar2, plan_hdr_msg_p varchar2,
    plan_dtl_msg_p_1 varchar2, plan_dtl_msg_p_2 varchar2, plan_dtl_msg_p_3 varchar2, plan_dtl_msg_p_4 varchar2,
    plan_dtl_msg_p_5 varchar2, plan_dtl_msg_p_6 varchar2, plan_dtl_msg_p_7 varchar2, plan_dtl_msg_p_8 varchar2,
    plan_dtl_msg_p_9 varchar2, plan_dtl_msg_p_10 varchar2, plan_dtl_msg_p_11 varchar2, plan_dtl_msg_p_12 varchar2,
    plan_dtl_msg_p_13 varchar2, plan_dtl_msg_p_14 varchar2, plan_dtl_msg_p_15 varchar2, summary_p varchar2,
    cmplmntry_sign_msg_p varchar2, mailto_p varchar2 ) IS
    mail_from varchar2(100);
         mailhost varchar2(30) := 'MAIL-SRVR';
         crlf varchar2(10) := CHR(13)||CHR(10);
         mess_bdy varchar2(10000);
         Port number := 25;
         conn UTL_SMTP.CONNECTION;
    begin
         mail_from := 'IT-Department';
         mess_bdy := 'Date: ' ||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' )|| crlf ||
         'From:' ||mail_from|| crlf ||
         'Subject:'||subject_p|| crlf ||
         'To: ' ||mailto_P|| crlf ||'' || crlf;
         conn:= utl_smtp.open_connection( mailhost, Port );
         utl_smtp.helo( conn, mailhost );
         utl_smtp.mail( conn, mail_from);
         utl_smtp.rcpt( conn, mailto_P );
         utl_smtp.data( conn, 'MIME-Version: 1.0' ||CHR(13)|| CHR(10)||
         'Content-type: text/html' || CHR(13)||CHR(10)||
         mess_bdy||salutation_p||plan_hdr_msg_p
         ||plan_dtl_msg_p_1||plan_dtl_msg_p_2||plan_dtl_msg_p_3||plan_dtl_msg_p_4||plan_dtl_msg_p_5
         ||plan_dtl_msg_p_6||plan_dtl_msg_p_7||plan_dtl_msg_p_8||plan_dtl_msg_p_9||plan_dtl_msg_p_10
         ||plan_dtl_msg_p_11||plan_dtl_msg_p_12||plan_dtl_msg_p_13||plan_dtl_msg_p_14||plan_dtl_msg_p_15
         ||summary_p||cmplmntry_sign_msg_p);
         utl_smtp.quit( conn );
    exception
         when others then
         null;
    END;

    did u encounter any error?
    Be more clear in ur saying. As i understood that - is when coming to 5th parameter u r not able to access it. Is it right?
    Message was edited by:
    USER_X

  • Encounter error when sending HTML format email

    please reference below codes, when the lt_html has more than one line, the email could not been displayed properly in my inbox.
    did you encounter this kind of problem? Pls help, thank you.
    document = cl_document_bcs=>create_document(
    i_type = 'HTM'
    i_text = lt_html
    i_length = conlengths
    i_subject = 'HTML format email' ).

    Hi,
    please show the 3-line html-code that does not work:
    in lt_html, also value and/or method to fill for conlengths
    Save email as text and show whats there.
    This is required for the answer.
    Regards,
    Clemens

  • Survey response is not getting submitted when sent via campaign

    Hi,
    Currently I have a problem in Campaign survey submission. Please help me with the problem.
    I am using ++  for URL tracking.  There are two scenarios I observe here.
    1) When I send an e-mail via the communication channel test from the
    mail form, and also set the "Test entire process" indicator   the email is sent and I am able to open the URL (within my company
    network) fill the questionnaire and submit the responses.   I can see the responses.
    However when I send it via campaign by assigning a target group, the mails are sent correctly. I am able to open the survey (with in the network)  but when I submit it is showing page cannot be displayed error,
    URL generated when tested via campaign:
    URL when I open the email :
    http://lvs400.******.com:*****/sap(bD1lbiZjPTM2MA==)/bc/bsp/sap/crm_svy_server/Survey.htm?applid=CRM_SURVEY_MARKETING&svyid=SAMPLEREQUEST&vers=0000000002&lang=EN&
    parid=CRM_SVY_BSP_B31_360%2eXML&MIG=4A78718836563E3EE10080030A016467
    URL when I submit :
    http://lvs400.***.com:***/sap(bD1lbiZjPTM2MA==)/bc/bsp/sap/crm_svy_server/Survey.htm
    URL generated when tested directly via mail form:
    URL when I open the email
    http://lvs400.******.com:***/sap(bD1lbiZjPTM2MA==)/bc/bsp/sap/crm_svy_server/Survey.htm?applid=CRM_SURVEY_MARKETING&svyid=SAMPLEREQUEST&
    vers=0000000002&lang=EN&parid=CRM_SVY_BSP_B31_360%2eXML&MIG=4A7893AA342A3E15E10080030A016467
    URL when I submit :
    http://lvs400.*******.com:***/sap(bD1lbiZjPTM2MA==)/bc/bsp/sap/crm_svy_server/Result.htm?sap-params=c3Z5X2NvbnRlbnQ9JTNjaDMlM2VUaGUrVmFsd
    WVzK1dlcmUrU2F2ZWQrU3VjY2Vzc2Z1bGx5JTNjJTJmaDMlM2UlM2NpbnB1dCt0eXBlJTNkJTIyaGlk
    ZGVuJTIyK25hbWUlM2QlMjJzdnlSZXR1cm4lMjIrdmFsdWUlM2QlMjIwJTIyJTNlJTNjaW5wdXQrdHlwZSUzZCUyMmhpZGRlbiUyMituYW1lJTNkJTIyc3Z5TWVzc2FnZS
    UyMit2YWx1ZSUzZCUyMlRoZStWYWx1ZXMrV2VyZStTYXZlZCtTdWNjZXNzZnVsbHklMjIlM2UlM2NpbnB1dCt0eXBlJTNkJTIyaGlkZGVuJTIyK25hbWUlM2QlMjJzdnlW
    R1VJRCUyMit2YWx1ZSUzZCUyMjRBNzlDNTBFODYyMTU1NERFMTAwODAwMjBBMDE2NDY3JTIyJTNlJTNjaW5wdXQrdHlwZSUzZCUyMmhpZGRlbiUyMituYW1lJTNkJ
    TIyc3Z5VlZlcnNpb24lMjIrdmFsdWUlM2QlMjIwMDAwMDAwMDAxJTIyJTNlJnN2eWFwcGxpY2F0aW9uaWQ9Q1JNX1NVUlZFWV9NQVJLRVRJTkcmc3Z5c3VydmV5aWQ9U0
    Could you please let me know what I am missing here.. I want to capture responses when it is sent to a target group via campaigns. Please let me know.
    Thanks and Regards,
    Hemanth

    HI experts,
    I am facing a similar problem. while testing the survey URL i am able to navigate to the result.htm page and it shows SURVEY VALUES WERE SAVED SUCCESSFULLY.
    However while using the same in a campaign ( both with the ## and ++ ) hyperlinks, i am getting a dump and not able to navigate to the result.htm page.
    I have also checked and activated the result.htm under BSP applications but still no help.
    I am getting the following dump:
    The following error text was processed in the system CAD : The current application triggered a termination with a short dump.
    The error occurred on the application server carnation6_CAD_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Function: CRM_SVY_ACTIVITY_PAI of program SAPLCRM_ACTIVITY_SURVEY
    Method: CALLBACK_PAI of program CL_CRM_SVY_RUNTIME============CP
    Method: SET_VALUES of program CL_CRM_SVY_RUNTIME============CP
    Function: CRM_SVY_RESULT_DISPATCHER of program SAPLCRM_SVY_RUNTIME
    Method: ONINPUTPROCESSING of program CLO2E6WQ6K4QYANL2PTD6149OEYAYCP
    Method: %_ONINPUTPROCESSING of program CL_O2E6WQ6K4QYANL2PTD6149OEYAYCP
    Method: DO_REQUEST of program CL_BSP_PAGE===================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Please guide
    Thanks
    Nitin Sehgal

  • Send HTML formatted e-mail unsing main?

    hi,
    Can I send my HTML formatted newsletter using Mail?
    When I paste in the html into Mail it shows up as the raw HTML text.
    I want to be able send out my HTML formatted newsletter.
    Mail can receive HTML formatted e-mails ...can it send them too?
    How?
    thank you.

    Hello mnorton,
    Perhaps this article can be of assistance. As the article suggest, I would test it out first by emailing a copy of it to yourself.
    http://bytes.com/topic/macosx/insights/825931-quick-way-send-html-emails-apple-m ail-mail-app
    B-rock

  • Why does my "Doteasy" e-mail format change when sent using Mozilla?

    Up until recently I have been using Internet Explorer as a browser both at work and at home. I recently switched to Mozilla Firefox only at home and have been happy overall.
    When I access my work e-mail account from home ("Doteasy.com") I am unable to control the font size, type and my signature when sending e-mails. Usually the resulting e-mail when sent ends up combined in a long paragraph that is hard to read and really unprofessional looking.
    I did try to follow how to set up Mozilla with an e-mail program but when I select the "Tools" menu the "Account Settings" does not appear in the menu and I have been unable to find it. I have the latest version of Mozilla too (as of 11/14/2011).
    My life will be so much easier if I can work from home once in awhile.
    Thanks for help!!
    Thank you.

    My computer does this too. It also has made my Sent Button disappear and refers me to a "send later" solution. which is do not get or have. Shake the tree, maybe a nut will fall. Crack the nut and there you will find the Chinese answer!

  • How to SEND HTML formatted mail??

    How do I put HTML formatted text into an email I want to SEND? -- "Paste as HTML" in edit menu is dimmed, and I can't get it to un-dim... I want to paste formatted text from an HTML editor into an email... can I do this with Mail, or do I need some other app to do this?

    AHHHH
    What you can do to make HTML for Apple Mail is to make it in an HTML editor, open it with Safari use CMD+i - a new mail message will appear in a moment with the web page in the email body.
    You can't do any major editing in Mail, you'll have to go back to the HTML file. But it works.
    You can also use Copy (from a web page) and then (Edit) Paste as HTML (that what Paste as HTML is for, not for creating HTML email). You can also user Paste as HTML to copy/paste a HTML email you receive or part of a HTML email.

  • To Send HTML Format and excel file attachment  in same mail

    Dear All,
            Have requerment ,to send a mail options HTML table format and same data in excel file attachement.have capable to do the html format using methods BCS .but how to send excel format attachment in same  mail.
    Please guide me how to do it.
    Regards ,
    Santhu
    Edited by: santosh jajur on Apr 9, 2010 1:54 PM

    Santhosh,
    please check the code:
    report bcs_example_7.
    This report provides an example for sending an Excel
    attachment in Unicode Systems
    constants:
      gc_tab  type c value cl_bcs_convert=>gc_tab,
      gc_crlf type c value cl_bcs_convert=>gc_crlf.
    parameters:
      mailto type ad_smtpadr
       default 'ur mail id'.                    "#EC *
    data send_request   type ref to cl_bcs.
    data document       type ref to cl_document_bcs.
    data recipient      type ref to if_recipient_bcs.
    data bcs_exception  type ref to cx_bcs.
    data main_text      type bcsy_text.
    data binary_content type solix_tab.
    data size           type so_obj_len.
    data sent_to_all    type os_boolean.
    start-of-selection.
      perform create_content.
      perform send.
    form send.
      try.
          send_request = cl_bcs=>create_persistent( ).
        create document object from internal table with text
          append 'Hello world!' to main_text.                   "#EC NOTEXT
          document = cl_document_bcs=>create_document(
            i_type    = 'RAW'
            i_text    = main_text
            i_subject = 'Test Created By BCS_EXAMPLE_7' ).      "#EC NOTEXT
        add the spread sheet as attachment to document object
          document->add_attachment(
            i_attachment_type    = 'xls'                        "#EC NOTEXT
            i_attachment_subject = 'ExampleSpreadSheet'         "#EC NOTEXT
            i_attachment_size    = size
            i_att_content_hex    = binary_content ).
        add document object to send request
          send_request->set_document( document ).
        --------- add recipient (e-mail address) -----------------------
        create recipient object
          recipient = cl_cam_address_bcs=>create_internet_address( mailto ).
        add recipient object to send request
          send_request->add_recipient( recipient ).
        ---------- send document ---------------------------------------
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
          commit work.
          if sent_to_all is initial.
            message i500(sbcoms) with mailto.
          else.
            message s022(so).
          endif.
      endtry.
    endform.                    "send
    form create_content.
      data lv_string type string.
      data ls_t100 type t100.
    columns are separated by TAB and each line ends with CRLF
      concatenate 'This Is Just Example Text!'                  "#EC NOTEXT
                  gc_crlf gc_crlf
                  into lv_string.
    header line
      concatenate lv_string
                  'MSGID'    gc_tab
                  'MSGNO'    gc_tab
                  'Language' gc_tab                             "#EC NOTEXT
                  'Text'     gc_crlf                            "#EC NOTEXT
                  into lv_string.
    data lines
      select * from t100 into ls_t100
        where arbgb = 'SO' and msgnr = '182'.
        concatenate lv_string
                    ls_t100-arbgb gc_tab
                    ls_t100-msgnr gc_tab
                    ls_t100-sprsl gc_tab
                    ls_t100-text  gc_crlf
                    into lv_string.
      endselect.
      select * from t100 into ls_t100
        where arbgb = 'SO' and msgnr = '316'.
        concatenate lv_string
                    ls_t100-arbgb gc_tab
                    ls_t100-msgnr gc_tab
                    ls_t100-sprsl gc_tab
                    ls_t100-text  gc_crlf
                    into lv_string.
      endselect.
      try.
          cl_bcs_convert=>string_to_solix(
            exporting
              iv_string   = lv_string
              iv_codepage = '4103'  "suitable for MS Excel, leave empty
              iv_add_bom  = 'X'     "for other doc types
            importing
              et_solix  = binary_content
              ev_size   = size ).
        catch cx_bcs.
          message e445(so).
      endtry.
    endform.                    "create_content
    Thanks.

  • Can not send HTML formatted email since Mavericks?

    Hi..
    I was using Thunderbird happily in Mountain Lion and all was well. But as soon as I upgraded to Mountain Lion I can no longer send any HTML formatted emails at all. Everything I paste into Thunderbird get instantly converted to 'plain text'. Apart from manually editing basics like font colour, italics, bold I can't do much else.
    'Compose messages in HTML' is checked across all accounts, and 'Delivery Format' is set to 'Rich Text HTML'.
    Yet thunderbird refuses to render any pasted HTML formatted material.
    If I can not find a solution to this I will have to find an alternate mail client as rich formatting is critical for me.

    I just wiped Thunderbird completely from my system (Mavericks) and reinstalled from scratch. Yet still it will not render any HTML pasted into an email copied from Safari.
    I did however manage to paste HTML from Firefox and then Chrome into Thunderbird and they both rendered perfectly.
    But.. things get a bit strange. I am able to copy HTML from any webpage opened in Safari and paste it into a Googlemail email also opened in Safari and it renders fine.
    This is such a pain as Safari is my browser of choice and Thunderbird my email client of choice. But they just don''t want to work together in Mavericks.
    :((

  • Apex_mail.send p_cc format

    Anyone else using the APEX mail send procedure and the p_cc parameter? From what I gather, it only accepts one email address, rather than say a semi-colon or comma delimited list of email addresses. Same can be said of p_bcc. I tried comma and semi-colon lists and they error out. Using the single address works.
    I am hoping someone can prove to me that this can be a list. I want the ability of sending to many cc recipients without sending multiple emails.
    Not much documentation on this, just that it is a VARCHAR2 value.
    TIA,
    Buzz

    Hi Buzz,
    They are comma-separated values.
    I just sent this to myself from apex.oracle.com and it worked fine (using different e-mail addresses, obviously):
    begin
    apex_mail.send( p_to => '[email protected]',
                    p_from => '[email protected]',
                    p_cc => '[email protected],[email protected]',
                    p_subj => 'test',
                    p_body => 'test' );
    end;Joel

  • HTML Formatted Links in Dynamic TextField Trigger Popup Blocker

    I recently updated the flash on my site to load all text
    content as HTML from an XML file and display it in a couple of
    dynamic text fields. Everything works as expected except that links
    in the HTML text with a "_blank" target trigger popup blocking in
    IE and Firefox. Any thoughts on why this is happening and what I
    can do to fix it?
    J

    as3 textfields have a TextEvent.LINK you can use.

  • 070302ex603 Formatting errors when posting via BD87 transaction

    Hi experts,
    When posting idocs manually via transaction BD87 all users receive "Formatting error in the field BSEG-WRBTR..." or "Formating error in the field BKPF-BUDAT..." regardless of personal user settings. When the same idoc is posted via scheduler it posts without any error. Can anybody help me out in this issue.
    Points will be rewarded.
    With thanks in advance
    Saravanan

    Hi
    Go to T code ST22. here for the user id in which the dump is generated, click on how to rectify. The system will give you a probable resolution for the problem.  In many cases, there would be some key words, on which you need to serach for a suitable note of SAP to resolve the dump. Take the hlp of your ABAPER also
    Thanks & Best Regards
    Sanil K Bhandari

Maybe you are looking for

  • An error occurs when trying to load a .psd into PSE 9

    Hi I am getting the message- An error occurred during Apple event processing -43 when I try to load .psd files into PSE 9.  These are templates that I have bought that have previously worked.  This just happened.  I am not very computer savvy- but I

  • I just bought a new mac and need to clear the memory of my old one but i don't have a startup disk.  how do i do this?

    I just bought a new mac book pro and need to clear my old mac of it's contents to give it away---  I do not have my startup disk anymore.  How can i completely delete my old mac's memory?

  • CS5 Bridge Tools\Photoshop Menu Options aren't working ...

    The CS5 Bridge Tools\Photoshop Menu Options that contain the Image Processing / Photomerge / HDR Pro features that open images from Bridge into Photoshop isn't working ... has this happened to anyone else?  Have you any ideas how to fix this? I've cl

  • Looking for a notebook with below specs.

    Highly Recommended: OS: Windows 7 32-bit/64-bit CPU: Pentium D or newer (or equivalent such as AMD Athlon 64 X2 or newer) with optional multithreading or hyperthreading capabilities. RAM: 2048MB required for working with multi-million-polys. 6 GB rec

  • Module - pool Question..?

    Hi, The select-option functionality is not working in the Module pool... SELECTION-SCREEN BEGIN OF SCREEN 1030 AS SUBSCREEN. SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-003. SELECT-OPTIONS: o_ledger FOR zsfiglscr_chead-nrldnr . SELECTION