Send Mail is not working

Hi,
I have installed Oracle Apex 3.2 on Oracle 10G Enterprise Edition database, Using Glassfish Server and apex listener
I have configured the SMTP on my machine. And added this SMTP host address and port in the admin instance setting.
When I run the below code mails are not getting triggered. What might be the issue in this setting. Need your suggestion in order to make work of send mails.
DECLARE
v_subject VARCHAR2(100);
v_sender VARCHAR2(100);
v_recipient VARCHAR2(100);
v_cc VARCHAR2(100);
v_bcc VARCHAR2(100);
v_body VARCHAR2(4000);
v_body_html VARCHAR2(4000);
BEGIN
v_subject := 'Email Subject';
v_sender := '[email protected]';
v_recipient := '[email protected]';
v_cc := '';
v_bcc := '';
v_body := 'Some text' || chr(10) || 'more text here';
v_body_html := 'Some text
more text here';
-- Send plain text email
APEX_MAIL.SEND(
P_TO => v_recipient,
P_FROM => v_sender,
P_CC => v_cc,
P_BCC => v_bcc,
P_SUBJ => v_subject,
P_BODY => v_body);
-- Send HTML email
APEX_MAIL.SEND(
P_TO => v_recipient,
P_FROM => v_sender,
P_CC => v_cc,
P_BCC => v_bcc,
P_SUBJ => v_subject,
P_BODY => v_body,
P_BODY_HTML => v_body_html);
APEX_MAIL.PUSH_QUEUE;
END;

I am also facing issue with email send .
apex 4.1.1 oracle 11g
create or replace procedure email ( p_email  in    varchar2)
is
    l_workspace_id      number;
    l_subject           varchar2(2000);
    l_body              clob;
    l_body_html         clob;
     l_email varchar2(40);
begin
    l_workspace_id := apex_util.find_security_group_id (p_workspace => 'xyz');
    apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
l_email:= p_email;
    l_body := ' ';
    l_subject := 'You have new tasks';
    --if l_email=:P3_CONFIRM_EMAIL_ADDRESS is not null then
   -- email( l_email =>:P3_CONFIRM_EMAIL );
-- end if;
        l_body_html := '<p />The following tasks have been added.';
     apex_mail.send (
            p_to        => l_email ,
            p_from      => '[email protected]',
            p_body      => l_body,
            p_body_html => l_body_html,
            p_subj      => l_subject );
  APEX_MAIL.PUSH_QUEUE;
end; I also check the log and queue but both are empty,
select * from
apex_mail_queue
select * from
apex_mail_log Kindly suggest what to do ?
I also created a process in apex , which call this procedure and pass the email address entered by user.

Similar Messages

  • HT201320 I have IOS 7 5S and using mail. Receiving works great. Sending mail will not work. Using Centurylink. On my IOS 6 Iphone 4 it works great. Compared settings and they are identical. Now what?

    I have IOS 7 5S and using mail. Receiving works great. Sending mail will not work. Using Centurylink. On my IOS 6 Iphone 4 it works great. Compared settings and they are identical. Now what?

    Well, this is a recurring issue for many users...a small percentage of users but still a bug.  Report the issue here to Apple:  www.apple.com/feedback
    iOS7.0.3 will be released next week, which as of now, I know is primarily for an iMessage but hopefully it will clear up some of these email issues some are also having.

  • Send mail task not working

    Hi Friends,
    I am facing a problem in Send Mail step. I have used  expressions as a initiator  but its going into error.I am sending the mail to initiator.In the binding the AddressStrings is getting no data and type is G.
    I am getting the error
    The Document <Customer created >could not be sent
    Thanks in advance.
    Regards,
    Amit

    Hi Aditya,
    The workflow has ended up with status ERROR. In run time the ADDRESSSTRING no container value.
    If i am not wrong we can refresh the buffer and restart again.Any help from your side.
    Regards,
    Amit

  • PDF Attachment problem in Adobe form and send mail is not working

    Dear Experts,
                         Recently i'm facing a problem regarding Adobe form PDF attachment and sending an e-mail along with the PDF attachment to customer mail id.But when i execute the RFC Function module, in customer side no mail is comming. And when i check the transaction SBWP then i found that the PDF attachment hold only 1KB of data which is not right.For that i'm sending my code which i was declared in my program.Can anybody please help me to overcome this problem?
    Warm Regards,
    sameek.
    CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
      data: t_att_content_hex type SOLIX_TAB.
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
            l_send type ADR6-SMTP_ADDR value 'Already provided an e-mail address here'.
      DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    Message body and subject*
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      APPEND 'Dear,' TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Please fill the attached form and send it back to us.'
      TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Thank You,' TO lt_message_body.
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'Customer Information Form').
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'Customer Information Form'
    I_ATTACHMENT_SIZE =*
    I_ATTACHMENT_LANGUAGE = SPACE*
    I_ATT_CONTENT_TEXT =*
    I_ATTACHMENT_HEADER =*
          i_att_content_hex = t_att_content_hex ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Add attachment*
    Pass the document to send request*
      lo_send_request->set_document( lo_document ).
    Create sender*
      lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
    lo_sender = cl_sapuser_bcs=>create( sy-uname ).*
    Set sender*
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient*
      lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).*
    Set recipient*
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    lo_send_request->add_recipient(*
    EXPORTING*
    i_recipient = lo_recipient*
    i_express = 'X' ).*
    Send email*
      lo_send_request->send(
      EXPORTING
      i_with_error_screen = 'X'
      RECEIVING
      result = lv_sent_to_all ).
      COMMIT WORK.
      message 'The Customer Information form has been emailed to the Employee' type 'I'.

    I am also facing issue with email send .
    apex 4.1.1 oracle 11g
    create or replace procedure email ( p_email  in    varchar2)
    is
        l_workspace_id      number;
        l_subject           varchar2(2000);
        l_body              clob;
        l_body_html         clob;
         l_email varchar2(40);
    begin
        l_workspace_id := apex_util.find_security_group_id (p_workspace => 'xyz');
        apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
    l_email:= p_email;
        l_body := ' ';
        l_subject := 'You have new tasks';
        --if l_email=:P3_CONFIRM_EMAIL_ADDRESS is not null then
       -- email( l_email =>:P3_CONFIRM_EMAIL );
    -- end if;
            l_body_html := '<p />The following tasks have been added.';
         apex_mail.send (
                p_to        => l_email ,
                p_from      => '[email protected]',
                p_body      => l_body,
                p_body_html => l_body_html,
                p_subj      => l_subject );
      APEX_MAIL.PUSH_QUEUE;
    end; I also check the log and queue but both are empty,
    select * from
    apex_mail_queue
    select * from
    apex_mail_log Kindly suggest what to do ?
    I also created a process in apex , which call this procedure and pass the email address entered by user.

  • IOS mail client not working in certain wifi networks

    Hey,
    this is driving me crazy:
    When I use my iPad or iPhone within our universities eduroam wifi network, receiving and sending mails does not work.
    I am using a google apps account. One would say, ok that's due to some IMAP and SMTP port blocking. However it isn't. Using my android phone with the same settings it just wouldn't work ... Never!
    Using my iPad in other networks works just fine ...
    Please help me with some suggestions.
    Jacob

    It could be the network, but what surprises me is that nothing else is being blocked at all. And I can't seem to change the port that Mail is on. I tried a port scan, and it came up that that port is blocked (993), but it also came up that every other port I tried was also blocked. I used a Mac to do a Port Scan for my iPad's IP, but it wasn't detecting any open ports. So I don't know if it is an issue with the network, or perhaps with my iOS devices. The network has 802.1X security I believe (I need a username and password to login), so unsure if this would affect it at all?

  • I updated to iOS 6 on my iphone 4 and updated my macbook pro with and now my mail is not working at all on my iPhone.  I can receive/send on my laptop, but not my iPhone!! Can someone help?

    i updated to iOS 6 on my iphone 4 and updated my macbook pro  and now my mail is not working at all on my iPhone, whether on wifi or 3G.  I can receive/send on my laptop, but not my iPhone!! Can someone help?

    Which email provider are you using?  If it's Gmail, try unlocking your account here: https://accounts.google.com/DisplayUnlockCaptcha.

  • TS3276 Mail is not working.  Cannot open new e-mail; cannot send mail.  Connection doctor shows green dot in status column.  I can't delete old e-mails to free up space.

    Mail is not working.  I cannot open new e-mail; and I cannot send mail either.  Also, I cannot delete past e-mails to free up space.  Mailbox seems to hang in general.

    OS X version?

  • I am using i pad mini. I am going through a issue in which i am not able to send mails to my work email add wherein i am able to receive emails from same email id.

    i am using i pad mini. I am going through a issue in which i am not able to send mails to my work email add wherein i am able to receive emails from same email id.

    With one mailbox server in the production site and one in the DR site, you do not have high availability.  If the main site goes down, the cluster loses quorum and all databases dismount.  You must then force quorum or move the file share
    witness to restore quorum.
    I can't tell you why what you observed happened.  At the time of the problem I would have been looking at the transport queues to see what's queued and to where.
    I recommend you look at the configuration of your send connectors to ensure that none of them are dependent upon the DR site server.
    To send mail outside, you must allow relay.  To do this, I recommend you create a new receive connector that's configured to allow relay and restrict access to the application server to keep anyone else from using it to relay.  There are plenty
    of articles on the Internet that describe how to configure a relay connector.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Auto-Reaction E-mail is not working:

    HI Basis gurus,
    I am setting up a fresh configuration with Solution Manager.
    Central system is solution manager 4.0.
    Auto-Reaction E-mail is not working:
    I have set Z_ccms_Onalert_email with the following parameter
    Parameter name Parameter value
    SENDER userid from client 000
    RECIPIENT my company e-mail Id.
    RECIPIENT-TYPEID U
    for the below MTE:
    Properties of DEV\r3dev_DEV_00\...\Background\Aborted
    MTE class R3BPServerSpecAbortedJobs
    when I check in CCMS Selfmonitoring it shows:
    Node name (MTE) DEV\MoniInfra_r3dev_DEV_00\...\DataSupplier\Log
    System DEV
    Context MoniInfra_r3dev_DEV_00
    Object name DataSupplier
    Short name Log
    Status ACTIVE
    Alert text Document <CCMS alerts DEV 20050808 041658> could not be sent
    Line-Id in Message Container 0000000243 0001149437 1123489018
    VAR 1 CCMS alerts DEV 20050808 041658
    VAR 2 CCMS alerts DEV 20050808 041658
    VAR 3 CCMS alerts DEV 20050808 041658
    VAR 4 CCMS alerts DEV 20050808 041658
    I also tried creating seperate MTE and added
    Properties of DEV\r3dev_DEV_00\...\R3Abap\Shortdump
    MTE class R3AbapShortdumps
    With Auto-Reaction Methor has ccms_Onalert_email with the above parameter.
    But the e-mails are not triggered.
    I checked ccms_selfmonitoring and found below error message:
    Node name (MTE) DEV\MoniInfra_r3dev_DEV_00\...\Tooldispatching (short running tasks)\Messages
    Context MoniInfra_r3dev_DEV_00 Object name Tooldispatching (short running tasks) Alert text Unable to set runtime status for data collection method (RC = 253), MTE: DEV\r3dev_DEV_00\...\R3Abap\Shortdumps
    Line-Id in Message Container 0000000222 0001068279 1122993022
    Also send_internet_mail Job is running every 10mins.
    Please provide solutions for this.
    Thanks in advance
    Pradeep

    Hi Pradeep,
    Can you send e-mail at all from the ssm 4.0 ? Are there any mail hanging in scott ? Are the MTE's reporting at all? May be a stupid one but you say
    I have set Z_ccms_Onalert_email with the following parameter
    and then
    With Auto-Reaction Methor has ccms_Onalert_email with the above parameter.
    But the e-mails are not triggered.
    Is the no Z_ a typo in the post or is this a typo in you're system ??
    Lando

  • My Yahoo Mail is not Working on any of my Apple devices,  It attempts to download new email but then stops.  Any ideas?

    My Yahoo Mail is not Working on any of my Apple devices,  It attempts to download new email but then stops.  Any ideas?

    I, too, am having a problem with my Yahoo email account on my first generation IPad. I can't download my emails to my IPad from the server. The IPad looks like it's trying to download them but can't do it. I am able to send emails from my IPad with my Yahoo account.
    This problem started yesterday, Aug., 25th, the day after I uploaded the last update from Apple. I am able to set up another email account through Sbcglobal that will download my emails to my IPad but it is not sync'ed with my desktop mail which creates a mess when I move or delete emails.
    I've tried deleting my Yahoo account and then adding it back. Also I've reset my IPad and I've done a full restore.
    I think it has something to do with the last update, which I believe was a security update, which may have reset the firewall. That's just a guess.
    Has anyone figures out anything else?

  • Upgraded to OS X 10.5.6 - Now Mail is not working.

    I recently upgraded to OS X 10.5.6. Everythingwent just fine, but Mail is not working. None of my old messages show up, nor am I able to send or receive mail. My old folders are displayed, but no messages are in there either.
    I use a POP account. I verified the settings with the service provider website and all of it is by the book. These same settings were used with the old version of Mail with no problems, but its just nor working anymore!
    Help!!!

    royzee wrote:
    I cannot send or receive emails.
    sorry, I can not explain that. usually this would indicate that something is wrong with your account settings. you may want to try the following. copy your rogers inbox and sent mail to local mailboxes in "on my mac" section (make new mailboxes there). then delete rogers account and set it up from scratch. see if it works.

  • Outgoing mail is not working on the Macbook Pro

    Hey
    I am using the mail client to read my gmail mails in my Macbook Pro. Incoming and outgoing emails were working fine and all of a sudden for the last 2 days my outgoing mails are not working and i get this error" the sender address blah blah.com was rejected by the server".
    I reentered my cred in the pref pane and it still does not work. I am able to send mails fine using the browser. Incoming mails is fine is fine on the client.
    Any idea what is causing this error?
    Thanks
    Rpk
    Mac Mini, MacBook Pro   Mac OS X (10.4.5)  

    I'm not sure why this worked fine for a period of time but most, if not all ISPs use for connecting to the internet block the use of SMTP servers outside of their network (or not provided by the ISP) on Port 25. Some ISPs allow the use of an authenticated SMTP server only that is outside of their network on Port 25 but some block its use regardless.
    These restrictions are in place as part of an overall effort to prevent spam emanating from the ISP's domain.
    Something to try.
    Go to Mail > Preferences > Accounts and under the Account Information tab for the account preferences at the SMTP server selection, select the Server Settings button below.
    Enter 587 in place of 25 in the Server Port field and when finished, select OK to save the changed setting.
    If this doesn't work, you need to add your ISP's SMTP server to mail and select this SMTP server to send mail with your gmail account which is invisible to all recipients.

  • I updated to 5.0 and my outgoing cox mail is not working

    I updated to 5.0 and my outgoing cox mail is not working.  In coming is fine, but I can't send any mail.

    I have the same problem with my iphone4 purchased in Hong Kong, I live in Guangzhou.  How can I switch the maps app back to English?

  • Mail preview not working any more - Mountain Lion

    Ever since I upgraded to Mountain Lion - the preview is not working in Mac mail properly. So the first email in the list that I click on shows the preview but when I click down to any of the others in the same mailbox - the preview does not change. The only option I have then to see what the email is all about is to double click the email and look at it in its own window which is really annoying.
    Any ideas anyone? Yes I do have all the software upgrades installed and am on the new Mac Bool Pro Retina display...
    thanks

    My Mac Mail does not work also.
    I had a problem with Hotmail, which as you know Apple Mail somehow links to when you press "send mail"
    on some Internet sites.
    I had to add a new Hotmail mail address. Now my old address in HGotmail doesn;t exist, but I still receive
    mail through the new one (which is called a default mail address).
    So Apple Mail is still linked to my old non-working Hotmail adress, and will not accept the password for my
    new Hotmail account.
    I canl;t remember my old password for my old Hotmail account.
    Can someone help?
    Please keep the instructions easy to follow, and use  ots of small steps, and aussume I know nothing!
    I don't know what an IPO is, authentication certificate, how to access Mail sofware to add Apple computer language,  I don;t know my Ingternet Procvder address, and so on.....
    One non-woking Apple Mail!
    SB

  • My icloud mail has not worked for 2 days.  the tech support people say they dont even know there is a problem.

    My mail has not worked for two days - in the US.  The tech support people on the phone claim they don't even know there is a proplem.  Anyone know whats going on? 

    http://www.apple.com/support/icloud/systemstatus/
    People reading this forum are just other users like you (who frankly already know there are a lot of frustrated users out there and cannot tell you anything you won't see in the above link).  Send your feedback to http://www.apple.com/feedback/icloud.html

Maybe you are looking for

  • Find total no of pages in a sap script

    Hi,   How do i find the no of pages that is generated in SAP script, with out generating a spool. thanks.

  • Javascript alert boxes?

    I'm looking to incorporate an alert box which launches when a user clicks on exit to confirm the click. Is there an easy way to do this within Captivate 2's "execute javascript" command?

  • Automatic file naming and data saving

    Hi, I am building a program where there will be several I-V scan for each value of temperature. I would like to make the data saving fully automatic.  To explain in more deatils: I want the program to generate a new file on its own , give a file name

  • Recorded Inspection Results Data Conversion

    Hi, I have to upload the data from file to SAP using LSMW can anybody suggest me the standard method to do it for transaction code QE01. Or any function module for the same is really help full. Thanks Dhirendra

  • Serializing large objects

    Dear All, I am trying to serialize a HashMap containing Strings as keys and and ArrayLists as values. This works fine when the number of entries is small, but does not work when the number of entries are really large, in which case an java.lang.OutOf