Oracle Apex Mail Send Issue.

Fyi
I am using oracle apex 4.2 version.
i am trying to send mail using APEX_MAIL.send.
My process like
begin
APEX_MAIL.send(
p_to       => '[email protected]',
p_from     => '[email protected]',
p_body     => l_body,
p_subj     => 'APEX_MAIL Package - Plain Text message');
end;
When i check mail queue from administrator part
HomeManage > InstanceMail > Queue
It show no error and after the send all mail still i am not geting the mail
i also check my email setting in administrator part.
Thanks

Hi,
I suggest that you put some debug statements to make sure that there no errors in the input parameters to the apex_mail.send procedure (http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/apex_mail.htm#insertedID1). If possible, set up a simple example in apex.oracle.com and share the credentials.
Thanks,
Rohit

Similar Messages

  • Apex mail send p_cc question

    Hello,
    This is probably an easy question. I searched the form and documentation but couldn't find anything.
    I'm using apex.mail.send as a process when the user presses a particular button. The user puts in the email address info. The requirement is to send it and cc multiple people.
    Based on how I have it set up now, the "To person" is getting the email for each cc. (2 people are cc'd then the "To person" is getting the email twice.) Is it possible to have the people cc'd on the same message so that the "To person" only get's it once?
    for c4 in (select EMAIL
    from REPORTING_APPS.EMAIL
    where EMPLID in ( :P3_CC1,:P3_CC2)) loop
    for c1 in (select EMAIL
    from REPORTING_APPS.EMAIL
    where EMPLID = :P3_ASSIGNED_INDIVIDUAL) loop
    apex_mail.send(
    p_to => c1.EMAIL,
    p_from => '[email protected]',
    p_cc => c4.EMAIL,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => 'DRAFT’;
    end loop;
    end loop;
    END;
    Thanks for any insight! Melissa

    Melissa,
    You're calling APEX_MAIL.SEND for each cc recipient. You want to create a comma-separated string for the cc recipients and just call APEX_MAIL.SEND just once. Maybe something like:
    declare
        l_cc varchar2(1000);
    begin
        for c4 in (select EMAIL
                     from REPORTING_APPS.EMAIL
                    where EMPLID in ( :P3_CC1,:P3_CC2)) loop
            if length(l_cc) > 0 then l_cc := l_cc || ',';
            l_cc := l_cc || c4.email;
        end loop;
        for c1 in (select EMAIL
                     from REPORTING_APPS.EMAIL
                    where EMPLID = :P3_ASSIGNED_INDIVIDUAL) loop
            apex_mail.send(
                p_to => c1.EMAIL,
                p_from => '[email protected]',
                p_cc => l_cc,
                p_body => l_body,
                p_body_html => l_body_html,
                p_subj => 'DRAFT’;
        end loop;
    end;Joel

  • Help! Sporadic Mail sending issues

    I have recently upgraded to Lion and since then have been having sporadic problems sending mail.  I use a .mac account with O2 broadband at home and an unknown provider at work. 
    Mail stops sending for several hours at a time, and has done so from both locations.  Since my iphone and ipad still send mail without a problem at these times, I have to assume that it is a Lion issue and not a provider issue.
    Connection doctor shows green for incoming and outgoing but mail simply refuses to send.
    My current mail-send-blackout has been going on for 18 hours now.  Yet yesterday my mail would send from home and also when I arrived at work.  But halfway through the working day it just stopped.  Again.  No apparent reason or pattern
    If anyone has any suggestions, I'd be very grateful
    Thanks
    Cal

    Yes well there were no changes to the account, just stopped sending mail via SMTP
    Deleted account and set up new one, same thing cannot send mail via Mail app
    As mentioned another disc on the same comp with same account details etc works fine
    so don't understand
    Seems a lot of people are having this problem too.
    Thanks Anyway

  • Mail Sending issue to Outlook - Mail Request not Showing in SOST

    Hi,
    Im using mail sending logic for sending a mail to Creator of Billing. i have one itab which is having two Users with two different mail IDs. i need to send a mail to those user mail ids to Outlook
    user  Mail id
    12           XXX
    12           XXX
    13           YYY
    13           YYY
    at end of User i need to send a mail..
    loop at itab.
    at end of user.
    here sending a mail...for the first user it is sending mail perfectly..and mail request is available in SOST . once its comes to second user sending a mail getting sy-subc = 0 after SO_NEW_DOCUMENT_ATT_SEND_API1 FM..and mail request Not coming for second mail id in SOST both mails also available in Sap out box.
    endat.
    endloop.
    Kindly Help me out..
    Regards
    Dileep

    Hi,
    to send mails use this:
    FORM docu_send_email USING pv_otfdata TYPE tsfotf
    pv_emailid TYPE any
    pv_formname TYPE any.
    DATA: lv_filesize TYPE i,
    lv_buffer TYPE string,
    lv_attachment TYPE i,
    lv_testo TYPE i.
    DATA: li_pdfdata TYPE STANDARD TABLE OF tline,
    li_mess_att TYPE STANDARD TABLE OF solisti1,
    li_mtab_pdf TYPE STANDARD TABLE OF tline,
    li_objpack TYPE STANDARD TABLE OF sopcklsti1,
    li_objtxt TYPE STANDARD TABLE OF solisti1,
    li_objbin TYPE STANDARD TABLE OF solisti1,
    li_reclist TYPE STANDARD TABLE OF somlreci1,
    li_objhead TYPE soli_tab.
    DATA: lwa_pdfdata TYPE tline,
    lwa_objpack TYPE sopcklsti1,
    lwa_mess_att TYPE solisti1,
    lwa_objtxt TYPE solisti1,
    lwa_objbin TYPE solisti1,
    lwa_reclist TYPE somlreci1,
    lwa_doc_chng TYPE sodocchgi1.
    CONSTANTS: lc_u TYPE char1 VALUE 'U',
    lc_0 TYPE char1 VALUE '0',
    lc_1 TYPE char1 VALUE '1',
    lc_pdf TYPE char3 VALUE 'PDF',
    lc_raw TYPE char3 VALUE 'RAW',
    lc_ordform TYPE char15 VALUE 'ZORDCONFIRM_01',
    lc_attachment TYPE char10 VALUE 'ATTACHMENT'.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = lc_pdf
    max_linewidth = 132
    IMPORTING
    bin_filesize = lv_filesize
    TABLES
    otf = pv_otfdata
    lines = li_pdfdata
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT li_pdfdata INTO lwa_pdfdata.
    TRANSLATE lwa_pdfdata USING ' ~'.
    CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
    CLEAR lwa_pdfdata.
    ENDLOOP.
    TRANSLATE lv_buffer USING '~ '.
    DO.
    lwa_mess_att = lv_buffer.
    APPEND lwa_mess_att TO li_mess_att.
    CLEAR lwa_mess_att.
    SHIFT lv_buffer LEFT BY 255 PLACES.
    IF lv_buffer IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Object with PDF.
    REFRESH li_objbin.
    li_objbin] = li_mess_att[.
    DESCRIBE TABLE li_objbin LINES lv_attachment.
    Object with main text of the mail.
    lwa_objtxt = space.
    APPEND lwa_objtxt TO li_objtxt.
    CLEAR lwa_objtxt.
    DESCRIBE TABLE li_objtxt LINES lv_testo.
    Create the document which is to be sent
    lwa_doc_chng-obj_name = text-008.
    lwa_doc_chng-obj_descr = text-008.
    lwa_doc_chng-sensitivty = lc_0.
    lwa_doc_chng-obj_prio = lc_1.
    lwa_doc_chng-doc_size = lv_testo * 225.
    Pack to main body.
    CLEAR lwa_objpack-transf_bin.
    header
    lwa_objpack-head_start = 1.
    The document needs no header (head_num = 0)
    lwa_objpack-head_num = 0.
    body
    lwa_objpack-body_start = 1.
    lwa_objpack-body_num = lv_testo.
    lwa_objpack-doc_type = lc_raw.
    APPEND lwa_objpack TO li_objpack.
    CLEAR lwa_objpack.
    Create the attachment.
    Fill the fields of the packing_list for the attachment:
    lwa_objpack-transf_bin = gc_x .
    header
    lwa_objpack-head_start = 1.
    lwa_objpack-head_num = 1.
    body
    lwa_objpack-body_start = 1.
    lwa_objpack-body_num = lv_attachment.
    lwa_objpack-doc_type = lc_pdf.
    lwa_objpack-obj_name = lc_attachment.
    lwa_objpack-obj_descr = text-008.
    lwa_objpack-doc_size = lv_attachment * 255.
    APPEND lwa_objpack TO li_objpack.
    CLEAR lwa_objpack.
    lwa_reclist-receiver = pv_emailid.
    lwa_reclist-rec_type = lc_u.
    lwa_reclist-notif_del = gc_x.
    lwa_reclist-notif_ndel = gc_x.
    APPEND lwa_reclist TO li_reclist.
    IF li_reclist IS NOT INITIAL.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = gc_x
    TABLES
    packing_list = li_objpack
    object_header = li_objhead
    contents_bin = li_objbin
    contents_txt = li_objtxt
    receivers = li_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    ENDFORM. " DOCU_SEND_EMAIL

  • Mail sender issue

    Hi all
    since upgrading to iOS7.1.1 I've had a weird issue. In the sidebar of mail on my ipad2 the sender is listed as the same person for all messages. When I rap on it and go  into the body of the message the correct sender is listed in the "from" line and I am able to reply to that correctly.
    I have deleted and added my exchange account on several occasions but this hasn't rectified the problem. This problem does not occur on my iphone 5 (running 7.1), on my MacBook Pro (running 10.6.8) or on the webmail page of my email server.
    Any thoughts?
    Many thanks in advance.
    Bugsy

    Hello there, Bugsy.
    Great job troubleshooting your issue on your own, so far! As simple as it may seem, I find the following Knowledge Base article helpful when an App on iOS doesn't seem to be functioning as expected:
    iOS: Understanding multitasking
    http://support.apple.com/kb/ht4211
    If an app doesn't respond to your input, or doesn't perform as expected, do the following, testing after each step:
    Check for app updates.
    Force the app to close.
    Restart your device.
    Update your iOS device.
    Learn more about troubleshooting apps.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • VF03 - Mail send issue

    Hi Experts ,
    I have the below requirement .
    In VF03 - Issue output type - i have attched one output type name with which one Ysmartform has been attached .
    Functional guys have done some settings in SPRO so when they press the PRINT button it is generating spool for printr as well as it is sending mail to the vendor (picking mail id from vendor master)
    with the smartform as an attachment .
    The subject of the mail which goes to vendor comes from the setting - NACE - V3 (billing)- Output types -
    some output name congi by functional- click on that - mail title and text - for EN language a text has been maintained there .
    The problem i am having is the  SUBJECT OF THE MAIL and the PDF ATTACHMENT ( The out put of the smartform) both is having the same name . Means wht ever name is there in subject it is comming in the attachment also .
    I need to change the name of the  SUBJECT , in debugging i am able to change the name of the SUBJECT , so the changed name is comming in the PDF attchment , which i dont want .
    I am not able to track wheather the attachment is being generated and the name is assigned .
    I think this is the programm -  RLB_INVOICE 
    Anyidea please suggest .
    Regards
    Prabhu

    Hi Suresh
    Good on you that you are actually going through the SAP Help and trying the harder but better way unlike many others...your input regarding your problem is also quite well explained....Keep it up!
    Coming to your problem,
    <b>1.>>I see the emails only after a long time. Infact the emails sent yesterday is >>only visible today.</b>
    RSCONN01 is the program that sends email out of SAP, make sure this scheduled to run frequently otherwise you can manually run this from SE/SA38.
    <b>2. i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox</b>
    When you run SOST make sure you tick all the checkboxes - Waiting, Errors, Sent and Transmitted. If you are on ECC, then these are available on the Send Status tab...
    Good Luck
    Ravi

  • Mail sending issues in full screen

    Hey All,
    When mail is in full screen and you are composing a message, the message box doesn't disappear after you click the send button. The little paper airplane button turns off. When you click it again it turns back on. So on and so forth.
    A colleauge told me that they recived my email like 10 times because I kept clicking the button.
    As soon as I got out of full screen view the compose message box disappeared and the message was sent.
    Anyone else experiance this problem??

    Right- mouse click in the top part of the toolbar:
    Hope you can get it!

  • Mail sending issue and receiving sound intermittent

    I have three mail accounts on the 3G iPhone if that matters.
    The primary SMTP server I have setup for when using email at home on wi-fi. Set up the same as on the Mac to the ISP I connect to. Works fine sending and receiving on the iPhone.
    Under other SMTP servers I have set to reflect the mobile provider I connect to when not on wi-fi.
    The only way I can send mail using the mobile provider is to turn off the primary server.
    The instructions on the screen say " If mail is unsuccessful using the primary server it will try the other SMTP servers in succession. Clearly not doing this as if it can't connect using the primary server it doesn't continue searching through other servers.
    Anyone else experiencing the same problem?
    In addition the sound on receiving mail is intermittent and generally doesn't work. If it does it only works the one and then only one of the three accounts. And then goes away again.
    I was hoping that the 2.1 update may have fixed both of these.

    Bump

  • Mail Sending Issue

    Mail question: I've noticed when sending a single message, the Mail Activity status shows 1 of 4 then 4 of 4 messages sent or 1 of 3 or 1 of 7.  Changes each time. There are no pending messages when I do this and I'm only sending one message at a time.  Virus?  Malware?

    are you using IMAP or POP? Switch to the other and see if that helps.

  • Tcode ME91F mail sending issues in PO reminder with smartform layout

    Hi,
    I am facing one problem while executing ME91F tcode.
    When i assign script in NACE transaction to print the PO reminder layout through ME91F and send the PO to vendor of that PO through mail. I am able to send it.
    But When i do the same through smartforms, i am not able to send the mail.
    I wants to know that is it possible to process through smartforms in ME91F tcode.
    Please let me know if anyone knows any solution regarding this.
    Regards,
    Prabu

    solved

  • Mac mail sending issue

    Hi,
    I'm using Mac Mail to send my emails. I have them set up using IMAP with GoDaddy hosting my emails.
    For some reason Mac Mail is not saving / recording all sent emails, especially emails sent with attachments. The recipient is receiving them all so they've definitely been sent, but they're not appearing in the sent items / sent folders.

    Try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • Mail send issue - Workflow Triggered from Error Message

    hi
    i am learning workflow and doing some practical sessions using tutorials found on the internet. I have successfully enabled a workflow triggering options from the error message. The workflow will simply send an email and there is nothing else in that workflow definition. When i get the error message i open up the error message window and trigger the workflow option which is enabled. I get a message that the workflow has been started but i dont get the email immediately. I see the emails only after a long time. Infact the emails sent yesterday is only visible today.
    i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox. But i dont see the mails queued in SOST. But if i wait for a day i can see the emails in my inbox. Any idea what is wrong.
    ~Suresh
    Message was edited by:
            Suresh Reddy

    Hi Suresh
    Good on you that you are actually going through the SAP Help and trying the harder but better way unlike many others...your input regarding your problem is also quite well explained....Keep it up!
    Coming to your problem,
    <b>1.>>I see the emails only after a long time. Infact the emails sent yesterday is >>only visible today.</b>
    RSCONN01 is the program that sends email out of SAP, make sure this scheduled to run frequently otherwise you can manually run this from SE/SA38.
    <b>2. i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox</b>
    When you run SOST make sure you tick all the checkboxes - Waiting, Errors, Sent and Transmitted. If you are on ECC, then these are available on the Send Status tab...
    Good Luck
    Ravi

  • Mail send issues

    Every once in a while, I have problems with an email not being sent. It doesn't seem to matter if the email has an attachment or not.
    When I click send, the email starts being sent as normal. Then the transfer rate slows right down and stops altogether. It doesn't pick up again, but eventually Mail makes its "mail sent" sound.
    However, there is no sign of the sent email in the sent mailbox, nor in drafts. Also, if the problem email was a reply to another email, clicking on the curvy reply arrow brings up a message saying that the reply is missing.
    Does anyone know why this may be happening, and of a way to find the missing email so that I can attempt to send it again?
    Thanks

    That doesn't seem overloaded. However, that depends on the amount of space your provider gives and how much is in the inbox.
    If the message was sent, then it should have been in the sent folder and on the server. The first place it's copied to a sent folder is through the IMAP server, not the MAC. You only see it on the mac when it syncs. Check the website for that account and verify the message doesn't appear there. You might also check other folders at the IMAP site that it may have moved to such as archive that may not show on your Mac. Also check the IMAP folder for the account in the bottom of the sidebar for folders there that it may be in.
    What you can do is is uncheck to store messages on the server for the IMAP account. That will take the IMAP sent messages mailbox for that account out of the main Sent Mailbox and put it back under the IMAP folder. It will create a local mailbox for that account when you send the next message. That will save the sent messages locally. If it happens again, you will know it's not your providers problem.
    If that clears it up, then I would persue the problem with your provider.

  • Not Able to Send Mail in Oracle Apex

    Hello Apex Experts,
      I am using Amazon Cloud  with details as using Oracle Apex 4.1 and Oracle 11g as database using Glass Fish Server.
    Problem am facing is E-Mail are not working. I tried adding our company smtp address but still it is not working.
    In Oracle Apex Admin scree Under Manage Instance --> Instance Settings --> Email tryed adding ( localhost and 10.1.1.100 SMT address ) this didnt work
    I am using below code to send mail 
    Begin
    -- Send plain text email
      APEX_MAIL.SEND(
        P_TO       =>  '[email protected]',
        P_FROM     =>  '[email protected]',
        P_CC       =>  '[email protected]',
        P_BCC      =>  '[email protected]',
        P_SUBJ     => 'test',
        P_BODY     => 'test');
       apex_mail.push_queue('10.1.1.100', 25);
    End;
    SELECT * FROM APEX_MAIL_QUEUE;
    I get ORA-24247: network access denied by access control list (ACL) . I also see last_updated as SYS in the log
    Please suggest me how to fix this issue.
    Thanks
    Sudhir

    Hi Mike,
      Thanks for your reply, Let me give you a detail on where we are stuck on send mail.
       We have a Schema called PORTAL
      We are able to send mail from UTL_SMTP as mentioned below in a procedure
    create or replace PROCEDURE send_mail (p_to        IN VARCHAR2,
                                           p_from      IN VARCHAR2,
                                           p_message   IN VARCHAR2,
                                           p_smtp_host IN VARCHAR2,
                                           p_smtp_port IN NUMBER DEFAULT 25)
    AS
      l_mail_conn   UTL_SMTP.connection;
    BEGIN
      l_mail_conn := UTL_SMTP.open_connection(p_smtp_host, p_smtp_port);
      UTL_SMTP.helo(l_mail_conn, p_smtp_host);
      UTL_SMTP.mail(l_mail_conn, p_from);
      UTL_SMTP.rcpt(l_mail_conn, p_to);
      UTL_SMTP.data(l_mail_conn, p_message || UTL_TCP.crlf || UTL_TCP.crlf);
      UTL_SMTP.quit(l_mail_conn);
    END;
    Begin
    send_mail('[email protected]','[email protected]','test','10.0.0.100','25');
    End;
    The above code works i am able to send and receive mails.
    We also create ACL as mentioned below
    begin
    dbms_network_acl_admin.create_acl (
    acl => 'http_permission.xml', -- or any other name
    description => 'HTTP Access',
    principal => 'APEX_040100', -- the user name trying to access the network resource
    is_grant => TRUE,
    privilege => 'connect',
    start_date => null,
    end_date => null
    end;
    commit;
    SELECT * FROM dba_network_acl_privileges where principal='APEX_040100';
    begin
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
    principal => 'APEX_040100',
    is_grant => true,
    privilege => 'connect');
    end;
    commit;
    begin
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
    principal => 'APEX_040100',
    is_grant => true,
    privilege => 'resolve');
    end;
    commit;
    BEGIN
    dbms_network_acl_admin.assign_acl (
    acl => 'http_permission.xml',
    host => '10.1.1.100', /*can be computer name or IP , wildcards are accepted as well for example - '*.us.oracle.com'*/
    lower_port => 80,
    upper_port => 80
    END;
    But still we are getting same ACL Error Please suggest US
    ORA-24247: network access denied by access control list (ACL)
    Thanks
    Sudhir

  • Sending e-mail with attachment from Oracle APEX

    Hi,
    Do we have an option to attach a report to the e-mail and send from Oracle APEX page?
    In my case, I want to convert the report page into PDF format and attach to the mail. Is it feasible in APEX?
    I understand that APEX_MAIL.ADD_ATTACHMENT can attach files stored in the database. But here we need to convert the page and send it
    Thanks
    Kind Regards,
    Prasanth

    HI,
    Thank you for your input. Currently I'm using APEX 3.2.
    Here my requirement is to send the content of the report to the user via e-Mail. If i'm not converting the page into PDF and planning to send as a HTML page or any other format.. The Objective is to send the info with the same format as it is in the report page. Its too big to send as mesage body.
    Any idea how to proceed?
    Regards,
    Prasanth

Maybe you are looking for