Utl_smtp verify

Does anyone know how to verify if an e-mail has been delivered using the utl_smtp package??

Delivery verification isn't part of the SMTP standard-- some email clients like Outlook will have a proprietary header that will ask the client to verify receipt, but I don't see how that response could get back to Oracle. If you were to restrict yourself to a particular email client for the recipient and the from address in your message, and you set the appropriate header, you might be able to get a delivery acknowledgement send to the account listed in the From address, but not back to the application calling utl_smtp.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Sending email to multiple address using Utl_Smtp

    Hi,
    I want to send email to multiple address using the Utl_Smtp feature.
    When I am sending email to one email address in the To:Field it works fine.However, when I send
    to multiple address I am getting the below error.I am using a table(Email_test) to store all email id.
    Error report:
    ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at line 48
    29279. 00000 - "SMTP permanent error: %s"
    *Cause:    A SMTP permanent error occurred.
    *Action:   Correct the error and retry the SMTP operation.
    I am trying two options both ways I am getting error
    Option 1:
    Selecting two email id indivually in the select query as below
    select email into v_Recipient1 from Email_test where Key_name='U1';
    select email into v_Recipient2 from Email_test where Key_name='U2';
    v_Recipient := v_Recipient1||';'||v_Recipient2;
    Option 2:
    Is there a way to use option
    select email into v_Recipient1 from Email_test where Key_name='U4';
    ===========================================================
    Create table Script
    ===========================================================
    create table Email_test (Email varchar2(100),Key_name varchar2(10));
    insert into Email_test values ('[email protected]','U1');
    insert into Email_test values ('[email protected]','U2');
    insert into Email_test values ('[email protected]','U3')
    insert into Email_test values ('[email protected];[email protected];[email protected]','U4');
    select * from Email_test
    [email protected]                         U1
    [email protected]                         U2
    [email protected]                         U3
    [email protected];[email protected];[email protected]     U4
    select * from Email_test where Key_name in ('U1','U2','U3')
    [email protected]     U1
    [email protected]     U2
    [email protected]     U3
    select * from Email_test where Key_name='U4'
    [email protected];[email protected];[email protected]
    =======================================================
    PL/SQL Block
    ===========================================================
    declare
    v_From VARCHAR2(80) := '[email protected]';
    v_cc VARCHAR2(80);
    v_Recipient VARCHAR2(80) ;
    v_Recipient1 VARCHAR2(80) ;
    v_Recipient2 VARCHAR2(80) ;
    v_Subject VARCHAR2(80);
    v_Mail_Host VARCHAR2(50);
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    begin
    --Mail Host name
    select VALUE into v_Mail_Host from Server_info where server_name = 'SMTPServer';
    select email into v_Recipient1 from Email_test where Key_name='U1';
    select email into v_Recipient2 from Email_test where Key_name='U2';
    v_Recipient := v_Recipient1||';'||v_Recipient2;
    --for CC
    select email into v_cc from Email_test where Key_name='U3';
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Rcpt(v_Mail_Conn, v_cc); -- To CC recepient
    utl_smtp.Rcpt(v_Mail_Conn, v_BCC); To BCC recepient
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'Cc: ' || v_cc || crlf ||
    'Content-Type: text/html;' ||crlf ||
    --'Hello this is a test email');
    crlf || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf );
    utl_smtp.Quit(v_mail_conn);
    end;
    Any suggestion how to approach this issue.
    Thank you

    Simple Mail Transfer Protocol RFC 5321 specifications.
          RCPT TO:<forward-path> [ SP <rcpt-parameters> ] <CRLF>
       The first or only argument to this command includes a forward-path
       (normally a mailbox and domain, always surrounded by "&gt;" and "&lt;"
       brackets) identifying one recipient.In other words, you can only define a SINGLE mailbox address at a time. Multiple addresses requires multiple repeats of this command verb, once per maibox.
    Do not confuse this and the To: tag line in the Mime header that contains a comma delimited list of recipients. That tag line can contain anything - it is not parsed, not checked, and not verified as matching the actual recipient mailboxes as specified via the RCPT TO verb.

  • Utl_smtp issue?

    Hi,
    I am using the following source for mailing.
    http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/maildemo_sql.txt
    and i write a code like below to send the mail using the above package(demo_mail) and i using the oracle 9i
    Declare
    Send varchar2(50) := '"Automail" <[email protected]>';
    rcpt varchar2(50) := '"systems" <[email protected]>';
    sub  varchar2(50) := 'MSMEDA';
    mtyp varchar2(50) := 'multipart/mixed';
    prty pls_integer := 1;
    d varchar2(50) := 'Hello world';
    c utl_smtp.connection;
    Begin
    c := demo_mail.begin_mail(send,rcpt,sub,mtyp,prty);
    demo_mail.begin_attachment(c,mtyp,true,'c:/kernel.txt',f);
    demo_mail.End_attachment(c,true);
    demo_mail.End_mail(c);
    end;but i getting following error
    Declare
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 550 Sender verify failed
    ORA-06512: at "SYS.UTL_SMTP", line 17
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "ACCL.DEMO_MAIL", line 262
    ORA-06512: at "ACCL.DEMO_MAIL", line 119
    ORA-06512: at line 10 please help to solve this issue.
    thx
    kanish

    Hi,
    You seem to face smtp configuration problem.
    Please check the below link where Tom has explained similar errors.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:255615160805
    Hope it helps you,
    Twinkle

  • UTL_SMTP.vrfy()

    I have written a procedure that uses UTL_SMTP to send the emails. I want to verify the recipient address and am using the verfy() as below:
    v_destination :=utl_smtp.vrfy(mail_conn, recipient);
    I have given v_destination as VARCHAR2(500).
    It shows errors "statement ignored, wrong expression".
    Does anybody know how to use this function or is there an alternative way to check the status of emails?
    Thanks
    Amit
    null

    when you execute the program it would error out if the sender\recipient address is not available in the server.
    Regards,
    Bhagat

  • UTL_SMTP: error 421

    I have a PL/SQL block that repeatedly calls UTL_SMTP in a loop, basically e-mailing a group of addressees. The first send works fine (the message arriving successfully), but on the second and subsequent calls error 421 is raised by UTL_SMTP.HELO . My first and only guess was that messages were being sent too quickly for the mail server to process, so I inserted a 'sleep' of about five seconds between messages, but that didn't work.
    I am using CLOSE_DATA and QUIT at the end of each iteration.
    Many thanks,
    Andrew Hunter

    I have done something similar with UTL_SMTP without any problem, so there must be something funny going on.
    According to the 421 means the SMTP server is down. You can check whether this is the case by inserting noop() immediately after open_connection(). If the server is available it will return 250 (use DBMS_OUTPUT to verify).
    Which prompts me to ask the question "Do you have the open_connection() call in your loop?"
    Otherwise you may have to post your code.
    Incidentally, there is a fabulously featured mail demo package available from the OTN sample code archive which is really cool - attachments, HTML, the works. If you want a good e-mail package I recommend you use this (unless you are coding your own package for the sheer intellectual challenge).
    Cheers, APC

  • Message errore when use UTL_SMTP

    when try to send mail from a form i have this error :
    ERROR at line 1:
    ORA-20001: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 83
    ORA-06512: at "SYS.UTL_SMTP", line 356
    ORA-06512: at "SYS.EM1", line 50
    ORA-06512: at line 1
    what kind of error is ?
    thank's for a replay!

    This error is comming from your SMTP mail server and is being propogated into the UTL_SMTP package.
    Typically this error indicates that you are not using the correct email server name in the UTL_SMTP.OPEN_CONNECTION() call.
    Verify that email server is accessable with the address give, if not correct that.

  • UTL_SMTP:OPEN_CONNECTION

    I'm trying to use the UTL_SMTP:OPEN_CONNECTION statment within PL/SQL to send email. I don't get any errors back on the statement but it's not executing the open statement. I'm sure the server and port number are correct. I can use telnet and execute the helo, sender, etc commands with no problem. I'm running on a Windows 2000 server and the code looks identical to the examples provided. I've verified JAVA is loaded but I'm at a complete loss at this point. Any thoughts or suggestions would be greatly welcome.

    For Oracle 8i, it seems like the Java classes required for the PL/SQL packages are not loaded in some situations during the creation of Oracle database instance. Note that JServer option is required in order for the package to work. If the user has chosen JServer option during the creation of the database instance, he can do the following to load the class to SYS schema:
    cd $ORACLE_HOME/plsql/jlib
    loadjava -user sys/<sys's password> plsql.jarSYS's original password is "change_on_install" if the user hasn't changed the password yet.

  • Maildemo example using UTL_SMTP

    Hi,
    I tried the maildemo example in your PL/SQL sample code page and I am getting the error : 421-Service not available. Can you help me solve this problem?
    I am using the same smtp host address as in my outlook express? Is there any parameter to specify my username and password while sending and receiving mails using UTL_SMTP?
    Thanx
    Jayashree

    Hi Jayashree,
    We suppose you are working with the PL/SQL Package that comes with maildemo.sql available at the following location:
    http://otn.oracle.com/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    We were successfull in sending a small email using the "mail" procedure in the PL/SQL Package created by the above SQL using the following command:
    Execute demo_mail.mail('[email protected]','[email protected]','test subject','test message');
    Can you please verify the following in your code:
    1. You have modified the following with respect to your System before running the SQL file:
    smtp_host VARCHAR2(256) := smtp-server.some-company.com';
    smtp_port PLS_INTEGER := 25;
    smtp_domain VARCHAR2(256) := 'some-company.com';
    2. We were successfull in sending a small email using the "mail" procedure in the Package. Can you let us know, while executing which procedure you are getting the "421-Service not available" exception?
    Hope it helps
    Shefali

  • I cannot receive email properly now. When I open mail, it says that is downloading about 1,700 emails. At the very end, it gives me my newest ones. But this takes a long time. I've contacted the Internet service provider and verified all the right setting

    I cannot receive email properly on either my IPad or my IPhone. I have had them for over a year and they have always worked fine. Until three days ago, when they both started acting up. On the IPad, when I open mail, it says it is downloading about 1,700 emails. At the very end, which takes quite a while to get to, I finally get the most recent ones. The IPad is sending emails just fine.
    On my IPhone, when I open mail, it says it is downloading 100 emails, but it doesn't do that. And it gives me no new emails at all. The IPhone is sending email just fine.
    I have already deleted the email accounts on both devices and reinstalled them. I've contacted the Internet service provider and verified all the right settings. The Outlook email on my desktop is working perfectly.

    WMV is a heavily-compressed format/CODEC, and the processing time will depend on several factors:
    Your CPU, which is not that powerful in your case
    Your I/O sub-system, which is likely a single HDD on your laptop
    The source footage. What is your source footage?
    Any Effects added to that footage. Do you have any Effects?
    Each of those will have an impact on the time required.
    The trial has only one main limitation - the watermark. Now, there are some components, that have to be activated, but are not with the trial, but they would be evident with Import of your source footage, if it's an issue.
    Good luck,
    Hunt

  • I had Microsoft Office installed in my Macbook Air by one of the technicians in the store, it was working fine the first week but after that it started popping a notice saying it cannot verify my suscription online and now I cannot open any documents?

    I just bought a Macbook Air almost a month now. When I bought it, the technician installed Microsoft Office 365 as they were having a promotion at the time. However after a week of using it, it started popping up a notice saying that it cannot verify Microsoft Office. I still managed to open the word document but as of today, it will not open. I took it to the Mac store last week, and they said that there was nothing wrong with it and they could not figure out any problem.
    I don't know what to do and I am in desperate need of help. I cannot open my documents at all and I have my research paper that I need to finish writing. This is very disappointing and extremely stressful for me. If anyone has any suggestions of how this can be fixed, please let me know. I do not want to lose my hard work =(

    Microsoft Office 365 is a subscription - based service. You have to pay for it... and keep paying for it... and paying for it... as in 365 days a year... or lose your hard work.
    Office Home Premium is a mere $10 a month, but a convenient annual subscription is only $100 a year. This is a substantial discount to Microsoft's Office 365 business products ($150 / employee / year).
    Such a deal! Are you not absolutely thrilled?
    Here are some slightly more reasonable alternatives, all of which are compatible with their Office equivalents:
    LibreOffice (donation-supported)
    NeoOffice ($10 but older version is free if you can find it)
    OpenOffice (completely free)
    Numbers ($19.99)
    Pages ($19.99)

  • I am trying to change or add the email address which is attached to my itunes account. I keep getting a notice saying email address is already verified for another Apple ID. Im sure its one of my devices. How can I get my current email address added?

    My itunes account is attached to an email account that I no longer have and cannot retrieve. I have been having trouble with purchases made to my itunes account and want to view my purchases. The support center said that they would email me the purchase history. However, I don't have that email address. When I go to change my email address to my current one, I get a message in red saying that "the email address is already verified for another Apple I.D." I'm sure it is one of my devices as we have 4 ipods and 2 iphones. How can I get my account to use my current email address? If one of my devices was registered using my current email address as it apparently was, do I need to figure out which device that is and remove the email address from that account? I'm so confused. I just want ALL my devices to use my current email address. I need to replace the old email address with my current one. How do I do that?
    thanks for any assistance.

    Your best bet would be to try resetting the password to the account that you would like to use via iForgot
    Once you log in to that account change the email address to anything, it can even be fake its just a placeholder
    After you do that you will be free to change your old email address on your appleID to the new one that is now free to be used as it is no longer attached to the other account.

  • How can I verify my iCloud account when my email account was deleted?

    Hello,
    I would like to know how to verify my iCloud account after it being "not verified".Also, my previous email was deleted and it asks me to check my email in order to verify the iCloud account. I am worried that if I delete my iCloud account and create a new one, all my data will be wiped out and I will not be able to transfer important data among multiple devices.
    Please find a solution for this problem,
    Thank you!

    But I can't complete the verification because it asks me to check my email (which was deleted)
    But I have an idea! Do you suppose I can reset my iPod touch to default>Have all my data on iTunes/folders>Set iPod touch as a new device> Create a new account with my fresh email>Connect to iTunes>Back up!
    Reply if you think this would work so I can actually do it
    Thank you

  • How can I verify my iCloud account if I can not access the primary email account associated with my Apple ID?

    The email address I had set for my Apple ID when I had originally signed up was through my college.  I have been out of college now for a few years and the email account has been deleted. I was trying to set up iCloud on my iPad and iPhone but it says I need to access the account to verify through email.  I have tried to change my Apple ID email to my current email address but it tells me I can not do this either because that email is set up as my rescue email.  How can I change my primary email address for my Apple ID or get my iCloud verified in this situation I'm in?

    Go to http://appleid.apple.com and click 'Manage your account'. You will be able to change the non-Apple email address you use as a login. You will then need to log out and in again on all your devices.

  • Getting error while opening a saved for later notification: The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action.

    Hi All,
    While opening a saved for later notification, we are getting "The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action". error.
    This is a custom notification.
    Please help.
    Thanks
    Raghava

    HI All,
    Please help on this issue.
    Thanks
    Raghava

  • Getting error while creating a new web app saying "The password supplied with the username domainname\username was not correct. Verify that it was entered correctly and try again"

    Hi ,
    I am trying to create a new web app using Central Administration in Sharepoint 2010 and getting an error "The password supplied with the username  was not correct. Verify that it was entered correctly and try again".
    I tried running this command also "stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>" but when it got executed it showed me "Access Denied".
    What should i do ??
    Thanks in advance.
    Regards, Anurag

    HI,
    right click on command icon and click run as administrator then use above stsadm commend to update credential. If still you face same issue then try with powershell as mention in below link: (make sure that you open sharepoint powershell as run as administrator)
    http://smartrider.wordpress.com/2010/07/15/powershell-script-to-create-web-application-and-site-collection-in-sharepoint-2010/
    let us know your result
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

Maybe you are looking for