Cannot send email using PL/SQL through Enterprise Manager 10g

Hi
I need to schedule a job that sends email periodically. I am using the scheduler in Oracle Enterprise Manager 10g for this. For sending the email, I am creating a PL/SQL job. The code is as follows:
PROCEDURE send_test_message
IS
mailhost := 'iwblrcormsg001.sci.local';
sender := '[email protected]';
recipient := '[email protected]';
mail_conn utl_smtp.connection;
BEGIN
mail_conn := utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, sender);
utl_smtp.rcpt(mail_conn, recipient);
utl_smtp.open_data(mail_conn);
utl_smtp.write_data(mail_conn, 'This is a test message.' || chr(13));
utl_smtp.write_data(mail_conn, 'This is line 2.' || chr(13));
utl_smtp.close_data(mail_conn);
utl_smtp.quit(mail_conn);
END;
I have setup the smtp server and received a test email from the EM notifying me of successful configuration. When the above job is run, the scheduler shows status as successful. If I go to the command step, it displays the following output:
Output Log
SQL*Plus: Release 10.1.0.2.0 - Production on Thu Feb 19 19:04:29 2009
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> SQL> SQL> SQL> Connected.
SQL> SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Disconnected from Personal Oracle Database 10g Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Now, the only issue is that I do not receive any email at the address specified! I would be very grateful if someone could point out the error here.

I would use APEX4.0 for this.
Create an interactive report based on your data. Add a chart to that report and use the NOTIFY feature to send you the email.

Similar Messages

  • Cannot send email using Gmail after iOS 5

    Since updating to iOS 5, I cannot send email from my Gmail account on my iPhone. I receive email fine, but when trying to send I get the error:
    Cannot Send Mail
    Check the settings for the outgoing servers in Settings > Mail, Contacts, Calendars
    I have erased my Gmail account and re-set it up numerous times, and restarted my phone in between doing so. The wizard works perfectly fine, my password is accepted, and like I mentioned email comes in perfectly. I do not have this problem sending mail from iCloud on the same phone.
    One thing I did do is attempt setting Gmail up as an Exchange account so that I could use push, but it killed my battery so I erased it. This might have been when the problem began but I'm not positive.

    I'm not sure what exactly I did that finally fixed it, but I erased my iCloud and Gmail accounts, restarted the phone, and added Gmail first. But I removed Gmail so many times who knows what actually did it.

  • IPhone cannot send email using Yahoo account. iPhone no envia correo Yahoo.

    Hi Everyone,
    I just got my iPhone from Movistar Venezuela and I've found I'm unable to send email using my Yahoo account. However, I can receive Yahoo email just fine (paid $20 for Mail Plus subscription), my GMail account can send and receive perfectly, and I can go surfin' Safari with no problems too.
    The error message I get is "Cannot send mail: an error occurred while delivering this message". I called Movistar Customer Support and they said everything was fine on their end...
    In typical Apple fashion, the error message is so simple I have no idea where the problem is. Does anyone know how can I get more information and how to solve this annoying problem? My Yahoo account is actually my primary account...
    Thanks in advance!
    Saludos a todos,
    Acabo de comprarme un iPhone de Movistar en Venezuela y me encuentro sin poder enviar emails con mi cuenta Yahoo. Sin embargo, si puedo recibir correo Yahoo bien (pague $20 por mi suscripcion a Mail Plus), mi cuenta de GMail si puede enviar y recibir email sin problema y puedo navergar con Safari sin ningun problema.
    El mensaje de error que recibo es el siguiente": "No se puede enviar correo: se ha producido un error al enviar el mensaje". Llame a Atencion al Cliente de Movistar y me dijeron que no habia ningun problema con mi linea o con su servicio de datos...
    Como tipica cosa Apple, el mensaje de error es tan simple que no tengo NI IDEA de cual es el problema. Alguien mas ha sufrido este problema? Sabe alguien como puedo obtener mas informacion de este error y como solucionarlo? Lamentablemente, mi cuenta Yahoo es mi correo principal...
    Gracias de antemano!

    Creo que resolvi el problema, temporalmente.
    1) Borra tu cuenta
    2) Vuelvela a crear
    3) Ve a Ajustes
    4) Ve a Mail Contactos Calendarios
    5) Ve a la cuenta problematica
    6) Ve a SMTP
    7) Anadir nuevo
    8)
    Nombre servidor: smtp.mail.yahoo.com
    Nombre de usuario: no dejar vacio
    Contrasena: no dejar vacio
    Usar SSL: si
    Autenticacion: Contrasena
    Puerto del Servidor: 25
    Lo consegui de aqui: http://www.emailaddressmanager.com/tips/mail-settings.html
    Dime que tal te funciona.
    I think I solved the issue, temporarily at least
    1) Delete account
    2) Create again
    3) Go to settings
    4) Go to Mail, Contacts, Calendars
    5) Open problematic account
    6) Go to SMTP
    7) Add a new server
    8)
    Name: smtp.mail.yahoo.com
    User name: do not leave blank
    Password: do not leave blank
    SSL: Yes
    Autentication: Password
    Port: 25
    I got this info from: http://www.emailaddressmanager.com/tips/mail-settings.html
    Let me know how this works

  • Cannot send email using port 465 from a network other than my ISP

    I cannot send email from my ISP POP mail account when I am in a different network (e.g. when traveling). This happens with my iPad and my iPhone. However, I can send mail if I turn off wifi and use 3G. The outgoing port is 465.
    Using my .mac account I don't have any problems sending mail using wifi or 3G.
    I have tried adding smtp.mac.com or smtp.me.com as a secondary server to my POP account but it does not work. The secondary server disappears after I add it.

    Contact your isp and ask them what the smtp settings are for when you are traveling. Most isps have different settings for sending email when off their network.

  • Cannot send emails using 5800 xpressmusic s/w vers...

    Not able to send emails using 5800 xpressmusic
    S/W Version: 11.0.008
    Custom S/w Version: 11.0.008.red.01
    Version Date: 09-12-2008
    I configured two email accounts but not able to send emails.
    I also cannot see the missed call list. If i recieve a mssed call, it shows 1 missed call. When i click on Open it says no missed calls....
    Please please help me............

    You must use mail.btinternet.com for outgoing server.  You can retain your old incoming server for your own domain, but must use the BT one for any @btinternet accounts.
    The following is my understanding based on use of the BT Yahoo mail service since September 2013.  New users may be using the new BT mail portal - I don't know how this differs.
    The BT outgoing server will block any outgoing mail sent from unauthorised accounts.  This includes those in your own domain.  The fix for this (as I understood it) is to add these accounts as sub-accounts to a primary BT mail account.  The server will then relay them.  The mail portal has an Options dialogue that lets the user manage mail accounts.  Set up another account for each [email protected]
    In Outlook, your domain accounts will need to set outgoing server to mail.btinternet.com and to authenticate using your @btinternet.com credentials.

  • Since upgrading my computer last week i cannot send emails using talktalk, i can send via ipad and phone so not the server

    Since upgrading my system i have been unable to send emails using talktalk although i can receive them  i have no problem sending them via ipad or phone. can any one help please

    Open Mail -> Preferences -> Accounts.  Select the TalkTalk account and then the 'Account Information' tab. Drop down the 'Outgoing Mail Server (SMTP)' menu and select 'Edit SMTP Server List'.  Ensure that 'Server Name' under 'Account Information' is set to "smtp.talktalk.net".  You may also need to configure settings under the 'Advanced' tab. 
    More info here:
    http://help.talktalk.co.uk/app/answers/detail/a_id/1668/~/what-are-talktalk's-em ail-settings%3F#TalkTalk

  • Cannot send email using SharePoint designer 2013 workflow

    I am having a problem which I see many others have also posted about.  However, I don't find that any of their solutions fixes my problem.
    Using SharePoint 2013 on Windows 2008 R2 server.  SQL 2008 R2 on separate server.  Created a pretty simple workflow that calls for an email to be sent.  Created an Infopath form that is published to a SharePoint list.  One of the
    list fields is called "Approver" and is a people lookup field.  The workflow assigns an approver based on certain criteria in the list, and then sends an email to the assigned approver.
    During the testing phase of creating the workflow, I had the email sent to me specifically and I received the emails with no problems.  When I change the email recipient to Current Item:Approver (who is also me), I don't receive the email.  I have
    tried selecting Display Name, Email Address, and Login Name, but none work.  I also tried to send the email to the current item:creator (which was me) by selecting "User who created current item" from the select users dialog.  This also
    doesn't work.  The workflow is shown in a suspended state in the Workflow status screen.
    For informational purposes, I also included the Approver Display Name, the Approver Email Address and the Approver Login Name in the body of the email so that I could see what those fields actually returned as data.  The display name, and email address
    are correct, but the login name returned i:0#.w|domain\login (domain and login were my actual domain and login name).
    I have tried several of the fixes I found online to resolve this, but none have worked. Any help is appreciated.

    I don't see that it is possible to add CurrentItem:Creator to a list view.  The CurrentItem:CreatedBy returns my name as it should.  However, this does not help with my problem.  I don't want the email to come to me.  I want it to go
    to the CurrentItem:Approver.  This is a specific person who is assigned by the workflow based on various fields in the current item.  The approver is assigned, then an email is sent to the assigned person.
    There is a SharePoint group set up for Approvers.  This is used to assign permissions to the site where this list is created.
    Basically, I can't send an email to any recipient where I am using the current item lookup fields to populate the To: field.  I can only send email if I specifically select a person by name.

  • Sending email using PL/SQL based on a query result

    Hello all,
    I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
    I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
    select Acct_id, total from SourceTableA
    minus
    select Acct_id, total from TargetTableA
    select Acct_id, sum from SourceTableB
    minus
    select Acct_id, sum from TargetTableB
    If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
    I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
    Khan

    Actually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.

  • How to send email using pl/sql containing the result set as the msg body

    Hi.. im using Pl/SQL code to send emails to the users from a dataset that is obtained in a databse table. i have used utl_smtp commands to establish the connection with the smtp mail server. im stuck at the logic when i have to include the message body which is actually the result set of a table.. For instance
    IF (p_message = 0) THEN
    UTL_SMTP.write_data(l_mail_conn, 'There is no mismatch between the codes' || UTL_TCP.crlf);
    ELSE
    UTL_SMTP.write_data(l_mail_conn, 'The missing codes are ' || UTL_TCP.crlf);
    for s in (select * from temp)
    loop
    UTL_SMTP.write_data(l_mail_conn, ' ' ||s || UTL_TCP.crlf);
    end loop;
    END IF;
    UTL_SMTP.close_data(l_mail_conn);
    UTL_SMTP.quit(l_mail_conn);
    END;
    ***p_message is a prameter passed to this procedure..
    Can i obtain the result in the form i have it in my table. which has three columns. I want to display the three columns as it is with teh records. ?

    this is not related about this forum but you can use below,
    CREATE OR REPLACE PROCEDURE SEND_MAIL (subject varchar2,mail_from varchar2, mail_to varchar2,mail_msg varchar2)
    IS
    mail_host varchar2(30):='XXXXX';
    mail_conn utl_smtp.connection;
    tz_offset number:=0;
    str varchar2(32000);
    BEGIN
    begin
    select to_number(replace(dbtimezone,':00'))/24 into tz_offset from dual;
    exception
    when others then
    null;
    end;
    mail_conn:=utl_smtp.open_connection(mail_host, 25);
    utl_smtp.helo(mail_conn,mail_host);
    utl_smtp.mail(mail_conn,'[email protected]');
    utl_smtp.rcpt(mail_conn,mail_to);
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn,'Date: '||to_char(sysdate-tz_offset,'dd mon yy hh24:mi:ss')||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,'From: '|| mail_from ||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,'To: "'|| mail_to ||'" <'||mail_to||'>'||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,'Subject: '||subject||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,replace_turkish_chars(mail_msg)||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn,utl_tcp.crlf);
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    END;
    Edited by: odilibrary.com on Jun 12, 2012 5:26 PM

  • Send Email using Execute SQL Task??????

    I need to send the bad records in the data flow.  I am attempting to do this using Execute SQL Tasks.  Please give me steps I need to accomplish this.  I have not set any variables up yet, assuming I need too.

    Just add a Send mail Task (or Script Task if using gmail etc which requires authentication) and pass the file as an attachment. Make sure you've a step (Script Task) to check if file length > 0 (ie file has records) before you link it to Send mail Task
    ie use a conditional precedence constraint (Expression And Constraint option)
    See these links for more details
    http://dwteam.in/send-mail-in-ssis-using-gmail/
    http://www.mssqltips.com/sqlservertip/1753/sending-html-formatted-email-in-sql-server-using-the-ssis-script-task/
    https://www.simple-talk.com/sql/ssis/working-with-precedence-constraints-in-sql-server-integration-services/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Cannot send email using mac mail and yahoo att

    I recently was hacked and changed my att yahoo password and security questions. I got a confirmation email about this but not about changing the password. I can receive mail, but not send any. All my settings in preferences seem to be correct. The TLS certificate is not check however, and I'm wondering if that has something to do with it. The port number has not been changed, nor the outgoing service address: which is:  smtp.att.yahoo.com: (followed by my email account name). I've had this email address for years and want to keep using it. apparently Yahoo has been having allot of problems over the last few days and I've found it hard to access their trouble shooting sites and log in page. Is there something I can do on my end to fix this? Thanks.

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • Cannot send email using SMTP

    Hi,
    For the last three days I have been unable to send any email via outlook using the SMTP server (mail.btinternet.com). I get repeated requests to enter my network password, but it is not accepted. The password is correct (I have tried retyping it numerous times) and I can still log into webmail using it. This problem occured on both my computers simutaneously and without any changes being made, so it is not setting related. I have tried creating the account again, but it fails due to this issue. Incoming mail is unaffected.
    Please could someone offer some help? Is there a known issue as I am unable to find anything to suggest there is on the BT service status page?
    Andy

    Hi bernies41802,
    Thanks for posting.
    Sorry for the problems you're having.  Has your email address been migrated to the new BT Mail platform?  You can check here - Check which BT email service you are using
    If it shows on the new BT Mail platform double check your settings are correct here - BT Mail: What are the settings for outgoing and incoming mail servers?
    Post back and let me know how you get on.
    All the best,
    Robbie
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • I cannot send emails using "Compose" since verizon changed the email format

    Ever since verizon changed to the new view format, when I click "COMPOSE" it won't allow me to enter the message part of the box. I can enter the "TO" and the "SUBJECT" of the email but cannot enter the "MESSAGE"???
    When I call for a tech, I notice that the above box "B I U etc etc appears but it does not appear in my format.
    {edited for privacy}

    I have used the new format successfully (yesterday) under IE 8, Firefox 3.6.13, and Google Chrome. So I cannot reproduce your problem. But a few thoughts:
    1) It is possible that some add-on that you are using with your browser might be causing the issue. Are you using any add-ons? If so, you might try starting the browser without any add-ons to see if the problem persists.
    2) Do you have javascript disabled in your browser?
    3) Have you tried a different browser? Might be worth a try.
    Beyond the above I really can't imagine what could be causing the problem. As prisaz asked, what browser are you using?
    Justin
    Verizon FiOS TV, Internet, and phone
    QIP6416-P1, IMG 1.8, Build 02.54
    Keller, TX 76248

  • Cannot send email using gmail account

    Within the last month or so, sending mail from my gmail id in Thunderbird fails. Receiving works fine. I'm running windows 7 on a desktop.
    Status says - 'connected to smtp.gmail.com...'
    Error message is - 'Sending of message failed. The message could not be sent because the connection to SMTP server smtp.gmail.com timed out. Try again or contact your network administrator.'
    Server settings are:
    Server type - pop mail server
    Server name - smtp.gmail.com
    port - 995
    connection security - ssl/tls
    authentication method - normal password
    outgoing server settings - for my id - I have smtp.gmail.com

    Not sure why you have port 995. That is the Inbound port for POP email server. Last time I checked the SMTP ports are 587 or 465.

  • Cannot send email in mail app. using POP account with Wi-Fi

    I recently moved to an apartment that only has wireless internet access. Since moving I cannot send email using my POP account, although I can receive email. I was also not able to receive email using my .mac account, but I learned through this forum to change server port to 587 in .mac account and now I can send via .mac account in mail app. But I still cannot sent email with mail app. using my POP account. I changed no settings when I moved, and have never had this problem with cable. Any suggestions?

    It all depends on the policy of whoever is the ISP at your new location and the method used by the outgoing (SMTP) server to determine whether you’re a legitimate user.
    In an attempt to fight spam, many ISPs restrict the ability to send using an outgoing (SMTP) server not owned by them, usually by blocking port 25 for all traffic outside their own network, which means you cannot send with an SMTP server not owned by them if configured to use that port number. And it may happen the other way around as well, i.e. the outgoing server itself may look at the IP address you’re connecting from and refuse the connection if you’re outside its own network.
    Something that often works is changing the outgoing server port to 587 (or whatever alternate port number the outgoing server listens to) instead of 25 and using some form of authentication in Preferences > Accounts > Account Information > Outgoing Mail Server > Server Settings, but two conditions must be satisfied for this change to work: (1) the ISP must not block that port as well AND (2) the outgoing server in question must listen to that port and accept a form of authentication not based on the IP address you’re connecting from.
    Independent mail service providers not tied to a particular ISP, such as .Mac and Gmail, do allow authenticated SMTP access on port 587, which is the reason changing the outgoing server port number solves the problem for them if the ISP doesn’t block that port as well.
    The following article, for example, describes several ways to address this issue in the case of .Mac, but can be useful for other mail accounts as well (not just .Mac), and applies to all versions of Mac OS X (not just Mac OS X 10.4.2 and earlier as the article states):
    .Mac: Server timeout alert message when sending email

Maybe you are looking for

  • How do I set up my printer dialog in Quark 6 to make an Acrobat .ps file?

    Before I re-installed all of my system and application software, I would simply go to the Print dialog in Quark (6.5) and choose Adobe PDF and make a .ps file which I would then distill. I can't figure out where the Postsctipt file is now or how to a

  • Is it possible to burn music folders on to an mp3 cd?

    I have 6 music albums that I would like to burn on to a CD as MP3 files, is it possible to burn the 6 albums in 6 folders and not just all the songs. I would like to have the songs from each albums in their seperate folders and not 60 songs from 1-60

  • Problem call subscription

    I have 60 min subscription/month in 3 month.nr xxxxxxxxx.Calls to Sweden.I have 40 min left,but i can not call.I try make new subscription,Skype answer you already have,you have 40 min more?My skypename is hduffe

  • Slow Computer makes photoshop slow

    how to make my photshop application fast few days ago it was working good but now its performance is slow and my computers speed is also slow. How to fix it?

  • Why is the Find command in Notes always disabled?

    I would like to be able to locate text inside of notes in the Mac OS X version of Notes. The Find, Find Next, Find Previous, and Find Selected Text commands all exist in the Edit>Find sub-menu but they're always disabled. Is there something wrong wit