Sender Mail error

Hi,
I'm facing the following problem when trying to send a mail from my company's server mail.
exception caught during processing mail message; java.net.ConnectException: Connection refused
Tried to solve by reading tons of threads that already discussed this topic but I still get the same error message.
Until now, I have no confirmation from network/mail server administrators if XI server is able to communicate with mail server, but I'd configured a receiver mail adapter, with the same host/ip, user/pwd information and it works fine. Would it be such confirmation (that XI and mail server can communicate to each other)?
Tried with (XIPAYLOAD):
POP3
pop://<server>/<folder>
pop://<server>/
pop://<server>
pop://<server>/<folder>/
pop://<server>:<port>/<folder>
pop://<server>:<port>... etc.
The same for IMAP4.
imap://<server>/<folder>... and so on.
Thank you,
Rafael Vieira.

Solved.
Thanks,
Rafael.
Edited by: rvsilvax on Oct 18, 2010 7:25 PM

Similar Messages

  • Can't send mail error 550 and 554--unrecognized user or relay denied

    I've done a clean install of server 10.4.11. When I try to send mail from my mobile me account tot he server I am getting one of two different errors: 550 unknown user, or 554 relay access denied. I'm dog tired after an all-nighter and not thinking clearly.
    Here is my postconf -n output:
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    mail_owner = postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mydestination = $myhostname,localhost.$mydomain,localhost,mail.trinidadchroniclenews.com,trinid adchroniclenews.com
    mydomain = mail.trinidadchroniclenews.com
    mydomain_fallback = localhost
    myhostname = mail.trinidadchroniclenews.com
    mynetworks = 127.0.0.0/8
    mynetworks_style = host
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = postdrop
    smtpdclientrestrictions = permitsaslauthenticated, permit_mynetworks, rejectrblclient sbl-xbl.spamhaus.org rejectrblclient list.dsbl.org rejectrblclient bl.spamcop.net permit
    smtpdpw_server_securityoptions = login
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdsasl_authenable = yes
    smtpdtls_keyfile =
    smtpduse_pwserver = yes
    unknownlocal_recipient_rejectcode = 550
    TIA
    Rob

    The MX record for trinidadchroniclenews.com points to mail.trinidadchroniclenews.com which.
    Telnetting to this host on port 25 I get:
    220 orionwebhost.com ESMTP Exim 4.62 Fri, 28 Aug 2009 09:03:54 -0700
    Since Mac OS X Server runs Postfix and not Exim, either your DNS records are wrong or your ISP is intercepting port 25.
    HTH,
    Alex

  • HT4519 cannot send mail error

    i had to setup my email again and i am now getting the following error
    The user name or password for "SMTP:[email protected]" is incorrect
    any advice
    Thanks

    I'm trying to troubleshoot the SAME issue now, SAME device (had this for a few months but didn't bother since I can access web mail other ways).
    The only difference is this is my hotmail I have set up through apple mail. Does it say:  "Cannot Send Mail. The username or password for: "STMP: (emailname) @hotmail.com @stmp.live.com" is incorrect."? Well, in my case it's "hotmail.com" anyway.
    I tried removing it, adding it again, then shutting the ipad on &amp; off again. No success.
    Did you get it fixed.
    P.S.: This issue started happening right after one of the IOS software updates.
    <Link Edited By Host> 

  • Cannot Send Mail error message

    Hey guys,
    Having a few email issues. When I'm at home, using wifi, it receives and sends perfectly. However, when out of range, and using my telco's 3g etc connection, it receives messages fine, however when I'm sending the messages stay in outbox with a Cannot Send Mail - One of the recipent addresses was invalid message. The address is fine, and i've tried it with multiple addresses with the same messsage. Interesting, mail send with @"my isp" seem to work.
    I've got the settings set up with my ISPs outgoing server, and also my Telco's SMTP server too - which I can't change any of the settings in anyway....
    Any clues??

    The first thing that jumps to mind is that while you're away from your ISP's connection, sometimes they require a different port to be used when sending. This isn't the case all the time but again, it's the first thing that came to mind.
    Many ISP's require you to be connected directly to them when sending mail from their account. It's really a security measure on their end but most do offer an alternate port that you can change to which will allow you to send when out and about via 3G or another wifi connection, etc.
    It's something to look into. I would contact them or look online for their advanced settings.
    Regards,
    Brian

  • Sending Mail Error in GP

    Hi All,
        When I trying to send a mail by using the send mail callable object, it gives me "ERROR_SMTP_CONNECT" reply.
        I have configure the smtp.server and smtp.service_user_mail
    parameter, but where can I configure the password of it?
    or, does the GP only support the unauthenticate-type SMTP?
    Thanks,
    YiNing

    Hello again
    So, as far as I understand, you want the user to fill in the form and then submit it, so that the form is sent to a specific mail.
    Using HTTP, the form designer should implement functionality that enables the user to submit data back to the GP framework. On the GP side, there is a servlet that receives the data and sends it for further processing.
    With SMTP, data is sent to a specified mail inbox.
    To do this, you have to onfigure the relevant form adapter with information about the mail server that you use to send the form; this is required so that the system can fill in the information for the sending mail server in the relevant form field at runtime. This is the procedure I told you about in the previous post.
    You said you have already configured the other mail paramaters, so this should be ok :).
    I hope I understand your question correctly, but in any case, here are a couple of links with documentation, which are very useful:
    http://help.sap.com/saphelp_nw70/helpdata/en/44/d44bea51103ee1e10000000a114a6b/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/44/2763150fef3fe6e10000000a155369/frameset.htm
    Hope this helps!
    Best regards,
    Petra

  • Cannot send mail error

    All of a sudden I keep getting CANNOT SEND MAIL message. The connection to the smtp.comcast.net server has failed.
    I've re-entered the parameters, deleted and re-added the email account, added another server account...nothing works. I can't send mail.

    AlexMaeda,
    This article has more information:
    http://docs.info.apple.com/article.html?artnum=305634
    As for an email provider allowing customers to relay outside of their network, many email providers, set up an authenticating SMTP server on different port. The article above includes information on specifying the port to use.
    For example, .Mac accounts can use port 587 as discussed in this article:
    http://docs.info.apple.com/article.html?artnum=75124
    You may want to check with your email provider if they offer an authenticating smtp server for people who are traveling or using mobile devices. Many do so without any additional cost, some may charge for access to that service.
    Hope this helps,
    Nathan C.

  • Cannot Send Mail - Error, Need help!

    I can not send e-mail. Error message reads,
    "The recipient "[email protected]"was rejected by the server."
    Initialy I was getting an error message about "Authentication" but when I took User Name and Password for SMTP, that error disappered, but now I'm getting the above message.
    Did anyone figure out the trick to get around this and send e-mails out?
    eMachine Windows XP
    eMachine   Windows XP  

    AlexMaeda,
    This article has more information:
    http://docs.info.apple.com/article.html?artnum=305634
    As for an email provider allowing customers to relay outside of their network, many email providers, set up an authenticating SMTP server on different port. The article above includes information on specifying the port to use.
    For example, .Mac accounts can use port 587 as discussed in this article:
    http://docs.info.apple.com/article.html?artnum=75124
    You may want to check with your email provider if they offer an authenticating smtp server for people who are traveling or using mobile devices. Many do so without any additional cost, some may charge for access to that service.
    Hope this helps,
    Nathan C.

  • Sending mail error

    hmm about 80% of the time (gmail) sends ok. but the rest of the time i get this message:
    The sender address [email protected] was rejected by the server smtp.me.com.
    Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent.
    i then get an option to send later. or other options cant recall.
    why? how to fix?

    Hi Rachit,
    This is not really a reply to your question.
    I am searching for messages related to userexit IMRC0001 and I found this message you posted.
    I am having problems creating a Notification from within the userexit using FM IQS4_CREATE_NOTIFICATION.  The Notification is successfully created but when I view the Notification it gives me the error "Object does not exist (status management)".  But when I look at table QMEL the Notification is created and posted.
    However, when I execute IQS4_CREATE_NOTIFICATION by itself using the Test functionality in SE37, the Notification is successfully created and I can also view it no problem.
    I only get the error viewing the Notification when the function module is called from the userexit.
    Any thoughts on this one?
    Thanks.

  • Can't send mail - error "HELO/EHLO"

    Running !0.2.8 with Mail 1.2.5
    Using broad band connection via tiscali.co.uk
    Receiving mail, but suddenly can't send any - with error message
    "HELO/EHLO with my domain name. You are not me."
    Have checked all network settings and all are o.k.
    Can anyone help please?

    It is my site mentioned above as an explanation of the error (hence my arrival here - saw the thread in my web stats)
    Let me explain whats happening in the hope of shedding some light on the issue.
    When you send out e-mail, the following procedure happens:
    1. You create the mail, add recipients/subject etc and press send.
    2. Your mac connects to your configured SMTP server
    3. The server will ask your computer for its name
    4. Your computer returns a string to the server - known as an EHLO/HELO usually this would be the name your computer is set to (for example: mymac.local)
    5. The server checks the name that was sent, if it is a FQDN (e.g. server.company.com) it will check the DNS records to ensure the host is valid, then checks its access rules and either allows your computer to send the rest of the e-mail or sends a deny message and kicks you off
    Your computer is failing one of the EHLO/HELO checks, the reason for this is that your email client is returning tiscali.co.uk or localhost when the server is asking it for its name.
    It is possible that the name of your mac is the issue, it could be a bug, or you may even be using a tiscali proxy server to connect.
    What is the name of your mac?
    Are you using a tiscali proxy server?
    I'm on a pc at the moment but when I get a chance I will look at the strings that Mail returns to my server from my Mac as it could possibly be a bug.

  • Send Mail Error through Collaboration Launch Pad

    Hi all,
             I have a problem with configuring a Groupware Transport with Exchange Server.
    Step 1 - I created a Groupware System using SAP Standard Template and Specified the
    ystem Parameters like Server and Domain.
    Step 2 - Created System Alias for the Above System.
    Step 3 - Navigated to Groupware Transport and Configured Exchange server and Mail Transport.
    Step 4 - I did User Mapping for the Created System with Parameters like user Id,Password and Mail Server .
    In my case Exchange server,Mail server and SMTP are same parameter (XXX-EXCHANGE)
    When i send a mail from Collaboration Launch Pad,i recieved the following Error
    "The mail could not be sent to the specified recipients"
    When i Checked the log Defualt.trc file,I got the follwing Error.
    javax.mail.SendFailedException: Invalid Addresses;
      nested exception is:
         javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [email protected]
         at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:804)
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:320)
         at com.sap.ip.collaboration.gw.impl.transport.javamail.JavaMailTransport.sendMail(JavaMailTransport.java:178)
         at com.sap.ip.collaboration.gw.impl.transport.javamail.JavaMailTransport.send(JavaMailTransport.java:198)
         at com.sap.ip.collaboration.gw.impl.framework.groupware.MailItemImpl.send(MailItemImpl.java:83)
         at com.sap.ip.collaboration.gw.impl.service.mail.SendMailItemImpl.send(SendMailItemImpl.java:152)
         at com.sap.ip.collaboration.gw.impl.service.mail.SendMailService.sendMail(SendMailService.java:424)
         at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.sendMail(SendTo.java:788)
         at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.onSend(SendTo.java:1080)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)
         at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:175)
         at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:538)
         at sun.reflect.GeneratedMethodAccessor332.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sap.ip.collaboration.core.api.ui.wdf.portal.WdfPortalComponent.service(WdfPortalComponent.java:39)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    How do i go about this?
    Plz help me out.
    I will reward with the Points
    Thanks and Regards
    Santosh Saraf

    Hi santosh,
    I guess, your mail server is not accepting relay from your application server.i mean, Your SMTP server is not set for relaying.
    You have to authenticate yourself to let your SMTP server relay your mails.
    (or)
    Talk to your SMTP server admin to configure in the allowed IP for relaying. Admin will add your app server IP to the allowed/authentication list.
    Hope it helps.
    Regards,
    SK.
    <i>PS: plz reward points if helpful.Thanks!</i>

  • "Send Mail" Error

    Whenever I try to send a new email under 10.6.3, as soon as I click "send" my entire viewer window closes.
    I have to go back up to the menu and open a new window.
    I also have no way of seeing any progress bar of how the email is being sent, since the whole viewer window is shut.
    I can get new mail and see the downloading progress.
    But the Send feature crashes the viewer window 100% of the time.
    What am I doing wrong, or is this a mail bug...that I need mail bugspray to fix?

    Solved! I think it had to do with GrowlMail.
    The last version whas disabled by mail. Now there is a new version of GowlMail. After installing this bug disappeared.
    http://growl.info/growlmail/
    Best Regards

  • Error compiling procedure send mail

    Hi all,
    I have this error message (on 10.2 version)
    Table or view doesn't exist
    At this line
    + select dd.directory_name into directory_name from dba_directories dd+
    + where dd.directory_path = line and rownum = 1;+
    But I don't know how can resolve it.
    This is the all procedure
    [http://forums.oracle.com/forums/]
    CREATE OR REPLACE PROCEDURE P_SPEDEMAIATTA ( from_name IN VARCHAR2,
    to_names IN VARCHAR2,
    subject     IN VARCHAR2,
    message     IN VARCHAR2 default null,
    html_message     IN VARCHAR2 default null,
    cc_names     IN VARCHAR2 default null,
    bcc_names     IN VARCHAR2 default null,
    filename1 varchar2 default null,
    filetype1 varchar2 default 'text/plain',
    filename2 varchar2 default null,
    filetype2 varchar2 default 'text/plain',
    filename3 varchar2 default null,
    filetype3 varchar2 default 'text/plain',
    V_CODIERRO OUT VARCHAR2,
    V_DESCERRO OUT VARCHAR2)
    is
    -- Change the SMTP host name and port number below to your own values,
    -- if not localhost on port 25:
    smtp_host varchar2(256) := 'SMTP.INET.IT';
    smtp_port number := 25;
    -- Change the boundary string, if needed, which demarcates boundaries of
    -- parts in a multi-part email, and should not appear inside the body of
    -- any part of the e-mail:
    boundary constant varchar2(256) := 'CES.Boundary.DACA587499938898';
    recipients varchar2(32767);
    directory_path varchar2(256);
    file_name varchar2(256);
    crlf varchar2(2):= chr(13) || chr(10);
    mesg varchar2(32767);
    conn UTL_SMTP.CONNECTION;
    type varchar2_table is table of varchar2(256) index by binary_integer;
    file_array varchar2_table;
    type_array varchar2_table;
    i binary_integer;
    my_code number;
    my_errm varchar2(32767);
    -- Function to return the next email address in the list of email addresses,
    -- separated by either a "," or a ";". From Oracle's demo_mail. The format
    -- of mailbox may be in one of these:
    -- someone@some-domain
    -- "Someone at some domain" &lt;someone@some-domain&gt;
    -- Someone at some domain &lt;someone@some-domain&gt;
    FUNCTION get_address(addr_list IN OUT VARCHAR2) RETURN VARCHAR2 IS
    addr VARCHAR2(256);
    i pls_integer;
    FUNCTION lookup_unquoted_char(str IN VARCHAR2,
    chrs IN VARCHAR2) RETURN pls_integer IS
    c VARCHAR2(5);
    i pls_integer;
    len pls_integer;
    inside_quote BOOLEAN;
    BEGIN
    inside_quote := false;
    i := 1;
    len := length(str);
    WHILE (i &lt;= len) LOOP
    c := substr(str, i, 1);
    IF (inside_quote) THEN
    IF (c = '"') THEN
    inside_quote := false;
    ELSIF (c = '\') THEN
    i := i + 1; -- Skip the quote character
    END IF;
    GOTO next_char;
    END IF;
    IF (c = '"') THEN
    inside_quote := true;
    GOTO next_char;
    END IF;
    IF (instr(chrs, c) &gt;= 1) THEN
    RETURN i;
    END IF;
    &lt;&lt;next_char&gt;&gt;
    i := i + 1;
    END LOOP;
    RETURN 0;
    END;
    BEGIN
    addr_list := ltrim(addr_list);
    i := lookup_unquoted_char(addr_list, ',;');
    IF (i &gt;= 1) THEN
    addr := substr(addr_list, 1, i - 1);
    addr_list := substr(addr_list, i + 1);
    ELSE
    addr := addr_list;
    addr_list := '';
    END IF;
    i := lookup_unquoted_char(addr, '&lt;'&gt;');
    IF (i &gt;= 1) THEN
    addr := substr(addr, 1, i - 1);
    END IF;
    END IF;
    i := lookup_unquoted_char(addr, '@');
    IF (i = 0 and smtp_host != 'localhost') THEN
    i := instr(smtp_host, '.', -1, 2);
    addr := addr || '@' || substr(smtp_host, i + 1);
    END IF;
    addr := '&lt;'&gt;';
    RETURN addr;
    END;
    -- Procedure to split a file pathname into its directory path and file name
    -- components.
    PROCEDURE split_path_name(file_path IN VARCHAR2, directory_path OUT VARCHAR2,
    file_name OUT VARCHAR2) IS
    pos number;
    begin
    -- Separate the filename from the directory name
    pos := instr(file_path,'/',-1);
    if pos = 0 then
    pos := instr(file_path,'\',-1);
    end if;
    if pos = 0 then
    directory_path := null;
    else
    directory_path := substr(file_path,1,pos - 1);
    end if;
    file_name := substr(file_path,pos + 1);
    end;
    -- Procedure to append a file's contents to the e-mail
    PROCEDURE append_file(directory_path IN VARCHAR2, file_name IN VARCHAR2,
    file_type IN VARCHAR2, conn IN OUT UTL_SMTP.CONNECTION) IS
    generated_name varchar2(30) := 'CESDIR' || to_char(sysdate,'HH24MISS');
    directory_name varchar2(30);
    file_handle utl_file.file_type;
    bfile_handle bfile;
    bfile_len number;
    pos number;
    read_bytes number;
    line varchar2(1000);
    data raw(200);
    my_code number;
    my_errm varchar2(32767);
    begin
    begin
    -- Grant access to the directory, unless already defined, and open
    -- the file (as a bfile for a binary file, otherwise as a text file).
    begin
    line := directory_path;
    select dd.directory_name into directory_name from dba_directories dd
    where dd.directory_path = line and rownum = 1;
    exception
    when no_data_found then
    directory_name := generated_name;
    end;
    if directory_name = generated_name then
    execute immediate 'create or replace directory ' || directory_name ||
    ' as ''' || directory_path || '''';
    execute immediate 'grant read on directory ' || directory_name ||
    ' to public';
    end if;
    if substr(file_type,1,4) != 'text' then
    bfile_handle := bfilename(directory_name,file_name);
    bfile_len := dbms_lob.getlength(bfile_handle);
    pos := 1;
    dbms_lob.open(bfile_handle,dbms_lob.lob_readonly);
    else
    file_handle := utl_file.fopen(directory_name,file_name,'r');
    end if;
    -- Append the file contents to the end of the message
    loop
    -- If it is a binary file, process it 57 bytes at a time,
    -- reading them in with a LOB read, encoding them in BASE64,
    -- and writing out the encoded binary string as raw data
    if substr(file_type,1,4) != 'text' then
    if pos + 57 - 1 &gt; bfile_len then
    read_bytes := bfile_len - pos + 1;
    else
    read_bytes := 57;
    end if;
    dbms_lob.read(bfile_handle,read_bytes,pos,data);
    utl_smtp.write_raw_data(conn,utl_encode.base64_encode(data));
    pos := pos + 57;
    if pos &gt; bfile_len then
    exit;
    end if;
    -- If it is a text file, get the next line of text, append a
    -- carriage return / line feed to it, and write it out
    else
    utl_file.get_line(file_handle,line);
    utl_smtp.write_data(conn,line || crlf);
    end if;
    end loop;
    -- Output any errors, except at end when no more data is found
    exception
    when no_data_found then
    null;
    when others then
    my_code := SQLCODE;
    my_errm := SQLERRM;
    dbms_output.put_line('Error code ' || my_code || ': ' ||
    my_errm);
    end;
    -- Close the file (binary or text)
    if substr(file_type,1,4) != 'text' then
    dbms_lob.close(bfile_handle);
    else
    utl_file.fclose(file_handle);
    end if;
    if directory_name = generated_name then
    execute immediate 'drop directory ' || directory_name;
    end if;
    end;
    begin
    -- Load the three filenames and file (mime) types into an array for
    -- easier handling later
    file_array(1) := filename1;
    file_array(2) := filename2;
    file_array(3) := filename3;
    type_array(1) := filetype1;
    type_array(2) := filetype2;
    type_array(3) := filetype3;
    -- Open the SMTP connection and set the From and To e-mail addresses
    conn := utl_smtp.open_connection(smtp_host,smtp_port);
    utl_smtp.helo(conn,smtp_host);
    recipients := from_name;
    utl_smtp.mail(conn,get_address(recipients));
    recipients := to_names;
    while recipients is not null loop
    utl_smtp.rcpt(conn,get_address(recipients));
    end loop;
    recipients := cc_names;
    while recipients is not null loop
    utl_smtp.rcpt(conn,get_address(recipients));
    end loop;
    recipients := bcc_names;
    while recipients is not null loop
    utl_smtp.rcpt(conn,get_address(recipients));
    end loop;
    utl_smtp.open_data(conn);
    -- Build the start of the mail message
    mesg := 'Date: ' || TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss') || crlf ||
    'From: ' || from_name || crlf ||
    'Subject: ' || subject || crlf ||
    'To: ' || to_names || crlf;
    if cc_names is not null then
    mesg := mesg || 'Cc: ' || cc_names || crlf;
    end if;
    if bcc_names is not null then
    mesg := mesg || 'Bcc: ' || bcc_names || crlf;
    end if;
    mesg := mesg || 'Mime-Version: 1.0' || crlf ||
    'Content-Type: multipart/mixed; boundary="' || boundary || '"' ||
    crlf || crlf ||
    'This is a Mime message, which your current mail reader may not' || crlf ||
    'understand. Parts of the message will appear as text. If the remainder' || crlf ||
    'appears as random characters in the message body, instead of as' || crlf ||
    'attachments, then you''ll have to extract these parts and decode them' || crlf ||
    'manually.' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);
    -- Write the text message or message file, if any
    if message is not null then
    mesg := '--' || boundary || crlf ||
    'Content-Type: text/plain; name="message.txt"; charset=US-ASCII' ||
    crlf ||
    'Content-Disposition: inline; filename="message.txt"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);
    if instr(message,'/') = 1 or instr(message,':\') = 2 or
    instr(message,'\\') = 1 then
    split_path_name(message,directory_path,file_name);
    append_file(directory_path,file_name,'text',conn);
    utl_smtp.write_data(conn,crlf);
    else
    utl_smtp.write_data(conn,message || crlf);
    end if;
    end if;
    -- Write the HTML message or message file, if any
    if html_message is not null then
    mesg := '--' || boundary || crlf ||
    'Content-Type: text/html; name="message.html"; charset=US-ASCII' ||
    crlf ||
    'Content-Disposition: inline; filename="message.html"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);
    if instr(html_message,'/') = 1 or instr(html_message,':\') = 2 or
    instr(html_message,'\\') = 1 then
    split_path_name(html_message,directory_path,file_name);
    append_file(directory_path,file_name,'text',conn);
    utl_smtp.write_data(conn,crlf);
    else
    utl_smtp.write_data(conn,html_message || crlf);
    end if;
    end if;
    -- Append the files
    for i in 1..3 loop
    -- If the filename has been supplied ...
    if file_array(i) is not null then
    split_path_name(file_array(i),directory_path,file_name);
    -- Generate the MIME boundary line according to the file (mime) type
    -- specified.
    mesg := crlf || '--' || boundary || crlf;
    if substr(type_array(i),1,4) != 'text' then
    mesg := mesg || 'Content-Type: ' || type_array(i) ||
    '; name="' || file_name || '"' || crlf ||
    'Content-Disposition: attachment; filename="' ||
    file_name || '"' || crlf ||
    'Content-Transfer-Encoding: base64' || crlf || crlf ;
    else
    mesg := mesg || 'Content-Type: application/octet-stream; name="' ||
    file_name || '"' || crlf ||
    'Content-Disposition: attachment; filename="' ||
    file_name || '"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf ;
    end if;
    utl_smtp.write_data(conn,mesg);
    -- Append the file contents to the end of the message
    append_file(directory_path,file_name,type_array(i),conn);
    utl_smtp.write_data(conn,crlf);
    end if;
    end loop;
    -- Append the final boundary line
    mesg := crlf || '--' || boundary || '--' || crlf;
    utl_smtp.write_data(conn,mesg);
    -- Close the SMTP connection
    utl_smtp.close_data(conn);
    utl_smtp.quit(conn);
    exception
    when utl_smtp.transient_error or utl_smtp.permanent_error then
    my_code := SQLCODE;
    my_errm := SQLERRM;
    V_CODIERRO := SQLCODE;
    V_DESCERRO := SQLERRM;
    begin
    utl_smtp.quit(conn);
    exception
    when utl_smtp.transient_error or utl_smtp.permanent_error then
    null;
    end;
    -- raise_application_error(-20000,
    -- 'Failed to send mail - SMTP server down or unavailable: Error code ' ||
    -- my_code || ': ' || my_errm);
    when others then
    my_code := SQLCODE;
    my_errm := SQLERRM;
    V_CODIERRO := SQLCODE;
    V_DESCERRO := SQLERRM;
    raise_application_error(-20000,
    'Failed to send mail: Error code ' || my_code || ': ' || my_errm);
    end;
    Edited by: mosquito70 on Jan 22, 2009 12:33 PM

    Thank's,
    but the problem is that I have the system user password but I haven't that of sys.
    So, if I try to run the statment
    grant select on dba_directories to myuser;
    I have the this code error ORA-01031
    How can resolve, without use all_directories?
    Thank's
    Bye

  • Regarding odi send mail

    Hi all,
    There is problem with odi send mail error, after the all suggestions, i get answer for it requires jython procedure, and i downloaded from oracle site also...
    can any one please teach me where should need to implement/kept for sending mails.
    please help me....
    our network is popmail.bizmail.yahoo.com...
    please share any docs/links to this mail id: [email protected]
    Regards,
    surya.

    Here are two ways to send an e-mail
    1) Use the ODISendMail function in an ODI Package.
    To use this function drag the ODISendMail reference onto the Package window, join it to the Package flow, click on the function icon and supply Mail Server (SMTP Server Name), From (Me), To (Distribution), CC (Copy), BCC (Blind Copy), Subject, Attachment, and Message Body in the window that appears.
    I use this function to signal success or failure of a package or package step.
    To do this I only supply only the Mail Server, From, To and Subject. I don't need anything else to report success or failure.
    Here's a sample Subject:
    <%=snpRef.getSession("CONTEXT_NAME")%> <%=snpRef.getSession( "SESS_NAME" )%> <%=snpRef.getStep("STEP_NAME")%>
    The STEP_NAME holds the success/failure message
    I don't use the Message Body or Attachment.
    2) The procedure shown in the reply defines a Jython function to send an e-mail with Subject and Message Body using Mail Server, From and To values stored in a Jython dictionary. The Jython version is very old (release 2.1 or 2.2) so there are more elegant ways to write the function. Jython uses white space to control program flow which the Form editor deletes. Here's a verson of the code with leading periods in the code to preserve the white space and with comments on each line. Comments start with a # character and extend to the end of the line.
    Dict = {} # This holds the global parameters
    Dict['ToString'] = '[email protected]' # you supply the value
    Dict['FromString'] = 'FromFromFrom' # you supply the value
    Dict['SMTP'] = 'My Mail Server' # you supply the value
    import smtplib #These are the Jython library routines needed to send the e-mail
    def SendMail(MessageSubject,MessageLines): # This is the function definition
    . global Dict # Point to the Dictionary
    . Subject = '%s %s %s' % (Dict['Context'],Dict['Session'],MessageSubject) #Build the Subject Line
    . MessageString = '' #Initialize the Message String
    . for ReportLine in MessageLines: # Add the callers message lines to the Message String (each line here ends in a newline \n)
    . MessageString = '%s%s' % (MessageString,ReportLine)
    # The next statement builds the actual e-mail message according to a very strict format. Understanding the format is hard
    . Message="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s" % (Dict['FromString'],Dict['ToString'],Subject,MessageString)
    . server = smtplib.SMTP(Dict['SMTP']) # Setup the Mail Server
    . server.sendmail(Dict['FromString'],Dict['ToString'],Message) # Send The Message
    . server.quit() # Stop
    # Here we build a sample message
    ReportSubject = 'This is a Test Message'
    Report = []
    Report.append('First Line\n')
    Report.append('Second Line\n')
    Report.append('Last Line\n')
    # Send the Message
    SendMail(ReportSubject,Report)
    If you're not familiar with Jython, this still won't make much sense, but Jython is not hard to learn, and this example is not very complicated.

  • Sending email error message

    Keep getting send mail error message since installing IOs 6

    Thunderbird does not set quotas. Email providers do. Ask them.

  • Sender Mail Adapter Error: exception caught during processing mail message;

    HI , I am configuring mail to file scenario. Need to read mail content (no need to capture From,TO or Subject details) and create a file with the content in the mail.
    Need to read mails from microsoft outlook. Exchange server has been configured for POP3 protocol.
    Following are the details provoding in sender mail adapter:
    URL: provided url in the format: pop://<server name>
    Authentication method: plain
    provided user credinetions to access mails.
    poll interval - 1min
    content encoding none.
    processing parameters : quality of service-exactly once
    Since there is no need to capture From,TO or Subject details, didn't select the option - use mail package.
    Verified for unread mails in the mail box and made sure that there are few unread mails.
    Also, created data types and other components in IR and completed mapping.
    But after starting sender mail communication channel, getting error "exception caught during processing mail message; java.lang.NullPointerException" in RWB-adapter-communication channel monitoring.
    please let me know what needs to be done to resolve this error.
    Thanks.

    HI Stefan, i tried, but still it is giving same error. Yes, i am able to access outlook mail with the user credentials given in the communication channel to access exchange server.
    I am using message protocol: xipayload . Also since i dont have to capture TO,from,subject details., created data type just with one element of type string, not in the standard format .Does this makes any difference.

Maybe you are looking for