Email going into email queue and not being sent out.

All i have the following code
declare
appuseremail varchar(90);
pospectname varchar(90);
salescontact varchar(90);
salescontactemail varchar(90);
createdon varchar(90);
targetdate varchar(90);
posstatus varchar(90);
statusmsg varchar(500);
bususeremail varchar(100);
sendtolist varchar(4000);
sendtocclist varchar(4000);
begin
-- store the current users email address, so we can send him/her a copy
select email into appuseremail from app_users where user_name = :APP_USER;
select (firstname ||' '|| lastname)into salescontact from app_users where user_id = :P2_SALES_CONTACT;
select email into salescontactemail from app_users where user_id = :P2_SALES_CONTACT;
select email into bususeremail from app_users where user_name = :APP_USER;
-- store the number of users that have been recerted
pospectname := :P2_COM_NAME ;
createdon := :P2_CREATE_DATE;
targetdate := :P2_TARGET_DATE;
posstatus := :P2_COM_STATUS;
-- Build status message on status variable
if posstatus = 'Accepted' THEN
  statusmsg := 'The commissions request for customer "'||pospectname||'" has been accepted by '||bususeremail||', and requires your input.</font><br><br> The commission request details are.';
  FOR c1 IN (SELECT email from app_users where roleid = (select role_id from app_roles where role_name = 'OPS')) LOOP
   -- Add each user to the email list.
    sendtolist := sendtolist||c1.email||',';
  END LOOP;
FOR c2 IN (SELECT email from app_users where roleid = (select role_id from app_roles where role_name = 'BUSINESS')) LOOP
   -- Add each user to the email list.
  sendtocclist := sendtocclist||c2.email||',';
END LOOP;
  sendtolist := sendtolist||salescontactemail;
  sendtocclist := sendtocclist||salescontactemail;
end if;
end;When i run this the first loop gets update and then the second list gets update, but when i go into the admin panel i see the messages are held in the email queue , why is this ?

Hi Ben,
I had the same problem. If you go into the INTERNAL workspace, mail settings, make sure it is pointing to your mail server there and not "localhost". Here is my post:
Send Email Apex 2.2
Thanks
VC

Similar Messages

  • Sharepoint Emails Sitting in Queue, Alerts not being sent out via email nor sms

    I'm using Sharepoint 2013 Enterprise Edition on Windows Server 2008 R2. I have the mobile account setup correctly (account tested successfully) and I have the email setup for use with gmail (have configured the virtual IIS 6.0 manager to connect to gmail. 
    Currently when I set alerts they take on sharepoint but nothing is making it outside of the server. I have correctly mapped the mail and mobile phone functions and synchronized the user profiles from the active directory. Configured the Forms Based authentication
    (All of which work). 
    When I look on the virtual smtp manager I can see a large number of connections from unknown IP addresses connecting as my public IP (Suspect bots or spammers spoofing my IP address). I have checked online and the server is not blacklisted. When I look in
    the mail root file there I can find the emails / alerts sitting in the queue but going no where. If I manually move a .EML file to the drop folder after a small amount of time I see the file disappear so I know it's going somewhere. Can someone please help
    me out here? 
    I've attached the SMTP Service log below as you can see there are a large number of code 550 which means unable to relay. I'm struggling to understand how that can be when my accounts are all configured correctly?

    Yes, it probably would be easier to use an existing relay (and easier to manage). I'd use that, instead.
    You can also open one of those EML files to check the x-sender/x-receiver headers.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
    Alright I'm set to relay through the internal mail server however in the EML file I'm not seeing an x-sender or x-recipient which is weird. Shouldn't SP2013 automatically populate that info?

  • All of a sudden my IMessages only from my boyfriends IPod to my IPod touch five are being received in my email and not being sent to my IMessages what do I do to fix it and be back to reviving them in my IMessage

    All of a sudden my IMessages only from my boyfriends iPhone4 to my IPod touch five are being received in my email and not being sent to my IMessages what do I do to fix it and be back to reviving them in my IMessage's we both updated our divises to the iOS 7 and mine to the ios7.0.2 his at first just stopped sending to me period but then I turned of IM then reset networking settings then turned back on my IM and also turned my device off and back on now reviving them in my email

    I do not want to download another virus program.. I do not believe it is a virus. I am running the full version of Norton 360 and it is doing a daily scan. I have Windows 7, 64 bit OS.
    This is very irritating !! If I wanted Yahoo I would ask for it !

  • LDAP- When importing a Group it goes into Security Users and not Groups.

    Hello,
    I created a new LDAP Server
    cn=GroupBI,OU=Groups,OU=Systems,OU=Milan,OU=Italy,OU=Countries,DC=u,DC=a,DC=g
    Connection Test was ok.
    The problem is on importing members of my group, on Security Import window instead of having the group drop-down list populated I have the user drop-down list populated with "GroupBI".
    If I import this group (considered as a user by BI) it goes into Security > Users and not Security > Groups.
    This does not make sense.
    I'm sure this "GroupBI" is a group and not a user and the atribute type used is sAMAccountname
    Any help?
    Cheers

    Let me tell how we did Authentication using LDAP
    I havent imported any groups or users once the LDAP is set up and connection was successfull. I simply created the session variables USER DISPLAYNAME EMAIL and mapped to LDAP Variables uid, displayname, mail.
    Authentication is done in this way by mapping the OBIEE variables to LDAP variables instead of importing the groups.
    Now for Authorization I created the groups populated using some db tables and captured the group name and loglevel and applied filters on the group in the rpd for data level and permissions on the group in webcat for object level.
    So just for Authentication purposes I think we can authenticate with out really importing groups as long as you map OB variables to LDAP
    hope it helps
    Prash

  • How can I download an audiobook so it goes into audiobook file and not music

    how can I download an audiobook so it goes into audiobook file and not into music ? thanks

    Select all tracks that you want to listen to as Audiobook. Right click. Get Info. Click yes. Options tab. Media Kind change to audio book. OK  Done.
    T

  • Why are messages in my outbox and not being sent on my iphone 5.  I have had the 5 for over a year and never had this problem before.

    why are messages in my outbox and not being sent on my iphone 5.  I have had the 5 for over a year and never had this problem before.

    Text messages or emails?

  • Invitations not being sent out on Calendar Server 6.3

    We would be grateful for any help on this. We can give further details if needed, please just let us know.
    Thanks very much.
    Issue:
    To our customers the calendars server appears to be fully operational and without error. However, when a customer creates a new event and invites other people to attend, no invites are sent out. The event creator, however, believes all is in order as no error messages appear and the list of invitees appears on the event. This was working recently. We have looked for things which have changed (e.g. disk space, size of files, corruption, recent patching, licenses expiring, etc) but have not yet found anything that has changed.
    Some details of our system:
    ./cal/sbin/csversion
    Oracle Communications Calendar Server 6.3-27.01 (built Feb 15 2011)
    SunOS xxxx 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V440
    In /var/opt/SUNWics5/logs/watcher.log , we get these notices and errors when we restart the service.
    [20/Feb/2012:12:35:56 +1300] (Notice) Received request to restart: store admin http
    [20/Feb/2012:12:35:56 +1300] (Notice) Connecting to watcher ...
    [20/Feb/2012:12:36:00 +1300] (Notice) 7698
    [20/Feb/2012:12:36:00 +1300] (Notice) Stopping http server 7704 ..... done
    [20/Feb/2012:12:36:02 +1300] (Notice) Stopping http server 7705 ... done
    [20/Feb/2012:12:36:02 +1300] (Notice) admin server is not running
    [20/Feb/2012:12:36:02 +1300] (Notice) Stopping store server 7700 ............................................................... timeout
    [20/Feb/2012:12:37:03 +1300] (Error) Cannot stop server store with SIGTERM, now retrying with SIGKILL
    [20/Feb/2012:12:37:03 +1300] (Notice) Stopping store server 7700 ..... done
    [20/Feb/2012:12:37:05 +1300] (Notice) Starting store server .... 7718
    [20/Feb/2012:12:37:05 +1300] (Notice) Checking store server status ..... ready
    [20/Feb/2012:12:37:07 +1300] (Notice) Starting admin server ....Watched 'csadmind' process 7725 exited abnormally
    7725
    [20/Feb/2012:12:37:08 +1300] (Notice) Starting http server ....[20/Feb/2012:12:37:08 +1300] (Notice) Received request to restart: store admin http
    [20/Feb/2012:12:37:08 +1300] (Notice) Connecting to watcher ...
    ... 7727
    [20/Feb/2012:12:37:13 +1300] (Notice) 7698
    [20/Feb/2012:12:37:13 +1300] (Error) store failed twice in 600 seconds, will not perform restart
    Watched 'csadmind' process 7844 exited abnormally
    What we've done:
    We have run db_verify and csdb -v check on the databases. ics50deletelog.db did have corruption, so we fixed that by using db_dump and db_load to export then import the databases.
    We also purged the ics50deletelog.db database using cspurge afterwards when the dump and load didn't seem to have had an effect.
    We tried putting the log level up in the /opt/SUNWics5/cal/config/ics.conf , but didn't get any more details when restarting the service (through /etc/init.d/sunwics5 restart)
    Before we did the db_dump, db_load and purge:
    Calendar database version: 4.0.0
    Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
    Total database size in bytes: 1465503744
    Total number of calendars: 14964
    Total number of events: 830842
    Total number of tasks: 17351
    Total number of alarms: 57181
    Total number of gse entries: 9
    Total number of master component entries: 24100
    Total number of deletelog entries: 1779967
    Total logfile size in bytes: 79262
    Session database version: 3.0.0 [BerkeleyDB]
    Total database size in bytes: 0
    Total logfile size in bytes: 0
    Counter database version: 1.0.0 [Memory Mapped Files]
    Total database size in bytes: 0
    After the db_dump, db_load and purge:
    Calendar database version: 4.0.0
    Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
    Total database size in bytes: 1201864704
    Total number of calendars: 14964
    Total number of events: 830845
    Total number of tasks: 17351
    Total number of alarms: 55116
    Total number of gse entries: 9
    Total number of master component entries: 24100
    Total number of deletelog entries: 1779967
    Total logfile size in bytes: 5251612
    Session database version: 3.0.0 [BerkeleyDB]
    Total database size in bytes: 0
    Total logfile size in bytes: 0
    Counter database version: 1.0.0 [Memory Mapped Files]
    Total database size in bytes: 0
    Thanks again.

    Sounds like we talking about 'Event Invitations Notifications'. These are the notifications that gets sent when some one invite you to an event. Whether you receive the notification or not depends on your preference that is stored in ldap. This can be set using the Convergence by navigating through Options-> Calendar -> Notifcations (Check "Notify me via email of new invitations or invitation changes"). The actual ldap attributes that gets stored in user's entry is below.
    icsExtendedUserPrefs: ceNotifyEnable=1
    icsExtendedUserPrefs: ceNotifyEmail=[email protected]
    In the following cases, the user (attendee) will not get notifications even if the above preference is set.
    a> Creating an event with attendees in the past. CS6, by default, suppresses notifications for past events. You can enable notifications for past events by setting the config "ine.pastnotification.enable" to "yes" in ics.conf
    b> If the client creating the event requests server not to send notifications. (smtpNotify wcap param for storeevents.wcap). Outlook Connector uses this wcap param, so you won't get server notifications for the events invited using Outlook Connector. Outlook Connector sends it's own notifications directly.
    I think, you are looking for these kind of notifications. The process responsible for sending these notifications is "csadmind" on the Frontend. So, you need to check admin.log on the Frontend to see if it is sending notifications or not.
    Edited by: dabrain on Feb 21, 2012 9:26 AM

  • Email not being sent out

    Hi All.
    I am sending email in the Badi IN_UPDATE of one of HR infotypes.
    The FM works fine in other modes. But in in_update, i cannot give commit work. So it doesn't work ( i guess that's the reason).
    Any way we can force to commit while sending out emails via the BCS framework?
    Part of my code:
    set send immediately flag
          lr_send_request->set_send_immediately( 'X' ).
    Send document
          call method lr_send_request->send( ).
    Thanks in adv.

    Check the discussion: Sending mail through CL_BCS

  • On my ipad3, the Skype IM is not running. All msgs i send are shown as "pending" and are not being sent out.

    On my ipad3 skype IM is not running. The msgs are shown as "pending" and are not going out.
    Also i could earlier send sms to mobiles from skype. Now that facility has dissapeared from teh menu.
    Very thankful for any help.

    You both backup your iPhones on the same Apple ID, so when she restore her iPhone it pulled the data from the last backup (your iPhone).  She would need to erase her iPhone and restore from her back up. Take a look at this link in the restore section, http://support.apple.com/kb/HT4859

  • Text messages not being sent out!

    Hi
    What a weekend!  BB's gone haywire - took to Orange and can't replaced as I'm over the 12 month warranty and my insurance's stopped (stupid Tesco!) Orange suggested I buy another phone eg pay as you go so I did - got Rio but I hate it now due to complicated emails as I rely on my BB to get lots of emails and texts.
    However I switched my contract SIM back to my BB but I can get texts from people BUT I can't send it out!
    Reason why I took to Orange is because I cannot talk on the phone as it shows the headset and another box appeared on the top right hand corner - so it's faulty plus the camera's gone...... what next?  
    Any ideas on how can I send text messages out - I can use the BB Messenger fine but just the text isn't working.  Emails are working fine and so is the internet.
    Really appreciate for any help.  
    Thank you. 

    Please also clarify if you have any reception issues where you are using the phone or if you have tested another SIM in your phone?
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Email not being sent because recipient %@ rejected

    IN the past 12 hours all my emails are going to my outbox and not being sent.  The error message I am getting is " The Reciepient "%@" was rejected by the server because it does not allow relaying"  How does one fix this

    This problem has nothing to do with her hardware or the Mail application.
    If a message cannot be successfully sent for whatever reason, it will remain in the Outbox mailbox and not be sent.
    A message moved to the account's Sent mailbox indicates the message was successfully sent by the SMTP server used to send messages with the account but is no guarantee the message will be delivered to the recipient's incoming mail server or be accepted by the recipient's incoming mail server.
    Generally, this type of problem is at the recipient's incoming mail server - the recipient's incoming mail server may be blocking all messages received from the domain for the sender's email account/address (the portion of the email address after the @ sign or blocking a range of IP addresses for which the sender is included, etc.
    The next place to check is the provider for the sender's SMTP server used to send messages with this account which is usually the email account provider but not always.
    My .Mac account is my primary email account but I use my ISP's SMTP server to send messages with my .Mac account when connected to the internet at home - not .Mac's SMTP server.

  • Email alerts not being sent

    have configured some alerts on grid control but even though I can see the metric thresholds being broken there are no emails being sent
    anyone got any ideas why this might be happening?
    thanks

    hi,
    try the following procedure
    if grid control alerts are not being sent out to email etc try running the
    following scripts as the sysman user on the primary database
    exec emd_maintenance.remove_em_dbms_jobs
    exec emd_maintenance.submit_em_dbms_jobsregards
    Alan

  • Cc messages not being sent

    I have just realized that mail messages I have been copying to people in the 'cc' header section of mail (version 2.1) are not being sent out. I use .Mac account.
    Any thoughts?

    Does not being sent out mean these messages remain in the Outbox?
    If a message cannot be successfully sent, it will remain in the Outbox mailbox.
    A successfully sent message will be placed in the account's Sent mailbox and a successfully sent message is either accepted or rejected by the recipient's incoming mail server.
    If rejected by the recipient's incoming mail server for whatever reason, you will received a return email error message from the recipient's incoming mail server indicating why the message was not accepted.
    If no such error message is received, this indicates the message was accepted by the recipient's incoming mail server and what happens to the message after that is beyond our control.

  • Nokia 3110 Classic Messages not being sent

    sent messages are being 'saved for sending' in outbox and not being sent. Message details give me a 'failed delivery' report. Any ideas?
    Thanks
    Solved!
    Go to Solution.

    Check if you have the right message centre number.
    Messages sent by your phone are routed through your service provider's message center. Normally, this number is saved to your phone by your service provider. To save the number manually, do the following:
    At the Start screen, press Menu 01-6 (Messages - Message settings).
    "Text messages" is highlighted. Press Select.
    "Sending profile" is highlighted. Press Select.
    "Default profile" is highlighted. Press Select.
    Scroll to "Message centre number" and press Select.
    If the box in the display is empty, enter the number given by your service provider and press OK.
    OR
    If the box in the display is full, edit the number only if you are sure the number is incorrect, or you want to change the number, and press OK.
    A message appears in the display that confirms your number is saved.

  • I have the 4s and my texts are being sent out by my email...not my cell

    I have the 4s and my texts are being sent out by my email...not my cell

    Hi,
    1. Go into Settings
    2. Messages
    3. Send and Receive
    4. Start conversations from > Tap you phone number
    Cheers

Maybe you are looking for