SMTP 505 Error

I can not my message to send over a mail server I just installed on my local machine.
package mailtest;
import java.net.*;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class Main
    public static void main(String[] args) throws Throwable
        Properties props = new Properties();
        props.put("mail.smtp.host", "127.0.0.1");
        Session s = Session.getDefaultInstance(props, null);
        MimeMessage msg = new MimeMessage(s);
        msg.setFrom(new InternetAddress("[email protected]"));
        msg.addRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
        msg.setSubject("NONE");
        msg.setText("Hello!");
        Transport.send(msg);
}Here is the error message...
Exception in thread "main" javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 550 Delivery is not allowed to this address.
        at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:635)
        at javax.mail.Transport.send0(Transport.java:189)
        at javax.mail.Transport.send(Transport.java:118)
        at mailtest.Main.main(Main.java:21)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 Delivery is not allowed to this address.
        at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1145)
        ... 4 more
Java Result: 1

Hi!
Bill, just if you ask you why everybody doesn't read FAQ....
My browser IE7 or Firefox 2.0 see your html code visible on url [http://forum.java.sun.com/ann.jspa?annID=12|http://forum.java.sun.com/ann.jspa?annID=12] :
The JavaMail FAQ is found at:
<a href="http://java.sun.com/products/javamail/FAQ.html">
http://java.sun.com/products/javamail/FAQ.html</a>
<p>
Please read it before posting here. Many of the
questions people ask are already answered in
the FAQ.
<br>
Yes, they really are Frequently Asked
Questions!
<p>
Thanks.Lot of people are lazy to make copy and paste of your link! :)
What is your browser on Sun OS ???
(I'm curious...)
regards,
/Altern

Similar Messages

  • JavaMail bean gives 505 error

    I used the JavaMail tutorial from JGuru to create a bean. I wanted to gain authorization to the smtp mail server and I used the Transport method. I get a 505 error "Relaying not allowed". Does anyone know what this error is and/or where can I get more info on this and other errors?
    Thanks
    Arthur

    Without the full stack trace I can't be completely sure, but I believe this error is being returned from the SMTP server. The server is not setup to relay messages from the machine you are running your application on or you need to login to the server. Most people setup their SMTP servers to restrict who they will relay messages for to keep from being used as SPAM boxes. Have a talk with the administrator of the server to see what is setup.
    Have you tried using a different email application, on the same machine, to send through the same server? See if Pine or Outlook gives you the same error. This will confirm that the problem is with the servers configuration.
    Another possibility is that you have not setup your policy file correctly and the VM is not allowing you to connect to the SMTP server. I don't think this is the case since "Relaying not allowed" is a part of SMTP and the policy file error would probably throw some securtiy exception.

  • File does not exist, SMTP permanent error

    Hi All,
    I got stuck with this error, please help me on this.
    Mine is windows OS, apps 11.5.10.2
    I have a cocncurrent program out file (.out) in out directory and also the same file with naming convention 'name_concurrenrequestid_1.EXCEL' extension in the same directoy. I need to send this EXCEL file as attachment to email id in windows environment. Whenver submit the request is giving the error.
    File Does Not Exist
    Error in Send Mail: ORA-29279: SMTP permanent error: 501 5.5.4 Invalid Address.
    I verified the file , it is already existed in the directory. Why did it not recognized the file. I tried the below query in toad,, but got the 'FALSE' for %APPLCSF, and got the TRUE for custom directory which has the same file
    declare
    v_boolean BOOLEAN;
    v_Len NUMBER;
    v_Block NUMBER;
    BEGIN
    utl_file.fgetattr('%APPLCSF%\%APPLOUT', 'name_concurrentreuestid_1.EXCEL', v_boolean, v_Len, v_Block);
    if v_boolean then
    dbms_output.put_line('v_boolean: TRUE');
    dbms_output.put_line('L:' || to_char(v_Len));
    dbms_output.put_line('B:' || to_char(v_Block));
    else
    dbms_output.put_line('EX: FALSE');
    end if;
    END;
    I do have full access on this folder. Once it recognizes the file I can send the mail.
    Appreciate any help on this. Plz...........
    Thanks,
    JP

    Thank you for the quick reply Srini.
    But my email program is working fine if I change the path from %APPLCSF%APPLOUT to Customtop\out directory to identify the file. It was sent the attachment also to my email id.
    But my requirement is I need to send the file from Out directory not from customtop out . Even it is not recognized the .out file using this UTL_File.fgetattr() in out directory.
    Appreciate any furthur assistance.
    Thanks,
    JP

  • Send E-mail from Oracle (9.2.0.1) : SMTP transient error: 421 Service not a

    I have used Oracle 9i server (9.2.0.1 version) on Windows XP machine(with SP2).I want to send Email from PL/SQL procedure.
    My Question is what sort of configuration needed to perform this activity?
    I have installed IIS (Internet Information Service)
    in my machine, then configure my SMTP mail server
    with a valid email id and password given TCP port 465.
    Later I came to know that to send Email from PL/SQL I have to install Oracle JServer Code. Follow three steps. the steps are
    1. Execute the script as sys "$ORACLE_HOME\javavm\install\initjvm.sql"
    2. Execute the loadjava classfile as
    $ORACLE_HOME\plsql\jlib>loadjava -f -v -r -u sys/**** plsql.jar
    3. Execute the script as sys "$ORACLE_HOME\rdbms\admin\initplsj.sql"
    I sucessfully executed the first step, but for the second step iam not able to locate the plsql.jar file in the specified path.
    So Please tell me if there is any other method to perform this task
    My code is as follows.
    CREATE OR REPLACE PROCEDURE SEND_MAIL (
                                  msg_to varchar2,
                                  msg_subject varchar2,
                                  msg_text varchar2
                                  IS
                                  c utl_smtp.connection;
                                  rc integer;
                                  msg_from varchar2(50) := '[email protected]';
                                  mailhost VARCHAR2(30) := 'mail.google.com';
                             BEGIN
                                  c := utl_smtp.open_connection(mailhost, 465);
                                  utl_smtp.helo(c, mailhost);
                                  utl_smtp.mail(c, msg_from);
                                  utl_smtp.rcpt(c, msg_to);
                                  dbms_output.put_line(' Start Sending data');
                                  utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
                                  'To: ' || msg_to || utl_tcp.crlf ||
                                  'Subject: ' || msg_subject ||
                                  utl_tcp.crlf || msg_text);
                                  dbms_output.put_line(' Finish Sending data');
                                  utl_smtp.quit(c);
              EXCEPTION
                   WHEN UTL_SMTP.INVALID_OPERATION THEN
    dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
                   WHEN UTL_SMTP.TRANSIENT_ERROR THEN
    dbms_output.put_line(' Temporary e-mail issue - try again');
    WHEN UTL_SMTP.PERMANENT_ERROR THEN
    dbms_output.put_line(' Permanent Error Encountered.');
    END;
    Procedure Created.
    SQL> execute prc_send_mail('[email protected]','[email protected]','Good Morning.');
    BEGIN prc_send_mail('[email protected]','[email protected]','Good Morning.'); END;
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 17
    ORA-06512: at "SYS.UTL_SMTP", line 96
    ORA-06512: at "SYS.UTL_SMTP", line 374
    ORA-06512: at "SCOTT.PRC_SEND_MAIL", line 19
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at line 1.
    Please tell me how to solve this problem.
    Thank You.

    1) Why did you install an SMTP server locally and then tell your code to try to use the server mail.google.com?
    2) The error you're getting is from mail.google.com indicating that Google isn't running an open SMTP server there. I would be very surprised if Google were running a publicly available SMTP server anywhere since that would be an invitation for spammers.
    Justin

  • All of a sudden I cannot Forward emails in TB 31.1.2 - I get SMTP timeout error

    And I've tried everything. Shutdown Emsisoft virus prot., turned off firewall, got into Verizon router (btw, I'm going right into the Verizon router-not thru a switch), no port forwarding, even tried to forward an email in Safe mode in Win 8.1 x64. This just happened. I can Write an email OK (i.e., from scratch), but just forwarding, even a small text message won't forward. I even installed an older version of TB. HELP! HELP!
    I either get the SMTP timeout error or I get "check your email and messaging settings." My wife has the exact same setup in TB 31.1.2 but she uses Win 7 x86. -gg

    This has been reported as [https://bugzilla.mozilla.org/show_bug.cgi?id=1060901 Bug #1060901]. If you have an account on Bugzilla, please consider voting for that issue.
    Several other people have sent in the same support request as you, noting this happened after they upgraded to version 31.1.
    The exact error message is: XXXX is not a valid e-mail address because it is not of the form user@host. You must correct it before sending the e-mail.
    '''This happens in Thunderbird 31.1.0 when your mailing list description includes several words separated by spaces.'''
    Although not ideal, these workarounds should let you use your mailing lists until a proper fix is implemented:
    * While composing an email open the address book and select the list you are trying to send to, highlight all the names in the list and drag them to the To: box. This uses your existing data without modifying it.
    * Replacing the blanks " " between the words in such lists' descriptions with an underscore "_". This requires modifying your mailing list(s) description(s).
    '''About automatic updates'''
    Automatic updates are the default in Windows.
    You can [https://support.mozilla.org/en-US/kb/configuration-options-updates?esab=a&s=automatic+updates&r=1&as=s customize such behavior], however, it's under '''Tools > Options > Advanced > Update'''.
    My suggestion would be to set it to '''Check for updates, but let me choose wether to install them.''', specially if you depend on email for critical / important business or personal matters.

  • An error occured while sending mail: SMTP server error.  The server responded: (null)

    I'm getting this set of error messages intermittantly:
    <P>
    An error occured while sending mail: smtp server error
    the server responded: (null) contact email admin
    for assistance
    other message
    an error occured while sending mail: smtp server error
    the server responded: intermail,
    end with quote.quote contact email admin
    for assistance
    <P>
    This problem may occur at low-use times when Messaging is installed with the
    Trend virus protection software on the same system.
    <P>
    Change the version of the Trend software from 3.0 to the older 2.62 version.

    It's possible that your provider has made a change.
    I think STARTTLS usually is used with port 587, instead of the standard SSL port 465.
    Could you look up your provider's current SMTP settings to see whether your "Outgoing Server" settings need to be updated? If it's difficult to translate between your provider's help page and Thunderbird's dialog controls, you could provide a link to your provider's help page.

  • ORA-29279: SMTP permanent error: 501 5.5.2

    im getting the error
    ORA-29279: SMTP permanent error: 501 5.5.2 Syntax error in parameters scanning "FROM"
    kindly help . What is the problem exactly?

    I'm having this same issue now.
    This doesn't happen to my other databases on another server.
    Basically, I have a startup trigger that sends out mail, and I'm finding on database on a particular (new) server, UTL_SMTP is getting this error.
    Have you figured out your root cause?

  • ORA-29279: SMTP Permanet error: 550 5.2.1

    I am recieving the error message ORA-29279SMTP Permanet error: 550 5.2.1 .... Mailbox disabled for this recipient.
    I am using the utl_smtp function to send from the DB.
    I can send to the email address through normal email clients but not from the DB.
    Does anyone have any ideas?
    Thanks,
    Hyman

    mwz wrote:
    Dear All,
         I am trying to send a mail from my database server but getting this following error:
    ORA-29279: SMTP permanent error: 550 5.7.1
    My database server IP is :192.168.10.242
    And I set the SMTP_OUT_SERVER parameter : 192.168.10.242.
    Please help me, how can I solve this problem?I wonder if this error message was followed by "554 5.0.0 Service unavailable"? Do you have an email server with a SMTP receive connector on the same server as the Oracle instance? SMTP_OUT_SERVER should point to the remote SMTP (email) server which will receive and route the email message. The documentation could have made that point a little more clear, see:
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10755/initparams198.htm
    If you are able to resolve the above configuration problem, and are still having trouble, you may need to talk with the person responsible for the SMTP (email) server. That person may need to review the SMTP logging (if enabled) to determine the exact problem, and offer suggestions to you and/or modify the configuration of the SMTP server to permit delivery of email messages from the Oracle server. The SMTP log might look something like this one:
    http://playground.sun.com/mobile-ip/WG-archive/current/msg01660.html
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • ORA-29279: SMTP permanent error: 554 5.5.1 Error: no valid recipients

    Hi ,
    Following error msg coming when notification was sending to mail .
    ORA-29279: SMTP permanent error: 554 5.5.1 Error: no valid recipients
    Please advise how to clear this error.
    Thanks&Regards
    Ranganath Konikineni

    It's not related to oracle. Check How you made the connection with SMTP server and to whom you are sending the mail.
    Post your code with tag like {noformat} Your lines of code {noformat}                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Mail Error: ORA-29278: SMTP transient error: 421 Service not available

    I write process to send mail, it is running ok, but I have error ORA-29278: SMTP transient error: 421 Service not available.
    SMTP Host Address : localhost
    SMTP Host Port : 25
    When I connect to database as SYS and run : exec apex_mail.push_queue result is :
    Pushing email: 1225814842675154
    Pushed email: 1225814842675154
    PL/SQL procedure successfully completed.
    Please explain me what is happened!

    Hi;
    What is DB version?
    Please see:
    From Master Note For PL/SQL UTL_SMTP and UTL_MAIL Packages [ID 1137673.1] check Note 604763.1 "ORA-29278: SMTP transient error: 421 Service not available" When Using UTL_SMTP to Send Email.
    Regard
    Helios

  • ORA-29279: SMTP permanent error: To Send Mail from Oracle 10g (10.2.0.1)

    I have installed Oracle 10g (10.2.0.1) on Windows XP (SP2) machine at my home PC.There is a broadband connection on my home PC.I have installed UTL_MAIL package and then set SMTP_OUT_PARAMETER by the following SQL Statement.
    My machine IP address is 192.168.0.3
    SQl> alter system set smtp_out_server = 'smtp.bsnl.in:25' scope = 25;
    Then we run the following script.
    BEGIN
    UTL_MAIL.SEND(
    SENDER => '[email protected]',
    RECIPIENTS => '[email protected]',
    SUBJECT => 'Testing UTL_MAIL',
    MESSAGE => 'The receipt of this email means'||
    'that it works for UTL_MAIL'
    END;
    Then following error message comes.
    BEGIN
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 553 Authentication is required to send mail as
    <[email protected]>
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 222
    ORA-06512: at "SYS.UTL_MAIL", line 407
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    Can anybody suggest the solution of the above problem.

    Hi,
    is your smtp server configured to use anonymous connection?
    Attackwave
    Reply Code       Description
    211      System status, or system help reply
    214      Help message [Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user]
    220      <domain> Service ready
    221      <domain> Service closing transmission channel
    250      Requested mail action okay, completed
    251      User not local; will forward to <forward-path>
    252      OK, pending messages for node <node> started. Cannot VRFY user (for example, info is not local), but will take message for this user and attempt delivery.
    253      OK, <messages> pending messages for node <node> started
    354      Start mail input; end with <CRLF>.<CRLF>
    355      Octet-offset is the transaction offset
    421      <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down.)
    450      Requested mail action not taken: mailbox unavailable [for example, mailbox busy]
    451      Requested action terminated: local error in processing
    452      Requested action not taken: insufficient system storage
    453      You have no mail.
    454      TLS not available due to temporary reason. Encryption required for requested authentication mechanism.
    458      Unable to queue messages for node <node>
    459      Node <node> not allowed: reason
    500      Syntax error, command unrecognized (This may include errors such as command line too long.)
    501      Syntax error in parameters or arguments
    502      Command not implemented
    503      Bad sequence of commands
    504      Command parameter not implemented
    521      <Machine> does not accept mail.
    530      Must issue a STARTTLS command first. Encryption required for requested authentication.
    534      Authentication mechanism is too weak.
    538      Encryption required for requested authentication mechanism.
    550      Requested action not taken: mailbox unavailable [for , mailbox not found, no access]
    551      User not local; please try <forward-path>
    552      Requested mail action terminated: exceeded storage allocation
    *553      Requested action not taken: mailbox name not allowed [for example, mailbox syntax incorrect]*
    554      Transaction failed

  • ORA-29278: SMTP transient error: 421 Service not available

    Hi all,
    I'm using Oracle 10g working on Windows XP Home.
    I'm trying to send a basic mail from my stored procedure.
    When I tried to run the code, I get ORA-29278: SMTP transient error: 421 Service not available.
    Below is the code I'm trying.
    CREATE OR REPLACE PROCEDURE SEND_MAIL (
    msg_to varchar2,
    msg_subject varchar2,
    msg_text varchar2 )
    IS
    c utl_smtp.connection;
    rc integer;
    msg_from varchar2(50) := 'Oracle9.2';
    mailhost VARCHAR2(30) := '127.0.0.1'; -- local database host
    BEGIN
    c := utl_smtp.open_connection(mailhost, 25); -- SMTP on port 25
    dbms_output.put_line('ok');
    utl_smtp.helo(c, mailhost);
    utl_smtp.mail(c, msg_from);
    utl_smtp.rcpt(c, msg_to);
    utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
    'To: ' || msg_to || utl_tcp.crlf ||
    'Subject: ' || msg_subject ||
    utl_tcp.crlf || msg_text);
    utl_smtp.quit(c);
    EXCEPTION
    WHEN UTL_SMTP.INVALID_OPERATION THEN
    dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
    WHEN UTL_SMTP.TRANSIENT_ERROR THEN
    dbms_output.put_line(' Temporary e-mail issue - try again');
    dbms_output.put_line (sqlerrm);
    WHEN UTL_SMTP.PERMANENT_ERROR THEN
    dbms_output.put_line(' Permanent Error Encountered.');
    END;
    Below are the possibilites I tried..
    I tried to ping localhost.. This is the output I get
    C:\Documents and Settings\Me>ping localhost
    Pinging polasa [127.0.0.1] with 32 bytes of data:
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    In one of the thread, a user suggested to do the following
    Go to Control Panel->Add or Remove Programs->Click on
    Add/Remove Wndows Components
    Check IIS check box.
    Select Internet Information Service (IIS) option and click on Details button
    Check whether SMTP Service is checked or not.
    If not selected then select SMTP check box.
    This process should be done on server.
    It will help out from ORA-29278: SMTP transient error: 421 Service not available
    problem.
    There is no IIS in my Windows Components..
    Any suggestions? Thanks in advance

    It sounds like you don't have an SMTP server running on your local machine.
    Even if you install IIS (or some other SMTP server), that is probably not enough to send email outside of your machine because your machine is unlikely to be trusted by the downstream mail servers. If you are running this in a company, you'll need to talk to your company's mail admin to determine where the corporate SMTP server is running. If you running this at home, you'll need to find out from your ISP what SMTP servers are available to you.
    Justin

  • ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command fi

    Hello friend,
    I have changed my smtp server to send email but now i am getting a different error like given below
    ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command first. 2sm141783tif.39
    I dont know what is this STARTTLS command.
    Pls help me ;
    Thanks,
    Uttam SIngh

    It is NOT obvious to someone experiencing a ORA-29279: SMTP permanent error: messages that the root cause is in the SMPT server, it is still an ORA error code. It is especially NOT OBVIOUS, if that person is OBVIOUSLY a newbie. It is OBVIOUS that when you essentially flame people for asking such questions you discourage them from ever asking questions on your forum.
    Could you PLEASE, PLEASE, PLEASE be a little less arrogant and stop cluttering up this forum with over-the-top and OFF responses????
    Thank You in Advance Mr. Expert.

  • ORA-12012: error on auto execute of job 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing ORA-06512: at "SYS.UTL_SMTP", line 20 ORA-06512: at "SYS.UTL_SMTP",

    Hi ,
    I am getting below error frequently in alert log of database.
    ORA-12012: error on auto execute of job 754461
    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing
    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 "APPS.EIS_UTIL_PKG", line 94
    ORA-06512: at "APPS.HKD_PO_ADDON_PKG", line 110
    ORA-06512: at line 1

    You have a job running in the database. Its job ID is 754461
    It looks as if that job runs APPS.HKD_PO_ADDON_PKG
    That job is attempting to send mail using UTL_SMTP and apparently passing some strange value to SMTP server for the RCPT TO: parameter.

  • UTL.MAIL error ORA-29279: SMTP permanent error: 501 Address Syntax Error in

    Hi,
    I am new to the forum so please excuse if I post incorrectly without conforming to the standards.
    We need to send mails using the UTL.MAIL package and have installed them on the database.
    Whenever I am trying to send an email I am getting the following error:
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 501 Address Syntax Error in
    [email protected]
    ORA-06512: at "SYS.UTL_MAIL", line 654
    ORA-06512: at "SYS.UTL_MAIL", line 671
    ORA-06512: at line 2
    The test code which I am running is as follows:
    BEGIN
    UTL_MAIL.send(sender => 'test <[email protected]>',
    recipients => '[email protected]',
    subject => 'UTL_MAIL test subject',
    message => 'UTL_MAIL test body');
    END;
    I have tried different combinations:
    BEGIN
    UTL_MAIL.send(sender => 'test "<[email protected]>"',
    recipients => '[email protected]',
    subject => 'UTL_MAIL test subject',
    message => 'UTL_MAIL test body');
    END;
    even tried
    BEGIN
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    subject => 'UTL_MAIL test subject',
    message => 'UTL_MAIL test body');
    END;
    Everytime I am getting the same error.
    This seems to be working with an exchange mail server but never on the SMTP server.
    In the SMTP server logs the sender address is not having the angular brackets <> unlike the other mails which are being sent over.
    It seems that the SMTP server is pretty strict and the SMTP admin will not change any settings on the server.
    The oracle version is as follows
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Could you please help me out with a solution.
    Some how the angular brackets are geting stripped off (which UTL MAIL package generally does), Is there any way in which I can include the angular brackets.
    Edited by: 984757 on 29-Jan-2013 02:56
    Edited by: 984757 on 29-Jan-2013 02:57

    I dislike UTL_MAIL - clunky and poor abstraction interface, and not well written.
    Had a look at the code. It does this:
    WHILE (ALL_RCPTS IS NOT NULL) LOOP
          UTL_SMTP.RCPT(MAIL_CONN,'&lt;' || GET_ADDRESS(ALL_RCPTS) || '&gt;');
    END LOOP;The GET_ADDRESS() function process the ALL_RCPTS parameter, returns the 1st address from it, and updates the (in/out) parameter with the remaining string.
    SQL> var address varchar2(200);
    SQL> exec :address := '<[email protected]>,[email protected]';
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line( 'get_address='||UTL_MAIL.GET_ADDRESS(:address)||' address='||:address );
    get_address=[email protected] address=[email protected]
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line( 'get_address='||UTL_MAIL.GET_ADDRESS(:address)||' address='||:address );
    get_address=[email protected] address=
    PL/SQL procedure successfully completed.
    SQL> The address is explicitly surrounded by brackets as per the RFC. So that is what your SMTP server should see.
    If not - perhaps then our UTL_MAIL versions do not match. Cannot recall from what version I pulled and unwrapped the UTL_MAIL package code I have.
    Personally though, I've ceased using UTL_MAIL a while back. It lacks in may respects. I have written my own mail package that supports multiple attachment, complex Mime formatting, attachments of 20+ MB in size, and so on - running on the UTL_SMTP interface (that provides the transport layer for sending mail). And for issues like you are facing, I suggest considering using UTL_SMTP directly.
    Edited by: Billy Verreynne on Jan 29, 2013 12:52 PM
    (Updated the code with HTML entity names to get the code snippet to render correctly)

Maybe you are looking for

  • Using a variable to name a window?

    Is it possible to use a user-defined variable to name a window? I'm hoping to set up a "template" system of sorts for a family of products, all of which are very similar. I'd just like to name the window accordingly to the product name via a variable

  • Validation is not working for F-28 and F-53

    Hi, I wrote a validation for Transaction Code F-28 and F-53 and F-44 and F-54. But it is not working. Kindly help me where i went wrong. please do the needful. Pre-Requisite : Company Code and Transaction Code Check : Business Area 4000 Requirement i

  • SQL Expression in recordselectionformula

    Hi all, i use a sqlexpression in the recordselectionformula. But when i load the report by my Assembly the sqlexpression is not replaced and the report does not load any data. the recordselectionformula looks like: {%differenz2} <> 0.00          <---

  • Can't apply Animation Presets in After Effects CC(2014)

    I'm no longer able to apply any animation presets to my type. When I try, this dialogue box appears: Can anyone help me with this? Thanks.

  • James Bond movies the same as the 50th Anniversary Blu-Ray edition?

    Are the James Bond movies currently in the (Dutch) iTunes Store, the same as the 50th Anniversary Blu-Ray edition (except from the HD 720p vs 1080)? http://www.007.com/bond-50-on-blu-ray/