JavaMail: mails with empty body

Hi all,
we want to send mails via JavaMail in our webapp. This works most of the time but sometimes it does not. After some time all emails are received without body.
There are no Exceptions in the log files. We got JavaMail to "debug" to stdout, no error messages there.
Redeploying the webapp does not work. Restart of weblogic helps.
We are using weblogic 8.1.2 on SuSE 8.1 with jdk 1.4.2_05.
Any ideas?
Regards,
Alex

Hi,
just for the records:
It was a problem of Systinet WASP 4.7.x. Should be fixed with 5.0.
Regards,
Alex

Similar Messages

  • Mail with empty body

    I have been accessing my email accounting using mail. It was working fine until about a week ago when the bodies of the emails were not showing up. I can access the whole email fine using webmail. I also have another account also using mail which hasnt had any problems. I tried accessing this account using another computer with os 10.4 and mail 2.0 and had no problem. I also tried recreating the email account but that didnt fix the problem. Any ideas as to what could be affecting just one account on my computer?

    I have been accessing my email accounting using mail. It was working fine until about a week ago when the bodies of the emails were not showing up. I can access the whole email fine using webmail. I also have another account also using mail which hasnt had any problems. I tried accessing this account using another computer with os 10.4 and mail 2.0 and had no problem. I also tried recreating the email account but that didnt fix the problem. Any ideas as to what could be affecting just one account on my computer?

  • How to send a mail with HTML body from Oracle

    Hi Team,
    Can somebody guide me how to send a mail with HTML body from oracle.
    Here is the piece of code i am trying to send a mail.
    procedure SEND_MAIL is
    cursor c_1 is select * from table_name;
    l_mail_id varchar2(40);
    -- ls_mailhost VARCHAR2(64) := Mailhost;
    ls_from VARCHAR2(64) := ‘[email protected]
    ls_subject VARCHAR2(200);
    ls_to VARCHAR2(64);
    l_mail_conn UTL_SMTP.connection;
    ls_left_menu_name VARCHAR2(64);
    ll_emp_num number(8);
    begin
    for i in c_1 loop
    begin
    l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
    UTL_SMTP.HELO(l_mail_conn, 'IP');
    UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
    UTL_SMTP.RCPT(L_mail_conn, LS_TO);
    UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
    'To: ' ||ls_to || utl_tcp.crlf ||
    'Subject: ' ||ls_subject|| utl_tcp.crlf);
    UTL_SMTP.QUIT(l_mail_conn);
    exception
    when no_data_found then
    null;
    when others then
    RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
    end;
    end loop;
    end;
    Thnx

    Hi Nicolas!
    Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
    If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
    SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
    Hope this helps!
    Regards
    Geir

  • Tags with empty body can't work in WLS 7.0SP5

    Hi, I'm now using WLS 7.0 SP5. In my JSPs, I have the following tag with empty body:
              <jsp:setProperty name="xxxForm" property="style123" value="abc"/>
              It doesn't work. The script works if I change that into:
              <jsp:setProperty name="xxxForm" property="style123" value="abc"></jsp:setProperty>
              However I have found that this problem should be fixed in WLS 7.0 SP1 already. (http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wls/S-13458.htm) Any hint about this strange problem? Thanks in advance!

    HI,
    I am using RangeTimeStep for displaying data in time range. I dont know understand whats wrong with this code as it displays graph with some other criteria that I donot specify in RangeTimeStep. The member of Day is like 02/16/2003 and member value is DAY_460. Although I passed both the values but still getting the same graph.
    Would you please tell me whats wrong in the code?
    Presentation graph1 = (Presentation)pageContext.findAttribute("ahb_country_pres1");
    ThinGraph bubbleGraph = (ThinGraph)graph1.getView();
    QueryClient query = (QueryClient) bubbleGraph.getDataSource();
    String strTimeDim = "MDM!D_RMI_RIM_OWNER.TIME";
    String strStandardHier = "MDM!D_RMI_RIM_OWNER.TIME.TIME_HIER";
    Vector vec = new Vector();
    vec.addElement("MDM!D_RMI_RIM_OWNER.TIME.TIME_HIER.L.DAY");
    Selection sel1 = query.findSelection(strTimeDim);
    RangeTimeStep rangeTimestep1 = new RangeTimeStep(strTimeDim,strStandardHier, vec, new Integer (2), RangeTimeStep.BEFORE,"DAY_460");
    rangeTimestep1.setAction(RangeTimeStep.KEEP);
    sel1.removeAllSteps();
    sel1.addStep (rangeTimestep1);
    query.applySelections(new Selection[]{sel1});
    query.refreshAll();
    Regards,
    Aamir

  • JavaMail - mail with files isn't sent to specific recipient

    Maybe someone have an idea for me. I use java mail in order to send mails. It worked perfect until today. There is a specific recipient that doesn't get mails with files. At the beginning I was sure that there is a problem in the side of the recipient (probabely security ptoblem), but the same recipient got mail with the same files when I sent them using another application of mail.
    Are there any ideas where is the problem?

    I would check the logs for you smtp server and see if it got that far. That may be able to tell you where the email went after it got sent.
    Paul

  • E-mail with Subject, Body and Attachments

    Hi,
    I am currently completing a project to create an intranet site for employees.
    We need functionality to send email confirmation of a sale to customers. I'm going to start by saying i have zero web design experience and have only been doing this for 3 months heavily using the ribbon with minimal coding. So the situation is:
    I have a button that i want employees to be able to click and it opens a new email from outlook with pre-populated body text (which is static and never changes) and 3 attachments also never changing. The employee will then enter the clients email address
    and add their name to the email. 
    I have managed the email and subject no bother. However the body text i want to enter needs to look like this:
    "TRAVEL INSURANCE
    I confirm cover is in place.
    If you need any assistance whilst abroad call: 0800 000 000 for 24 hour assistance or contact our claims department on:
    0800 000 000. This office can be contacted on: 0800 000 000
    asking for extension number:XXXX to speak to myself.
    Yours Sincerely
    XXXXXXXXXXXX
    Travel Adviser
    Please Note: This e-mail was sent from a notification-only email address that cannot accept incoming e-mail. Please do not reply to this message."
    I've managed to get some of the body text in but no formatting. I've managed line breaks using %0D%0A but if i add a double break to get a clear line there doesn't seem to be enough room and it begins to lose the body text. 
    Thats issue 1.
    Issue 2 is how you manage to attach files. Everything i look at says you need to do your own piece of coding which is far beyond my capability for this project!
    Any help would be fantastic.
    this is my code so far:
    [email protected]?subject=Travel%20Confirmation%20Email&body=TRAVEL INSURANCE%0D%0A%0D%0AI confirm cover is in place.%0D%0AIf you are in need of any assistance whilst you are abroad please contact our 24 hour emergency
    helpline on: (0000) 000 000 or the claims department on: 00000 000 000. If I can be of any further assistance, please contact our office on 0000 000 0000, extension number: XXXX.%0D%0AThank you for insuring with us.%0D%0AYours sincerely%0D%0AYOUR NAME%0D%0ATravel
    Advisor
    Thanks,
    K

    Hi,
    According to your description, you might want to let users be able to send email with attachments.
    As you might prefer a codeless solution, I would suggest you create a
    SharePoint Designer workflow to achieve it.
    A solution can be like this:
    1. Create a list “ListA” for storing the three attachments which you want to add into your email, it will be referenced in the workflow;
    2. Another list “ListB” with two columns “ClientEmailAddress” and “ClientNames”, it will be used to collect user input and sent to the workflow;
    3. Create a SharePoint Designer workflow and attach to the “ListB”, set the workflow to be started when there is new item added in the current list.
    By doing this, users can simply add a new item in “ListB” with two columns filled, an email will be sent out as you required.
    In SharePoint Designer workflow, we can send email contains predefined format easily with the available workflow action in SharePoint Designer.
    About how to
    send email in SharePoint Designer workflow:
    https://support.office.com/en-us/article/Send-e-mail-in-a-workflow-11d5f9dd-955f-412c-b70f-cde4214204f4
    http://www.mpspartners.com/2012/05/spdesigner2010workflowsendingemailstomultipleusersfromasinglepeoplepickerfield/
    To be able to
    send email with attachments, you would like to install this solution in your environment, it provides a useful custom workflow action you will need:
    http://sharepointstuff.codeplex.com/releases/view/66258
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Mail with HTML BODY content?

    Hi,
    We seem to have a little problem with sending mails wtih HTML content, we have a "Link" in the mail body to be sent , so we are using html tags <a href=""link"></a> so that the mail receipient see the URL as a link ....
    The actual code used is given below:-
    l_body_html := ' <html>
    <body>
    <p>Hi,<br><br>You have been provided access to <a href="http://URL.com:20000/pls/htmldb/f?p=102"></a>'||
    '</p> </body> </html>'
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => l_body_html,
    P_BODY_HTML => l_body_html,
    P_SUBJ => 'Access Details.');
    What is wrong here , except the link of URL the rest of the text is coming in the mail body...
    regards
    Naveen

    Naveen,
    This is an HTML problem. You have provided no text for the anchor.
    You probably want something like:
    &lt;a href=http://URL.com:20000/pls/htmldb/f?p=102>Click Here&lt;/a>
    And to be proper HTML, you should enclose the href value in double quotes, as in:
    &lt;a href="http://URL.com:20000/pls/htmldb/f?p=102">Click Here&lt;/a>
    Joel

  • Send a mail with a body and attachment

    Hi guys!!!!
    I have a RFC -> XI -> Mail Scenario!
    I'm able to send text in the body of the mail. I'm able to send text as an attachment. But I'd like to send both (text in the body and other text as an attachment). How can I do this?
    thanks in advance
    Julio

    First, I'd like to thank all the replies! And Jagesh, I solved my problem reading the thread you told me.
    I created a message as follow:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
         <Subject>test</Subject>
         <From>test_source @ abc.com</From>
         <To>test_target @ abc.com</To>
         <Content_Type>multipart/mixed; boundary="AaBb--984dfgeSSd3532"</Content_Type>
         <Content>*AaBb984dfgeSSd3532*
    Content-Type: text/plain
    Hello, this is sample data.
    *AaBb984dfgeSSd3532*
    Content-Type: text/plain;name="CSV_data.csv"
    abc
    </Content>
    </ns:Mail>
    In addittion to this, I configured Mail channel as follow:
    Content encondig = none
    Keep Attachments = false

  • HttpURLConnection with empty body

    Hi, i'm trying to fetch data from the following URL using HttpURLConnection. Considering that the body will only be filled when the aspx loads, how can i read the body after it gets loaded?
    {color:#0000ff}*<HTML>*
    *<HEAD>*
    *<title>Sample site HTTPS</title>*
    *<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">*
    *<script language="javascript">*
    var URL = "https://www.somesite.net/net/AppPages/Login.aspx";
    document.writeln( "<meta http-equiv=\"refresh\" content=\"0; url=" + URL + "\">" );
    *</script>*
    *</HEAD>*
    *<body>*
    *</body>*
    *</html>*{color}

    javapnunes wrote:
    tehre must be a way of programatically return that information after processing. I just have to find it.
    Of course web browsers require manually intervention (which is not what i'm looking for.
    Maybe someone knows how to sort this out, without using browsers
    sigh
    You can of course execute as many page requests as you want. Just like a browser. The code you posted in the OP though shows JavaScript being used. Do you understand that you would then need a JavaScript engine? Because you'd need to parse the JavaScript code and take the correct next steps based on that.

  • SendMail: can not send mail with body more than 1000 caracters

    Hi,
    I can not send mail with a body wich is more than 1000 caracters.
    FUNCTION SendMail(SMTPServerName IN STRING,                     
                        Sender IN STRING,                     
                        Recipient IN STRING,                     
                        CcRecipient IN STRING,                     
                        BccRecipient IN STRING,                     
                        Subject IN STRING,                     
                        Body IN STRING,                     
                        ErrorMessage OUT STRING,                     
                        Attachments IN ATTACHMENTS_LIST) RETURN NUMBER IS      
                        AttachmentList VARCHAR2(4000) := '';      
                        AttachmentTypeList VARCHAR2(2000) := '';   
                          BEGIN       ParseAttachment(Attachments,                      
                                                      AttachmentList);      
                                      RETURN JSendMail(SMTPServerName,
                                                       Sender,                       
                                                       Recipient,                       
                                                       CcRecipient,                       
                                                       BccRecipient,                       
                                                       Subject,                       
                                                       Body,                       
                                                       ErrorMessage,                       
                                                       AttachmentList); 

    Hi,
    I can not send mail with a body wich is more than 1000 caracters.
    FUNCTION SendMail(SMTPServerName IN STRING,                     
                        Sender IN STRING,                     
                        Recipient IN STRING,                     
                        CcRecipient IN STRING,                     
                        BccRecipient IN STRING,                     
                        Subject IN STRING,                     
                        Body IN STRING,                     
                        ErrorMessage OUT STRING,                     
                        Attachments IN ATTACHMENTS_LIST) RETURN NUMBER IS      
                        AttachmentList VARCHAR2(4000) := '';      
                        AttachmentTypeList VARCHAR2(2000) := '';   
                          BEGIN       ParseAttachment(Attachments,                      
                                                      AttachmentList);      
                                      RETURN JSendMail(SMTPServerName,
                                                       Sender,                       
                                                       Recipient,                       
                                                       CcRecipient,                       
                                                       BccRecipient,                       
                                                       Subject,                       
                                                       Body,                       
                                                       ErrorMessage,                       
                                                       AttachmentList); 

  • Mail sent from stored procedure: empty body

    I've got a problem with a stored procedure. Its task is sending an email to some recipients passed from an another procedure. The problem is that the body of the email is empty and I don't know why!
    Here's the script of this procedure:
    Thank you very much in advance for your time!
    CREATE OR REPLACE PROCEDURE ETL.LANCIA_EMAIL_PARAM
    p_IN_FROM in VARCHAR2 default null,
    p_IN_TO in VARCHAR2 default null,
    p_IN_TO2 in VARCHAR2 default null,
    p_IN_TO3 in VARCHAR2 default null,
    p_IN_TO4 in VARCHAR2 default null,
    p_IN_TO5 in VARCHAR2 default null,
    p_IN_TO6 in VARCHAR2 default null,
    p_IN_TO7 in VARCHAR2 default null,
    p_IN_TO8 in VARCHAR2 default null,
    p_IN_TO9 in VARCHAR2 default null,
    p_IN_TO10 in VARCHAR2 default null,
    p_IN_TO11 in VARCHAR2 default null,
    p_IN_TO12 in VARCHAR2 default null,
    p_IN_TO13 in VARCHAR2 default null,
    p_IN_TO14 in VARCHAR2 default null,
    p_IN_TO15 in VARCHAR2 default null,
    p_IN_TO16 in VARCHAR2 default null,
    p_IN_TO17 in VARCHAR2 default null,
    p_IN_TO18 in VARCHAR2 default null,
    p_IN_TO19 in VARCHAR2 default null,
    p_IN_TO20 in VARCHAR2 default null,
    p_IN_TO21 in VARCHAR2 default null,
    p_IN_TO22 in VARCHAR2 default null,
    p_IN_OGG in VARCHAR2 default null,
    p_IN_MSGEMAIL in VARCHAR2 default null
    IS
    --mailhost VARCHAR2(30) := 'smtp.xxx.it';
    mailhost VARCHAR2(30) := 'notesrelay.sd.xxx.it'; /* ripristinato il 29/11/2010 da LdP per controllo ODM*/
    -- dichiarazione di una variabile di tipo utl_smtp.connection
    -- a cui verr? assegnato l'SMTP ed il numero di porta (25)
    conn utl_smtp.connection;
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    mesg VARCHAR2( 32767 );
    DATA_START varchar2(20) := TO_CHAR(SYSDATE,'DD-MM-YYYY');
    IN_FROM VARCHAR2(30) := p_IN_FROM;
    IN_TO VARCHAR2(300) := p_IN_TO ;
    IN_TO2 VARCHAR2(300) := p_IN_TO2 ;
    IN_TO3 VARCHAR2(300) := p_IN_TO3 ;
    IN_TO4 VARCHAR2(300) := p_IN_TO4 ;
    IN_TO5 VARCHAR2(300) := p_IN_TO5 ;
    IN_TO6 VARCHAR2(300) := p_IN_TO6 ;
    IN_TO7 VARCHAR2(300) := p_IN_TO7 ;
    IN_TO8 VARCHAR2(300) := p_IN_TO8 ;
    IN_TO9 VARCHAR2(300) := p_IN_TO9 ;
    IN_TO10 VARCHAR2(300) := p_IN_TO10;
    IN_TO11 VARCHAR2(300) := p_IN_TO11;
    IN_TO12 VARCHAR2(300) := p_IN_TO12;
    IN_TO13 VARCHAR2(300) := p_IN_TO13;
    IN_TO14 VARCHAR2(300) := p_IN_TO14;
    IN_TO15 VARCHAR2(300) := p_IN_TO15;
    IN_TO16 VARCHAR2(300) := p_IN_TO16;
    IN_TO17 VARCHAR2(300) := p_IN_TO17;
    IN_TO18 VARCHAR2(300) := p_IN_TO18;
    IN_TO19 VARCHAR2(300) := p_IN_TO19;
    IN_TO20 VARCHAR2(300) := p_IN_TO20;
    IN_TO21 VARCHAR2(300) := p_IN_TO21;
    IN_TO22 VARCHAR2(300) := p_IN_TO22;
    IN_OGG VARCHAR2(300) := p_IN_OGG ;
    IN_MSGEMAIL VARCHAR2(30000) := p_IN_MSGEMAIL;
    BEGIN
    -- Apertura di una connessione al server
    conn := utl_smtp.open_connection (mailhost,25);
    -- Assegnazione alla variabile mesg dell'intestazione della mail
    mesg:='Date:'||TO_CHAR(SYSDATE,'dd mon yy hh24:mi:ss')||crlf||
    'From:<'||IN_FROM||'>'||crlf||
    'Subject:'||IN_OGG||crlf;
    -- if IN_TO2 is not null then
    -- mesg:=mesg||'To:'||IN_TO||','||IN_TO2||crlf||'';
    -- else
    -- mesg:=mesg||'To:'||IN_TO;
    -- end if;
    If IN_TO22 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||','||IN_TO20||','||IN_TO21||','||IN_TO22||crlf||'';
    elsif IN_TO21 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||','||IN_TO20||','||IN_TO21||crlf||'';
    elsif IN_TO20 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||','||IN_TO20||crlf||'';
    elsif IN_TO19 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||','||IN_TO19||crlf||'';
    elsif IN_TO18 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||','||IN_TO18||crlf||'';
    elsif IN_TO17 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||','||IN_TO17||crlf||'';
    elsif IN_TO16 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||','||IN_TO16||crlf||'';
    elsif IN_TO15 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||','||IN_TO15||crlf||'';
    elsif IN_TO14 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||','||IN_TO14||crlf||'';
    elsif IN_TO13 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||','||IN_TO13||crlf||'';
    elsif IN_TO12 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||','||IN_TO12||crlf||'';
    elsif IN_TO11 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||','||IN_TO11||crlf||'';
    elsif IN_TO10 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||','||IN_TO10||crlf||'';
    elsif IN_TO9 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||','||IN_TO9 ||crlf||'';
    elsif IN_TO8 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2 ||','||IN_TO3 ||','||IN_TO4 ||','||IN_TO5 ||','||IN_TO6 ||','||IN_TO7 ||','||IN_TO8 ||crlf||'';
    elsif IN_TO7 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||','||IN_TO5||','||IN_TO6||','||IN_TO7||crlf||'';
    elsif IN_TO6 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||','||IN_TO5||','||IN_TO6||crlf||'';
    elsif IN_TO5 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||','||IN_TO5||crlf||'';
    elsif IN_TO4 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||','||IN_TO4||crlf||'';
    elsif IN_TO3 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2||','||IN_TO3||crlf||'';
    elsif IN_TO2 is not null then
    mesg:=mesg||'To:'||IN_TO||','||IN_TO2||crlf||'';
    else
    mesg:=mesg||'To:'||IN_TO;
    end if;
    mesg:=mesg||crlf||IN_MSGEMAIL;
    -- Apertura di un collegamento al server
    utl_smtp.helo(conn, mailhost);
    -- Inizio di una transazione di posta con il server passandogli il mittente
    utl_smtp.mail(conn,IN_FROM);
    -- il destinatario
    utl_smtp.rcpt(conn,IN_TO);
    if IN_TO2 is not null then utl_smtp.rcpt(conn,IN_TO2 ); end if;
    if IN_TO3 is not null then utl_smtp.rcpt(conn,IN_TO3 ); end if;
    if IN_TO4 is not null then utl_smtp.rcpt(conn,IN_TO4 ); end if;
    if IN_TO5 is not null then utl_smtp.rcpt(conn,IN_TO5 ); end if;
    if IN_TO6 is not null then utl_smtp.rcpt(conn,IN_TO6 ); end if;
    if IN_TO7 is not null then utl_smtp.rcpt(conn,IN_TO7 ); end if;
    if IN_TO8 is not null then utl_smtp.rcpt(conn,IN_TO8 ); end if;
    if IN_TO9 is not null then utl_smtp.rcpt(conn,IN_TO9 ); end if;
    if IN_TO10 is not null then utl_smtp.rcpt(conn,IN_TO10); end if;
    if IN_TO11 is not null then utl_smtp.rcpt(conn,IN_TO11); end if;
    if IN_TO12 is not null then utl_smtp.rcpt(conn,IN_TO12); end if;
    if IN_TO13 is not null then utl_smtp.rcpt(conn,IN_TO13); end if;
    if IN_TO14 is not null then utl_smtp.rcpt(conn,IN_TO14); end if;
    if IN_TO15 is not null then utl_smtp.rcpt(conn,IN_TO15); end if;
    if IN_TO16 is not null then utl_smtp.rcpt(conn,IN_TO16); end if;
    if IN_TO17 is not null then utl_smtp.rcpt(conn,IN_TO17); end if;
    if IN_TO18 is not null then utl_smtp.rcpt(conn,IN_TO18); end if;
    if IN_TO19 is not null then utl_smtp.rcpt(conn,IN_TO19); end if;
    if IN_TO20 is not null then utl_smtp.rcpt(conn,IN_TO20); end if;
    if IN_TO21 is not null then utl_smtp.rcpt(conn,IN_TO21); end if;
    if IN_TO22 is not null then utl_smtp.rcpt(conn,IN_TO22); end if;
    -- ed il testo del messaggio
    utl_smtp.data(conn, mesg);
    -- Chiusura della connessione
    DBMS_OUTPUT.PUT_LINE(mesg);
    utl_smtp.quit(conn);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLERRM);
    END;
    /

    Horrible code.
    Fact: when you REPEAT a variable or source code statement again and again - IT IS WRONG. It is not modularised. It is not robust, flexible, readable or maintainable.
    The code should look as follows:
    // a string array type is needed for dealing with multiple recipients - this
    // can be defined as a SQL or PL/SQL type
    // SQL type is used in the example as it is usable in both SQL and PL/SQL
    // engines
    create or replace type TStrings is table of varchar2(4000);
    // the parameter signature and code for the procedure:
    create or replace procedure EmailMessage(
      senderAddress varchar2 default '[email protected]',   --// the sender
      recipientList TStrings, --// array of recipients
      subject varchar2, --// subject of the mail
      message varchar2 --// e-mail body to send
    ) is
    begin
      --// to build the TO string for the e-mail header
      for i in 1..recipientList.Count loop
        mesgTo := msgTo || recipientList(i);
        if i < recipientList.Count then
          mesgTo := msgTo || ',';
        end if;
      end loop;
      --// create the complete e-mail body
      --// (I would prefer a template string variable and
      --// and replacing tokens in it with the subject,
      --// recipients, sender, and so on
      mailBody := 'Mime-Version: 1.0 '||utl_tcp.CrLf||
                  'Content-Type: text/plain'||utl_tcp.CrLf||
                  'Subject: nvs-web server'||utl_tcp.CrLf||
                  'To: '||mesgTo||utl_tcp.CrLf||
                  'From: '||senderAddress||utl_tcp.CrLf||
                  utl_tcp.CrLf||
                  message;
      --// to specify the recipients to the SMTP server
      for i in 1..recipientList.Count loop
        utl_smtp.rcpt( conn, recipientList(i) );
      end loop;
    end;You should also consider using UTL_MAIL as it serves fine for sending basic e-mails, and basic e-mails with a single attachment.

  • I posted in Mac pro Eplehust and Oslo in early June to change videokart (which has changed six months ago) got my Mac a month by mail, with the terrible damage the body, but the packaging in which he lay was not damaged. I sent him back to change t

    I have posted in Mac pro Eplehust and Oslo in early June to change videokart (which has changed six months ago) got my Mac a month by mail, with the terrible damage the body, but the packaging in which he lay was not damaged. I sent him back to change the computer, 4 weeks, I changed it and checked 2 more weeks. as a result of three days ago, got back, more than half the programs crash, I can not open or closed CDrom, some programs do not come off or stop, and stop responding commands, turn it off only mechanically, not any excuses, I did not get to the store, what should I do?
    My patience is crowded, nerves on edge, I have lost my time with the worst service of my life, the only thing I see its the draw Eplehuset and apple to court.
    my e-mail - [email protected]

    While writing I made a mistake... It is true I could become aware of the Scorpio incompatibility.
    I also tried the same identical procedure with a Seagate one. This disk and the same procedure was performed by some people I know on many MacBookPro Mid-2010 and everything was OK.
    We do not understand why this problenm occurs.
    Furthermore, If I installed the system on the broken HDD (that works, but sometimes it fails so badly and makes the system experience kernel panic) I could boot from it.
    I guess it is because of the **** Apple FIrmware written on the label.
    Is it possible that I cannot manage to boot from my new HDD because it has not a "special" feature on it that makes it compatible with apple??? Why making things so **** difficult my god a closer world like Apple one is impossible to imagine.
    However Shootist007 thanks for your message, but given what I said I do not think is a cable problem.

  • Sending mail with attachment and body.

    Hi Experts,
    I have a requirement of sending a mail with an attachment and also the mail will have a body whose content will be same as that in the attachment.Subject of the mail will also be configured dynamically.Though I am able to send the mail with the attachment but I am not able to configure the body whose content will be same as that of the attachment.
    I have unchecked the "Use Mail Package" and has hard-coded the "TO","From" field for sending the mail with attachment.
    Can you please check and let me know how to configure the body which will be same as that of the attachment.
    Thanks and Regards
    Atanu Mazumdar

    Hi,
    Use MTB module and then one of the parameter which can allow you to send message in attachment as well as in message body.
    Transform.ContentDisposition: it helps us to decide if we want to send the payload as an attachment or in the message body. If we give the Parameter value as u201Cattachmentu201D then we will have the payload attached in the mail and if we assign this value as u201Cinlineu201D the payload will go in the mail body.
    Hope this helps you..
    Regards....

  • How do i embed photo in body of yahoo mail with firefox? tom

    if i copy a jpeg image from my documents and paste into the body of an email i want to send from yahoo mail it looks ok, but if i open that email in gmail, there is no image; just a long series of letters and numerals... what can i do to embed a photo in the body of a yahoo email that i want to send? thanks for any help....
    tom hodge [email protected]

    @ Philly
    Yes there is,
    When you recieve a mail with an attachement (inline or as a picture) right click (or control click) the attachement and choose "show as symbol" or "show fullsize" (or completely or something like that, I don't work in English version). Mail will take this as a general preference.
    Ben

  • Send a Mail with Body

    Hi all,
    I want to send a mail with text in the body...I've read some threads in the Forum but i don't understand such well...
    Wich is the minimun SP version I need to be possible send mails with body? I think I've SP12 or SP13. Where can I look my SP?
    Is there any blog or thread I can read about this?
    Thanks a lot.
    Regards.
    Urtzi.

    Hi,
    Please check on hte adapter details to find out the options:
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    Check this thread to find options available for SP12/13
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/9844428e9cbe30e10000000a155106/frameset.htm
    Regards
    Vijaya

Maybe you are looking for

  • Issue while Updating a table having Unique Secondary Index

    Hi, I am trying to update a 'Z' table in which there are 5 fields comprising of primary key. Out of them 2 key fields are defined as a part of seconadry index with 'Unique' option selected. As per the requirement, I am trying to update the table usin

  • Eporting to an existing MobileMe gallery?

    I have a MobileMe gallery that I manage via iPhoto. I want to keep iPhoto but I also want to run Aperture 3 and upload to the same gallery via Aperture. Seems like when I upload via Aperture it creates a new album or only syncs with a gallery that wa

  • 1z0-053 - Doubtful question/answer in Transcender preparation kit

    Hello, I purchased the exam preparation  kit and I'm confused about a correct answer. http://www.transcender.com/practice-exam/oracle/1z0-053.kap It's in regard to the Flashback Database procedure, it states that we must use STARTUP MOUNT EXCLUSIVE r

  • Customizing MYSITE in SharePoint 2013

    In SharePoint 2013 we want our Intranet Home page  to be the user's MYSITE. Is it possible to apply the corporate branding to MYSITE and also allow our Corporate Marketing and Communications team to publish corporate news / information, polls, links

  • Problem while running the report from stored procedure

    Hi, I using stored procedure to generate my report. my stored procedure's code looks like this. CREATE OR REPLACE PROCEDURE PROJECTOVERVIEWREPORT1(query in VARCHAR2) IS myPlist SRW_PARAMLIST; myIdent SRW.Job_Ident; myStatus SRW.Status_Record; BEGIN s