Cannot send mail with UTL_SMTP

Hello

I use utl_smtp package to send mail. Instance-based local data I can send mails to my desktop e-mail id (that is configured in outlook).

But I need to send an e-mail to e-mail for the customer domain id, it does not work... It shows the error:

ORA-20000: cannot send an e-mail: ORA-29278: SMTP temporary error: 421 Service not available

I got the port number and ip address of our DBAs.

The code is:

DECLARE

v_from VARCHAR2 (80): = ' [email protected] ';

v_recipient VARCHAR2 (80): = ' [email protected] ';

v_subject VARCHAR2 (80): = "test subject";

v_mail_host VARCHAR2 (30): = "192.165.22.30";

v_mail_conn UTL_SMTP.connection;

CRLF VARCHAR2 (2): = CHR (13) | CHR (10);

BEGIN

v_mail_conn: = UTL_SMTP.open_connection (v_mail_host, 21443);

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. DATA (v_mail_conn,

' Date: '

|| To_char (SYSDATE, ' Dy, hh24:mi:ss DD month YYYY ")

|| CRLF

|| "To:

|| v_from

|| CRLF

|| "Subject:"

|| v_subject

|| CRLF

|| « À : »

|| v_recipient

|| CRLF

|| CRLF

|| "user name:'"

|| ' '

|| CRLF

||                                           -Body of the message

"pwd: '"

|| ''

|| CRLF

);

UTL_SMTP. Quit (v_mail_conn);

EXCEPTION

WHEN UTL_SMTP.transient_error OR UTL_SMTP.permanent_error

THEN

raise_application_error (-20000, "cannot send an email: ' |") SQLERRM);

END;

/

What could be the problem to get this error.

Please help me go further...

Thank you

lucky.

In fact, it is even clearer:

"talk to your network or SA guys, you don't have a Server SMTP configuration to the place you want.

to get to.  You should ask them "so, what is the good name and port number for me to use for the host.

send email via SMTP from this server? » »

http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:255615160805 #53465173227894

and if you ctrl + f for 421 on this page, you will get more explanations.

It is not a problem in the database.

Tags: Database

Similar Questions

  • Cannot send mail with windows mail. Get the pop-up Windows security.

    Cannot send mail with Windows Mail. Get the pop-up Windows security.

    Password and username are all correct. POP and SMTP everything is correct. If I remove all virus blocker, always get Windows security pop up asking for password and username; I type in it and click on the option to remember, but the window appears several times without sending a message. Error message box is empty.
    No problem on the end of e-mail servers. Equipped with Windows Vista.
    I deleted the Windows Mail disabled account, rebooted with the new account and the same problem.
    Can I receive the mail, but Windows Security blocking my attempts to send and don't remember the password and username that I type.
    Help!

    This kind of behavior is very often due to antivirus.  You are using.  If its McAfee or Norton get rid of them completely.   There are others who are also incompatible.  Everything you try, make sure that the analysis of e-mail is disabled.   You can also try to repair the database and see if that helps (see www.oehelp.com/WMUtil/).  And see also www.oehelp.com/OETips.aspx#3

    Steve

  • Cannot send mail with Hotmail on Windows Live Mail, error 0x8DE00005

    I can't send an email to my hotmail account. Download Live Mail error ID 0x8DE0005. Help, please!

    [Original title: can not send email]

    Server error: 3219
    Windows Live Mail error ID: 0x8DE00005

    These error codes indicate that your Outlook.com account has been upgraded to the new version. Please log in to the account to http://mail.live.com; do you see something like that in the upper left of the window?

    If so, you cannot use DeltaSync for access to this account. You can find instructions to set up the account using the IMAP protocol on this page: Windows Live Mail and Outlook e-mail

    If you connect Windows Live Mail with this account, you will find that the calendar or contacts don't will sync any more.

    If all goes well, this will be a temporary situation until an update is released for Windows Live Mail to synchronize these accounts once more.

  • Cannot send mail with attachment from message reads the operation failed an object could not be found

    Unable to send an email with a photo attachment. Once all the steps to configure the e-mail was followed and press on send, the message reads 'the operation failed.  An object cannot be found.

    Hello

    Welcome to the Microsoft Answers site. Please take a look at the following address:
    http://support.Microsoft.com/kb/312354/en-us
    If only it was not fixed, so it's more probablyy caused by an Antivirus/Firewall. Symantec Antivirus seems to cause this issue often (as well as other AVs). In this case, try to disable the mailscanner in your Antivirus and see if that solves the problem. Or disable the Antivirus add-ins related via Outlook. See here how to proceed:
    http://Office.Microsoft.com/en-us/Outlook-help/enable-or-disable-add-ins-in-Office-programs-HA010034127.aspx#BM9

    I hope this helps.

  • Cannot send mail with picture through windows live mail Ox800CCCF3

    Use windows live mail, until yesterday, I was able to send emails via hotmail with photos.  suddenly, the emails with photos began to go into the Outbox after sending button has been clicked.  messaages normal email without attachments are fine.  they can be sent and received.

    one of the popup that tells you that the message cannot be sent was Ox800CCCF3 (among others).  In addition, on the lower right corner of the screen of e-mail, it says ' error (yellow triangle with an exclamation point) work online. "

    I'm tired of trying to find solutions.  person doesn't answer the question or technical proposals indicated what to do.  I ticked a box in the center of solutions requesting that I be alerted when a response arrives, but all I got was an automatic e-mail saying that I asked to be informed of a response: there is no answer.  It doesn't matter if it's the windows or microsoft Solution Center.  I kep hit a wall of death.  suggestions welcomed.  Thank you for your interest.

    What AV (anti-virus) you use.
    Whether she has the option of electronic analysis.
    If so, find out if it is enabled.
    If so, disable it.

    Note: do not forget to delete those stuck in the Outbox.

    t-4-2

  • send mail with UTL_SMTP

    I am facing this problem only when I send the mail.
    in my vision, I get this message as done with the subject and body.
    However in gmail, it is empty.

    no idea why this is so, the code used is:
    create or replace procedure e_mail_message
    (
    FROM_NAME varchar2,
    to_name varchar2,
    topic varchar2,
    message varchar2
    )
    is
    l_mailhost VARCHAR2 (64): = ' *';
    l_from VARCHAR2 (64): = ' *';
    l_to VARCHAR2 (64): = ' *';
    l_mail_conn UTL_SMTP.connection;
    BEGIN
    l_mail_conn: = UTL_SMTP.open_connection (l_mailhost, 25);
    UTL_SMTP. EHLO (l_mail_conn, l_mailhost);
    UTL_SMTP.command (l_mail_conn, "AUTH LOGIN");
    UTL_SMTP.command (l_mail_conn, UTL_RAW.cast_to_varchar2 (UTL_ENCODE.base64_encode (UTL_RAW.cast_to_raw ('* ')));)
    UTL_SMTP.command (l_mail_conn, UTL_RAW.cast_to_varchar2 (UTL_ENCODE.base64_encode (UTL_RAW.cast_to_raw ('* ')));)
    UTL_SMTP. HELO (l_mail_conn, l_mailhost);
    UTL_SMTP.mail (l_mail_conn, l_from);
    UTL_SMTP. RCPT (l_mail_conn, to_name);
    UTL_SMTP.open_data (l_mail_conn);
    UTL_SMTP.write_data (l_mail_conn, ' Date: ' |) TO_CHAR (SYSDATE, ' ' DD-MON-YYYY HH24:MI:SS) | Chr (13));
    UTL_SMTP.write_data (l_mail_conn, ' from: ' | from_name |) Chr (13));
    UTL_SMTP.write_data (l_mail_conn, ' subject: ' | subject |) Chr (13));
    UTL_SMTP.write_data (l_mail_conn, ' from: ' | to_name |) Chr (13));
    UTL_SMTP.write_data (l_mail_conn, "|) Chr (13));
    BECAUSE me in 1... 10 LOOP
    UTL_SMTP.write_data (l_mail_conn, "this is a test message. Line ' | To_Char (i) | Chr (13));
    END LOOP;
    UTL_SMTP.close_data (l_mail_conn);
    UTL_SMTP. Quit (l_mail_conn);
    END;

    Do not manually code CRLF (line breaks in command) when you use TCP communication - rather use the constant UTL_TCP.CRLFinstead. (which is defined as #10 #13 and not a #13 you are manually using).

    Remember that the transport protocol travels very different h/w - so it is important to be agnostic h/w. As the use of the network for example order of bytes for binary data (does not apply in your case) and CRLF.

    If this does not address the problem of gmail, download raw emails from gmail and look at the real content Mime that gmail receives and tries to return.

  • Cannot send mail with Windows Live Mail on Windows 7

    All of a sudden, my phone can't send email on Windows Live Mail 2012 in Windows 7.  The Office of the home network has the same WLM 2012 with same port settings, etc.  There is no problem in creating and sending with the office.  I tried the repair program, but it did not help, even if he said that the repair was successful.  When I try to open the window to create an email, a window opens but then greys out with the message popping up saying that Windows Live Mail has suddenly stopped working.  Then it crashes.  I have no problem receiving mail.

    Incoming Port 995 with require a verified secure connection.

    Outgoing Port 465 with require a verified secure connection.  (identical to the office that has no problem)

    I just used a restore point and that seemed to fix the problem.

  • Windows XP Pro, cannot send mail with Outlook Express 6 Server error 550__error # 0x800CCC69

    Received: 550 server response 5.3.4 this account is currently blocked from sending messages. If you don't think that you have violated the Windows live conditions contact customer support. Yes port 25 secure (ssl). Server error: 550, error 0x800CCC69 #. Now I can receive messages. Customer support sent me here. How can I fix it? Thanks in advance.

    Error when you try to send an e-mail: this account is currently blocked from sending messages
    http://windowslivehelp.com/solution.aspx?SolutionID=5bed0615-BCAF-4151-912e-c9ab87e1fdb5

    Windows Live Online Solutions Center - http://windowslivehelp.com/Default.aspx

    MS - MVP - Elephant Boy computers - don't panic!

  • Cannot send mail with Windows Live Mail

    I can't send e-mails from my account in windows live mail hot.  he stops the internet.  I can send emails from my hotmail account via outlook and msn.  It started last week.  Why?

    See: a question of Hotmail or Windows Live Mail?
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/have-a-Windows-Live-Mail-or-Hotmail-question/8bd31c48-d1a7-49D6-a08c-9069aaeba2e5

  • Cannot send mail hotmail electronic

    Why am I unable to send mail with my hotmail account. I use windows live.  Can I receive and read emails but not send. I used to pay $10 for more space but don't need more and that is the problem. Once you start to pay you can never go back to the free email?

    After all the Hotmail issues in the appropriate forum found here:
    http://windowslivehelp.com/

  • error in sending mails with attachments

    Hai friends, windows mail works fine for me, but I still have problem sending mail with attachments.

    When we send an attachment then windows Messaging mail tell our mail sending successfully, but it is stored in the Outbox & mail does not reach the destination. can we have the solution to this.

    Hi Sammy Anderson,

    Thanks for joining us out on the Microsoft Community forums.

    According to the description, you are experiencing problems sending mails with attachments. Please answer a few questions to refine the question.

    1. are you using Windows Live Mail to send and receive messages or are you referring to the mail application?

    2. do you get an error message?

    3. are you aware of changes to the computer before the show?

    If you are Windows Mail app, you can consult this article and also run the app troubleshooting utility that is provided in the notes.

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/is-is/Windows-8/what-troubleshoot-problems-app

    If the problem is with Windows Live Mail, you can post the question in another Department for assistance.

    http://answers.Microsoft.com/en-us/windowslive/Forum/email

    Hope this information helps. Get back to us if you have more queries about Windows.

  • Sending mail with an attachment using UTL_SMTP

    Hi all

    I'm working on a PL/SQL code, where do I send a mail with an attachment using UTL_SMTP. I use the following code, I changed the value of p_to and p_from

    DECLARE

    l_mail_conn UTL_SMTP.connection;

    l_boundary VARCHAR2 (50): = '-= * #abc1234321cba #* =';

    l_step PLS_INTEGER: = 12000; -Make sure you define a multiple of 3 would not exceed the 24573

    p_to VARCHAR2 (100): = ' [email protected] ';

    p_from VARCHAR2 (100): = ' [email protected] ';

    p_subject VARCHAR2 (100): = "UPLOAD of FILE MAIL."

    p_text_msg VARCHAR2 (100): = 'it is a system generated email';

    p_attach_name VARCHAR2 (100);

    p_attach_mime VARCHAR2 (100);

    p_attach_blob BLOB;

    p_smtp_host VARCHAR2 (100): = 'localhost ';

    p_smtp_port NUMBER: = 25;

    BEGIN

    l_mail_conn: = UTL_SMTP.open_connection (p_smtp_host, p_smtp_port);

    UTL_SMTP. HELO (l_mail_conn, p_smtp_host);

    UTL_SMTP.mail (l_mail_conn, p_from);

    UTL_SMTP. RCPT (l_mail_conn, p_to);

    UTL_SMTP.open_data (l_mail_conn);

    UTL_SMTP.write_data (l_mail_conn, ' Date: ' |) TO_CHAR (SYSDATE, ' ' DD-MON-YYYY HH24:MI:SS) | UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' from: ' | p_to |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' from: ' | p_from |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' subject: ' | p_subject |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Reply-To: ' | p_from |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, "MIME-Version: 1.0 ' |") UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: multipart/mixed; limit = "" | ") l_boundary | '"' || UTL_TCP. CRLF. UTL_TCP. CRLF);

    IF p_text_msg IS NOT NULL THEN

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: text/plain; charset = "iso-8859-1" ' |) UTL_TCP. CRLF. UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, p_text_msg);

    UTL_SMTP.write_data (l_mail_conn, UTL_TCP.crlf |) UTL_TCP. CRLF);

    END IF;

    IF p_attach_name IS NOT NULL THEN

    FOR I IN (SELECT *)

    OF xx_mail_test_table

    WHERE ROWNUM = 1

    ORDER BY last_update_date DESC) LOOP

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: ' | p_attach_mime |) '; name =' ' | I.FILE_NAME | '"' || UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, "Content-Transfer-Encoding: base64' |") UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Disposition: attachment; filename = "" | ") I.FILE_NAME | '"' || UTL_TCP. CRLF. UTL_TCP. CRLF);

    FOR J FROM 0... TRUNC ((DBMS_LOB. GetLength (I.file_name) - 1) / l_step) LOOP

    UTL_SMTP.write_data (l_mail_conn, UTL_RAW.cast_to_varchar2 (UTL_ENCODE.base64_encode (DBMS_LOB.substr (I.FILE_NAME, l_step, J * l_step + 1)));)

    END LOOP;

    UTL_SMTP.write_data (l_mail_conn, UTL_TCP.crlf |) UTL_TCP. CRLF);

    END LOOP;

    END IF;

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) '--' || UTL_TCP. CRLF);

    UTL_SMTP.close_data (l_mail_conn);

    UTL_SMTP. Quit (l_mail_conn);

    EXCEPTION

    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN

    UTL_SMTP. Quit (l_mail_conn);

    lift;

    WHILE OTHERS THEN

    dbms_output.put_line (SQLERRM);

    END;

    This is when I execute the block that I get 2 mails to the same but there are some attachments, I checked the table and he gave.

    Could someone help me as to where I'm wrong?

    Create the raw DATA for the SMTP protocol can be tricky.

    I cheat and use a package that has been designed to do easily.

    APEX_MAIL

    MK

  • Cannot figure out how to remove the recipient's e-mail address when sending mail with Windows 10.

    Cannot remove the e-mail address of the entity to which I address email. I have read the tutorials and instructions and tried all the options of Thunderbird, but I can't find the key to the repression in any Options or advanced settings with the latest version of Windows 10. The illustration of Thunderbird Support for this function does not match my choice of Tools/Options/Advanced/Composition in address book. I'm obviously on something, but I also tried settings/Composition & addressing / Global dial in account preferences.

    You must use the e-mail address of the recipients to send mail. There is no option to use something else that the receiving server will have no idea who 'mother' is only [email protected].

  • Cannot send emails with Windows Mail (Vista premium edition)

    I can't send emails with windows mail. I must go to Tiscali for now to do so. I went through the troubleshooting help, but I'm still not able to send an email. I can receive only. Error messages that are raised are - Socket - 10060 and error Error - 0x800CCC0E. Can anyone help.

    PS - my computer skills are always solutions if not complicated a bit basic please. Thanks for any answers to my problem.

    Hello!

    Thanks for the post.

    This isn't the exact error message, PS paste the entire error message, but this does not mean that we have no idea.

    This above error message is perhaps due to Norton, I say Norton because I saw it with Norton. Quite possible that you use another Antivirus/Firewall. Try to disable the firewall/AV & see if this work. Alternatively, try to uninstall the security software & then give it a shot.

    Hope it would help, do not hesitate to come back with the exact error code.

    Anurag Shukla of light
    Microsoft Certified Professional

  • Outlook express 6 error 550, cannot send mail!

    Hello

    I have of sending mail from outlook hurt express 6.

    I use windows XP, tried to turn off the firewall, router security, anti spam protection etc., it makes no difference.
    I've updated my settngs port in accordance with the passage of DAV to POP3 (whatever it is) as reported by microsoft.

    Receives mail ok but cannot send - error as follows:

    The message could not be sent because the server rejected the sender's e-mail address. The sender's e-mail address was ' * address email is removed from the privacy *'. 'Hello', account: 'new hotmail settings', server: 'smtp.live.com', Protocol: SMTP, server response: ' 550 5.7.3 abandoned required action; user not authenticated ', Port: 587, secure (SSL): Yes, Server error: 550, error number: 0x800CCC78

    Any ideas guys?

    Thank you very much

    Kath

    Stop spamming this forum with your replies to messages which are years!

Maybe you are looking for