How to test status of email server with utl_smtp package

Hi All,
I plan to use the "maildemo" codesamples here at OTN (with due credit). I have to modify the package such that when I am trying to send an email I should be able to know the success/ failure of the transmission. How can I add this method to the package. How to determine using UTL_SMTP package the status of the mail server.
I understand it returns "ORA-29278: SMTP transient error: 421 Service not available" error message if the mail server is invalid ( to simulate the down condition).
Can anyone help me on this please.
Thanks in advance,
Sudhindra

You can write an exception handler. In the simplest form:
begin
v_conn:= utl_smtp.open_connection(v_smtp_server, 25);
exception
when others then
raise_application_error(-20010,'Not able to connect');
end;
Or you can catch the specific error you are looking for only.

Similar Messages

  • How to Test if an Email Address Exists?

    So we have all been doing email address validation for awhile which I know how to do, but validation only tests if an email address is entered in the right format.  It doesn't verify if an email address actually exists.  I am creating an application  where there will be membership fees, and so an email has to be in more than the right format, I must be positive that it actually exists when the account is created before any money changes hands.  This is critical.  Unfortunately, all of my searching for this relating to Flex or Flash Builder has yielded no results.  Does anyone know of any tutorials or blogs or articles that discuss how to test if an email address entered by a user actually exists using Flex?  or does anyone here have any suggestions on how to approach this problem?
    Thanks!

    The only definitive way is to send the user an e-mail, and have them verify the email address.
    In the past I remember researching options.  Depending on how mail servers were set up; I thought there was some way to ping a mail server and ask if the e-mail address was valid.  This functionality was turned off on most mail servers to prevent spammers from harvesting email addresses.
    Here are some good info on the general approach:
    http://stackoverflow.com/questions/565504/how-to-check-if-an-email-address-exists-without- sending-an-email

  • How can I specify SMTP Email Server userID and password when using Email VIs?

    How can I specify SMTP Email Server userID and password when using Email VIs included in Internet Toolkit?

    Hi,
    A similar question was posted on Discussion Forums soem time back. Please see the link below.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C7B00000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    You would find the last post in the above thread quite useful where it has a link to OpenG code. I am also copying that link for your reference.
    http://www.openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools
    Please feel free to respond to this post with any questions/comments you may have.
    Regards,
    Ankita A.
    National Instruments

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • How can I change the email associated with my forum account?

    How can I change the email associated with my forum account?  I didn't provide my work email to you, but you put it in my account.  My forum postings have nothing to do with my personal PC at home.  There isn't an option to update it.
    This question was solved.
    View Solution.

    Hi:
    Log in and click on your user name, then look at the upper the right side of the page.
    Click on the triangle to the left of the "More Resources" section.
    This will drop down, and give you options.
    Select User Settings.
    This will now open a page, and in the light blue type on top, follow it along to Contact Information, click on that, and change your e-mail address to what you want, and hit the blue submit button on the bottom right side of the page.
    Paul

  • How can I do an email merge with a PDF file?

    How do you do an email merge with a PDF file?

    Read this:
    http://forums.adobe.com/thread/1085319?tstart=0

  • If I open my email server with firefox the autocomplete doesn't work. why?

    If I open my email server with Internet explorer I don't have this problem

    Thank you Alley!
    But still not working.
    I've just bought my Apple TV. I think it is impossible low battery and I tried to hold menu and left, but it didn't response again.
    When I press any buttom, the Apple TV LED doesn't flick. The light is just on... not flickering...
    Thanks again!
    Igor

  • How to test whether AIA got integrated with BRM system successfully

    Is there a procedure to test whether AIA got integrated with BRM system successfully.How can i test whether BRM Adapter is able to connect to BRM system.
    Thanks well in advance
    Santosh

    Hi Santhosh,
    I hope you are using AIA 2.0/2.0.1 for Comms and trying to integrate BRM with Siebel.
    1. To check BRM & Siebel integration using AIA. (BRM is the Product master gets synched with Siebel.)
    a) Create a new Product in BRM pricing center(Provide product name, Service type)
    b) Select Event(Single time purchase event)
    c) Provide rating for the product
    d) Commit after product creation(Check in BPEL process, whether all the instances are went through successfully)
    e) Check Siebel Catalog, whether product got synched from BRM
    2. To check whether BRM Adapter connected to BRM,
    a) Login into Oracle Application server
    b) Select OC4J instance, where your AIA is running
    c) Select Applications
    d) In view drop down select "StandAlone Resource Adapters"
    e) Check the status (green or red) in the installed BRM adapter
    If you haven't deployed BRM Adapter read the installation guide to deploy it.
    Regards,
    Ziaur Rahuman

  • How do create a new email address with my iCloud account

    This may be simple but as usual with these things you usually do it once and never have to do it again!
    I have has my mac mail address @mac.com since idisk was launched and then added a family pack with addresses for my kids and wife and when icloud launched i migrated all the addresses with no problem - but one of my clients wants me to create a new @mac (or @me.com) email address specifically for my invoices to send to there on line accounts system - my question is how do create a new email address for free in icloud - is it possible?
    I remember the family pack gave you additinal options to create up to 5 email adresses?  T
    Thanks in advance - Allister in Scotland UK
    Message was edited by: Allister Gourlay

    Allister Gourlay wrote:
    My client wants me to test there online invoice system that will go online next year when i and a few long terms suppliers will upload our invoices that will match with purchase orders as a test.
    and instead of using my present mac mail email address they want me to use a prefix they have allocated to me
    This is the issue. They are telling you to get a specific email address.
    If this address is already taken, then what?
    Roger thank you that was the info i needed
    FYI: My first post was a link to -> iCloud: Create or change email aliases

  • How Stable is the OSX eMail Server?  Do you Use it, or have you dropped it?

    We used the email server in Panther and it was crap.
    Spam protection was crap, and it was somewhat insecure, so I ended up spending $1,000 a year to maintain it.  We shifted over to a company called Fastmail, which is less hassel, but still $1,000 a year.  I'm wondering do people use the OSX mail server for small office enviornments, and how does it work for you?  Is it ready for prime-time?
    Please let me know your experiences (good and bad)...

    Had a good experience with Panther mail services. Better with Tiger, better still with Leopard and better again with Snow Leopard.
    Your milage will vary depending on what you invest in the tools provided.
    Start by understanding that the server tools provide a fairly basic configuration. To get the most out of them, you'll need to move beyond the GUI
    and edit some configuration files directly. Backing them up first of course (standard practice).
    Learn about the MTA provided - namely, Postfix.
    By learning and understanding Postfix' configuration files and options & abilities,
    you can achieve far far far better rejection of spam. Which is what you want - not to queue the junk mail and waste your server's time & resources on chomping on obvious spam.
    The MDA used to be Cyrus, but as of 10.6 server that's been replaced by Dovecot which - so far - has been very good. More stable overall and better performance. As of 10.4 server there have been zero stability issues but the systems involved were typically serving about 20 users at most. Others have been using OS X Server with far more users, but you have to plan & allocate appropriate resources in terms of your server or servers.
    I used to bother with custom-installing newer versions of amavisd and spamassassin but don't much anymore, I took advantage of Postfix's capabilities and between that and the zen.spamhaus.org RBL, very little spam gets through at all.
    But what are your needs ? Start there. Who will support the product and what is their experience and/or understanding of servers &/or ability & willingness to learn ? Can you afford to have a novice mail/sysadmin ?
    If not, what resources do you have to allocate to ensuring your mailserver is properly configured, monitored and maintained ?
    If you needs are not met by what OS X Server provides, but you really want the underlying OS to be Mac OS X, then look at Kerio Connect.
    If you try working with OS X Server again, then run don't walk and buy the Book of Postfix (it's on my tech bookshelf). http://www.postfix-book.com/
    If you don't have it already I'd also suggest DNS & BIND (O'Reilly Press) by Cricket Liu & Paul Albitz,
    Unix System Administration Handbook (now "Unix & Linux" (etc.)), Essential System Administration (O'Reilly) and while it's "only" for 10.3, be sure to invest in "Essential Mac OS X Panther Server Administration" by Michael Bartosh. There's much in there that's still appropriate and relevant in terms of understanding the architecture(s) of OS X Server and best practices in troubleshooting.

  • How to set up a mail server with a private DNS and relay over a public mail

    How to set up the mail server that we can send and pick up emails inside and outside?
    Our private network has the DNS name dnsname1.private.
    We have our privat DNS Server and he can forward requests to outside over our router.
    Our public emails are hosted by an internet provider. This dns name is dnsname2.com and dnsname2.org.
    How we have to set up our mail server that we can pick up our emails from our public dnsname2.com?
    And when we write an email how we have to set up it that the dnsname is dansname2.com and not dnsname1.private?

    If you want to move your mailservice to your own (internal) server, start by making sure you can recieve traffic on port TCP 25 (SMTP). Some ISPs blocks this port, especially on "non business" connections.
    Can you send mail from your LAN directly to where your mail is hosted using port 25 TCP or do you have to relay via your ISP?
    You have a static public IP?

  • How to pop-up Outlook Email window with To: blank?

    Hi All,
    I currently have a page which shows multiple rows with checkboxes. I have an After Submit process which loops through the rows and stores some values of the checked rows into a variable to be used as the body of an email. I then call apex_mail.send() to send the email.
    Instead of prepopulating a TO: address within the process and have it send automatically, I would like to have Outlook pop-up the email window with the body prepopulated as mentioned above but with the TO: address box null so that the user can select the address from Outlook's Address Book.
    Any help/advice would be greatly appreciated!
    Thanks,
    Jason

    1: Yup.. It would look something like this:
    <a href="mailto:?body=aslkdjldfks">Open Email</a>  the # should read:
    "mailto:?body=aslkdjldfks"
    2: If you go this route, there are a few things you need to remember:
    The mailto tag is client side. So you would have to generate the javascript on the server and print it out on the client.
    If your users do not have Outlook, or another mail client, this will do nothing.
    If you have a really long message body it will not work.
    If you have weird characters you will need to encode these.
    So, if you still think that the mailto is what you need then here is some javascript that will auto open it for you:
    http://www.webmasterworld.com/javascript/3290040.htm

  • How do I change the email associated with my facetime account. For some reason I was notified that the email was switched to an older email that I had and I need to change it back.

    How do I change the email address associated with FaceTime.  I received a notification that it was being changed to an old email address. I want to change it back to my current email.

    Hi there,
    You may find the information in the article below helpful.
    FaceTime for Mac 1.x: Sign in to FaceTime
    http://support.apple.com/kb/PH5645
    -Griff W.

  • How do I change the email associated with my IMac cloud to match all my other devices

    When I set cloud up on my IMAC I was prompted to use an address from apple and two other Ipads and two other I phones use my normal email address all wouk fine.
    How do I change the email address for my I mac/web to the same email I use for all other apple producte I have that use ICloud?

    Welcome to the Apple Community.
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)

  • How can i use an email address with an apostrophe as my apple ID

    I need use a school email address for a new Apple ID but it has an apostrophe, and Apple does not see it as a valid address. How can I use that email?

    Welcome to the Apple Community Juduth.
    If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

Maybe you are looking for

  • File Browser doesn't display when Flex page is opened via showModalDialog IE9 on 64-bit system

    From a html page, we open a flex page using showModalDialog. Once flex page is launched, we have a button to open windows file browser. When you click on the button, windows file browser opens as expected. However, if you use IE 9 on 64-bit machines,

  • Smartforms - Convert to PDF always displying bold, ignoring styles and font

    Hi out there, I'm not new to smartforms. But after creating a new form within a new style I'm not able to design it. But mayby it's designed correctly and only pdf conversion failed? The courios thing is, that sometimes (hleve font is replayced with

  • PO RECEIPT Component Interface (PO_RECEIPT_CI)

    I am trying to use the default PO_RECEIPT_CI to create a new receipt from a 3rd party application. I have successfully setup the web service and I am able to send messages and get responses. However, when I try to create what seems to be a simple rec

  • Missing THX button in creative cons

    I have the X-Fi xtrememusic card with a set of z5500's and the latest drivers installed, but the THX button is missing in the console launcher. In other words, I'm missing teh THX console. How do I get it to appear?

  • Can't turn off Hand tool

    I was working on 2 different illustrator documents and combined them into one, stepped away for a while and came back to not being able to remove the hand tool no matter what tool I click on. I noticed in the title bar that in parens it reads (cmyk/p