Problem sending POST with NSAPI

Hello, I´m developing a plugin that rewrite this functions:
__nsapi30_table->f_net_write
__nsapi30_table->f_http_start_response
__nsapi30_table->f_netbuf_next
In this environment:
iPlanet 6 SP6 + WebSphere5.1 -> This rewrite run OK !
iPlanet 6 SP8 + JBOSS -> The rewrite of "f_net_write" and "f_http_start_response" run OK, but the function "f_netbuf_next" is not launched.
I don´t found a documentation about f_netbuf_next, and I don´t know how I do it !!
Somebody can help me?
Thanks!!

Can you tell what exactly do you want to do?
Can't you make use of Input / Output filters?
[http://docs.sun.com/app/docs/doc/819-2630/abukg?l=en&a=view|http://docs.sun.com/app/docs/doc/819-2630/abukg?l=en&a=view]
and
[http://docs.sun.com/app/docs/doc/819-2630/abukl?l=en&a=view|http://docs.sun.com/app/docs/doc/819-2630/abukl?l=en&a=view]

Similar Messages

  • Problems sending emails with iPhone 3G and outlook exchange

    I have a problem sending email with exchange. Receiving and answering mail works fine and calender updates work fine. However when I initiate an email from the phone it syncs and ends up in the sent folder in the computer but never reaches the recipient. I have tried this many times with different recipients and phones. It only happens from my iphone and ipad. Any suggestions?
    Any help much appreciated

    The iPhone you returned is still syncing against your server and locking out your account. Someone possibly has access to your mail data. I'd recommend having your Exchange Administrator install the Microsoft Exchange Server ActiveSync Web Administration Tool (http://www.microsoft.com/downloads/details.aspx?FamilyID=E6851D23-D145-4DBF-A2CC -E0B4C6301453&displaylang=en) and attempt to wipe/delete/block that other iPhone.
    Message was edited by: ethanm

  • Problem sending attachements with gmail account on mail

    Hello:
    I have a lot of problems sending attachments with my gmail account using mail.
    1. Attachments are not big.
    2. I don't have the same problem with other non gmail accounts.
    3. When ever I have this problem I go to gamil.com and I am able to send the attachment with no problem.
    Any suggestions?
    Thanks

    No idea ?
    Nemrod

  • Problem sending mail with attachments???

    Hi Everybody,
    I have got a problem sending mail with attachments...
    I am able to send a plain mail ... but when i am trying to send mail along with an attachment ... its not being sent....
    its not showing any error it is simply hanging...
    what should i do?
    If u know any solns please do suggest me....
    Thanks in advance

    activation.jar is already there...
    initially i wrote a swing program as a front end and it was working abs fine... in my sense it was properly sending mails along with the attachments...
    when i changed the front-end to JSP handled by Servlets i am getting a problem...
    and even the swing program stopped working ...
    now swing program is getting compiled but it is hanging at run time showing an exception "Exception occured during event dispatching"
    i dont understand what probably may be the problem...
    if u can trace out, please give me any suggestions
    Thanks in advance and regards

  • Problem sending .pdf with email in ECC 6.0

    hi there,
    we are upgrading from r/3 4.6.c to ECC 6.0.
    i have the following problem: in many z-ababs we convert spool-files to pdf-files and send them with function SO_NEW_DOCUMENT_ATT_SEND_API1 via email.
    well, this is working okay, BUT: the ending '.pdf' is missing in the filename:
    in R/3 4.6.c it looks like the following:
    zfl_reporting.pdf
    Now it looks like this:
    zfl_reporting
    So the file is not recognized as pdf-file. You have to add a .pdf manually to open it.
    We can't do this as we send the pdf-files thousands of times to our customers.
    Any ideas ?
    reg, Martin

    hi
    Posted below is the sample code..
    find the bolded ones...
    REPORT ZMAIL_PDF NO STANDARD PAGE HEADING.
    Data for mailing purpose
    DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
    DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
    DATA: OBJBIN  LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: OBJTXT  LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
    DATA: DOC_CHNG  LIKE SODOCCHGI1.
    DATA: TAB_LINES LIKE SY-TABIX.
    Spool table
    TABLES : TSP01.
    Data required for creating spool
    DATA: MSTR_PRINT_PARMS LIKE PRI_PARAMS VALUE 'LP01',
          MC_VALID(1),
          MI_BYTECOUNT TYPE I,
          MI_LENGTH    TYPE I,
          MI_RQIDENT   LIKE TSP01-RQIDENT,
          REP          LIKE PRI_PARAMS-PLIST.
    Internal table for capturing data into PDF format
    DATA: MTAB_PDF LIKE TLINE OCCURS 0 WITH HEADER LINE.
    File name
    DATA : MC_FILENAME LIKE RLGRAP-FILENAME.
    SELECTION SCREEN
    PARAMETERS : P_REPID LIKE SY-REPID,
                 P_LINSZ LIKE SY-LINSZ DEFAULT 132,
                 P_PAART LIKE SY-PAART DEFAULT 'X_65_132'.
    START-OF-SELECTION.
    <b>  CONCATENATE 'C:\'
                   P_REPID
                  '.PDF'
             INTO  MC_FILENAME.</b>
      MOVE SY-REPID TO REP.
    Get print parameters
      PERFORM GET_PRINT_PARAMS.
    Send output of the required program to Spool
      SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                          SPOOL PARAMETERS MSTR_PRINT_PARMS
                          VIA SELECTION-SCREEN AND RETURN.
    Get the the spool number that is just created
      PERFORM GET_SPOOL_NUMBER USING    SY-REPID SY-UNAME
                               CHANGING MI_RQIDENT.
    Convert Spool to PDF & download the same
      PERFORM SPOOL_2_PDF.
    Upload downloaded PDF file for mailing
      PERFORM UPLOAD_PDF_FILE.
    Send mail with PDF attachment
      PERFORM SEND_MAIL.
          FORM get_spool_number *
          Get the most recent spool created by user/report              *
    form get_spool_number using    f_repid
                                   f_uname
                          changing f_rqident.
      data:
        lc_rq2name like tsp01-rq2name.
      concatenate f_repid
                  f_uname
             into lc_rq2name separated by '_'.
      select * from tsp01 where  rq2name = sy-repid
        order by rqcretime descending.
        f_rqident = tsp01-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear f_rqident.
      endif.
    endform." get_spool_number
    *&      Form  send_mail
          text
    -->  p1        text
    <--  p2        text
    form send_mail.
    Creation of the document to be sent
      DOC_CHNG-OBJ_NAME = 'TEST'.
      DOC_CHNG-OBJ_DESCR = 'TEST MAIL WITH PDF ATTACHMENT'. "mail subject
      OBJTXT = 'Test mail with PDF attachment'.
      APPEND OBJTXT.
      CLEAR OBJTXT.
      APPEND OBJTXT.
      APPEND OBJTXT.
      OBJTXT = 'Please double click the attachment to verify'.
      APPEND OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creation of the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM   = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM   = TAB_LINES.
      OBJPACK-DOC_TYPE   = 'RAW'.
      APPEND OBJPACK.
      DESCRIBE TABLE OBJBIN LINES TAB_LINES.
      OBJHEAD = 'Sample PDF attachement'. "
      APPEND OBJHEAD.
    Creation of the entry for the compressed attachment
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM   = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM   = TAB_LINES.
    <b>  OBJPACK-DOC_TYPE   = 'PDF'.</b>
      OBJPACK-OBJ_NAME   = 'TEST'.
      OBJPACK-OBJ_DESCR  = 'Test.PDF'.
      OBJPACK-DOC_SIZE   = TAB_LINES * 255.
      APPEND OBJPACK.
    Completing the recipient list
    For sending mail to Internet Address
      RECLIST-RECEIVER = '[email protected].
      RECLIST-REC_TYPE = 'U'.
      APPEND RECLIST.
    Sending the document
           CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
                EXPORTING
                     DOCUMENT_DATA = DOC_CHNG
                     PUT_IN_OUTBOX = 'X'
                TABLES
                     PACKING_LIST  = OBJPACK
                     OBJECT_HEADER = OBJHEAD
                     CONTENTS_BIN  = OBJBIN
                     CONTENTS_TXT  = OBJTXT
                     RECEIVERS     = RECLIST
                EXCEPTIONS
                     TOO_MANY_RECEIVERS         = 1
                     DOCUMENT_NOT_SENT          = 2
                     OPERATION_NO_AUTHORIZATION = 4
                     OTHERS                     = 99.
          CASE SY-SUBRC.
            WHEN 0.
              WRITE  :/ 'MAIL SENT....'.
            WHEN 1.
              WRITE  :/ 'TOO MANY RECEIVERS'.
            WHEN 2.
              WRITE  :/ 'DOCUMENT NOT SENT'.
            WHEN 4.
              WRITE  :/ 'NO SEND AUTHORIZATION'.
            WHEN OTHERS.
              WRITE  :/ 'ERROR OCCURED WHILE SENDING MAIL'.
          ENDCASE.
    endform.                    " send_mail
    *&      Form  GET_PRINT_PARAMS
    FORM GET_PRINT_PARAMS.
      call function 'GET_PRINT_PARAMETERS'
      exporting destination           = 'LP01'
                copies                = 1
                list_name             = rep
                list_text             = 'LIST ..... TO SAP-SPOOL'
                immediately           = 'X'
                release               = 'X'
                new_list_id           = 'X'
                expiration            = 1
                line_size             = 132
                line_count            = 65
                layout                = 'X_PAPER'
                sap_cover_page        = 'X'
                cover_page            = 'X'
                receiver              = sy-uname
                department            = 'System'
                no_dialog             = 'X'
      importing out_parameters        =  mstr_print_parms
                valid                 = mc_valid.
    ENDFORM.                    " GET_PRINT_PARAMS
    *&      Form  SPOOL_2_PDF
    FORM SPOOL_2_PDF.
        call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid      = mi_rqident
          no_dialog        = space
          dst_device       = mstr_print_parms-pdest
        importing
          pdf_bytecount    = mi_bytecount
        tables
          pdf              = mtab_pdf
        exceptions
          err_no_abap_spooljob           = 1
          err_no_spooljob                = 2
          err_no_permission              = 3
          err_conv_not_possible          = 4
          err_bad_destdevice             = 5
          user_cancelled                 = 6
          err_spoolerror                 = 7
          err_temseerror                 = 8
          err_btcjob_open_failed         = 9
          err_btcjob_submit_failed       = 10
          err_btcjob_close_failed        = 11
          others     = 12.
         call function 'WS_DOWNLOAD'
           exporting
             bin_filesize                  =  mi_bytecount
    <b>        filename                      =  mc_filename</b>
             filetype                      = 'BIN'
           tables
             data_tab                      =  mtab_pdf
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    ENDFORM.                    " SPOOL_2_PDF
    *&      Form  UPLOAD_PDF_FILE
    FORM UPLOAD_PDF_FILE.
      call function 'WS_UPLOAD'
        exporting
    <b>      filename                      = mc_filename</b>
          filetype                      = 'BIN'
        tables
          data_tab                      = OBJBIN
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    ENDFORM.                    " UPLOAD_PDF_FILE
    **reward if helpful
    regards,
    madhumitha

  • Problem sending email with attachment by android

    Good Morning, I'm Luca.
    I have this problem:
    through a smartphone with Android system,
    synchronized via ActiveSync, the user
    is unable to send emails with attachments.
    While you can receive them and
    open them without problem.
    We have a server with Exchange 2010.
    Is there any authorization that I have to give
    you?
    Other devices, always with Android system,
    with other accounts of course,
    does not have the same problem.
    Thank you very much
    Best regards

    Luca, if one user is able to send attachments, the other should be able to as well.  However, if an attachment is too large, it won't be delivered.  
    Agreed, This does sound like a size limitation issue.
    Have the person try to send the same file from his outlook on his PC and see if he can send it out, that should be a good indication.

  • Problem sending emails with exchange server

    Hello,
    I have a MacBook pro OS X 10.9.2 and I am unable to send emails through Mail (I have an exchange account). Everything was working well until yesterday: I could send and receive emails through my exchange account using Mail. I can still receive all my messages but I can't send anything now.
    My internet connexion is fine, and I am able to connect to my exchange account on internet. I also have an ipad and I don't have any problem sending/receiving emails. Can somebody help me with this issue ?
    Thanks a lot in advance !

    OS X Mail: Troubleshooting sending and receiving email messages

  • Problem sending mail with roaming profile (Outlook 2010)

    Hello all,
    I hope you will be able to help me.
    Here's the problem I have with Outlook 2010:
    When a user opens a roaming profile on another
    PC or on his new
    PC, everything works perfectly except
    Outlook.
    Outlook opens normally with all email
    accounts, you can even see the email, no worries
    about that.
    But when we want to send an email, it
    gets stuck in the outbox.
    Some additional info:
         - In the account settings,
    you can test the account settings, it says
    that everything is working (sending and receiving)
         - The only way I found today to
    operate the account is to
    completely remove and reconfigure
         - There is an error message
    that says I can not write on the file C:\Users\UserName\AppData\Roaming\Microsoft\Outlook\accountName.pst
         - The problem occurs with
    all users, not just one in particular
         - The accounts are IMAP
         - Incoming emails work
    Thank you for your help.

    Hi Tim,
    This is a known issue in Outlook, we don't recommend using IMAP account with roaming profile.
    For more information, you might want to read this similar thread:
    https://social.technet.microsoft.com/Forums/office/en-US/f9b1bf03-d468-46e8-b40d-76fac11fd66c/outlook-2010-creates-new-imap-pst-files-at-random-and-cannot-send-mail-roaming-profiles-and-imap?forum=outlook
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Problem sending emails with gmail on iPhone

    Everytime I send email with gmail on my iPhone. The message doesn't show up in the folder sent messages (only on the server). This never happens with my iCloud account or when I send email from Mail in osx. Does anyone have a solution for this?

    Take a look at this link, https://discussions.apple.com/message/21206691#21206691

  • Problem sending email with Yahoo ISP

    All of a sudden today could not send emails (receive emails OK) on all 3 computers on two different sub accounts using the old flash.net ISP (Yahoo). I'm using Apple Mail 2.1. Called Yahoo and had to change the outgoing mail server from mail.flash.net to smtp.sbcglobal.net and all 3 computers were able to send mail again.
    Interestingly tried it on Entourage and didn't work. smtp.flash.yahoo.com worked for send email with Entourage. Didn't know the outgoing mail server was application dependent. Thought maybe this information would save sombody a call to yahoo. Terry
    Power Mac G4 1 GHz Dual   Mac OS X (10.4.8)  

    Interesting.
    A mail server is a mail server, is a mail server.
    Usually, the SMTP server config will either work or it won't.
    Interesting that your Mail.app needs one config, and entourage another.
    I'll bet entourage will need to have the new config soon, or there was something else borked on your Mail.app config.

  • Problem sending emails with Mac Mail 1.3.11

    Desperately in need of help. I'm able to receive but not send email using Mac Mail. I keep getting an error message:
    "This message could not be delivered and will remain in your Outbox until it can be delivered.
    The sender address [email protected] was rejected by the server"
    I have already tried the following at the advice of AppleCare reps:-
    Have verified & repaired disk utilities & keychains
    Have reinstalled the operating system
    Have trashed the mail.plist file
    Have trashed the outbox.mbox file
    Getting quite frustrated now because we have a mac bookpro with identical mail settings and it is able to send and receive mail without any problems.Could it be the version of Mail I'm running ?
    I initially thought that the problem related to having switched to a new ISP but the fact that one of the mac's has no problem has led me to be less convinced of that idea.
    Any suggestions gratefully accepted.
    Many thanks

    I am having the same problem exactly. I can read e-mail, but get the same error message trying to send it. I can't use .Mac anymore--have to use alternate e-mail for the last month--since some time in October 2006.
    I haven't changed anything on my G4, haven't upgraded anything, and the problem started about the time .Mac reported some customers were unable to use Mail for a couple of days in October.
    I see nobody answered your post. Did you ever get your mail to work? I have repaired permissions, but I don't think it has anything to do with that.
    Thanks,
    iMama
    G4 Quicksilver 867Mhz 60GB   Mac OS X (10.3.8)   Maxtor 120GB internal; LaCie 150GB external HD

  • Problem sending form with fmt:message key=" " / tag system and jsp code

    I have developt my new web page using jsp. I have done a booking form, please se below here. There are two pages, bookings.jsp and booking_sent.jsp. The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all. For more information follow this link and try out the form;
    http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    BOOKINGS.JSP
    <%@page import="com.neptunediving.*"%>
    <%@include file="../WEB-INF/include/LangSupport.jsp"%>
    <%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title><fmt:message key="bookings.title1" /></title>
    <META NAME="description" Content="<fmt:message key="bookings.description1" />
    <fmt:message key="bookings.description2" />
    <fmt:message key="bookings.description3" />">
    <meta name="keywords" CONTENT="<fmt:message key="bookings.keywords1" />
    <fmt:message key="bookings.keywords2" />
    <fmt:message key="bookings.keywords3" />">
    <meta name="robots" CONTENT="index, follow">
    <link rel="shortcut icon" href="favicon.ico" >
    <meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
    <meta name="Author" CONTENT="Jesper Nykvist">
    <META NAME="revisit-after" CONTENT="45 days">
    <META NAME="classification" CONTENT="diving">
    <META NAME="classification" CONTENT="scuba">
    <META NAME="classification" CONTENT="accommodation">
    <META NAME="classification" CONTENT="travel">
    <META NAME="classification" CONTENT="restaurants">
    <META NAME="distribution" CONTENT="global">
    <meta name="FreeFind" content="neverFollowScript">
    <meta name="FreeFind" content="noFollowQueries">
    <link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a name="Return"></a>
    <div class="pageHead">
    <div align="center"><%@include
         file="../WEB-INF/include/header.jsp"%></div>
    </div>
    <table class="nav" cellspacing="0">
         <tbody>
              <%@include file="../WEB-INF/include/bookings.jsp"%>
              <table width="100%" height="362" cellspacing="0" class="listTable">
                   <tbody>
                        <tr class="subhead">
                             <td width="54%" height="31"><%@include
                                  file="../WEB-INF/include/freefind.jsp"%></td>
                             <td width="46%">
                             <h1><span class="date"> <%@include
                                  file="../WEB-INF/include/showtime.jsp"%> </span></h1>
                             </td>
                        </tr>
                        <tr>
                             <td height="169" colspan="2">
                             <h2 align="center" class="listTable"><fmt:message key="general.bookings.header1" /></h2>
                             <h2 align="center" class="listTable"><fmt:message key="general.bookings.header2" /></h2>
                             <hr />
                             <p align="center"><fmt:message key="general.bookings.header3" />
                             <fmt:message key="general.bookings.header4" />
                             <fmt:message key="general.bookings.header5" /></p>
                             <p align="center"><fmt:message key="general.bookings.header6" />
                             <fmt:message key="general.bookings.header7" />
                             <fmt:message key="general.bookings.header8" /></p>
                             <hr />
                             </td>
                        </tr>
                        <tr>
                                       <td height="20" colspan="2">
                                       <form id="bookings" name="bookings" method="post"
                                       action="booking_sent.jsp">
                                       <h2 class="newsBody"><fmt:message key="general.bookings.header9" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text1" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="from" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text2" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="email" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text3" /></p>
                                       </td>
                                       <td width="30%"><select name="region">
                                            <option><fmt:message key="general.bookings.text4" /></option>
                                            <option><fmt:message key="general.bookings.text5" /></option>
                                            <option><fmt:message key="general.bookings.text6" /></option>
                                            <option><fmt:message key="general.bookings.text7" /></option>
                                            <option><fmt:message key="general.bookings.text8" /></option>
                                            <option><fmt:message key="general.bookings.text9" /></option>
                                            <option><fmt:message key="general.bookings.text10" /></option>
                                            <option><fmt:message key="general.bookings.text11" /></option>
                                            <option><fmt:message key="general.bookings.text12" /></option>
                                            <option><fmt:message key="general.bookings.text13" /></option>
                                            <option><fmt:message key="general.bookings.text14" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text15" /></p>
                                       </td>
                                       <td width="30%"><select name="language">
                                            <option><fmt:message key="general.bookings.text16" /></option>
                                            <option><fmt:message key="general.bookings.text17" /></option>
                                            <option><fmt:message key="general.bookings.text18" /></option>
                                            <option><fmt:message key="general.bookings.text19" /></option>
                                            <option><fmt:message key="general.bookings.text20" /></option>
                                            <option><fmt:message key="general.bookings.text21" /></option>
                                            <option><fmt:message key="general.bookings.text22" /></option>
                                            <option><fmt:message key="general.bookings.text23" /></option>
                                            <option><fmt:message key="general.bookings.text24" /></option>
                                            <option><fmt:message key="general.bookings.text25" /></option>
                                            <option><fmt:message key="general.bookings.text26" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text27" />
                                       <fmt:message key="general.bookings.text28" />
                                       <fmt:message key="general.bookings.text29" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text30" /><input type="radio"
                                            name="mailing" value="Yes" />
                                            <class="listTable"><fmt:message key="general.bookings.text31" /><input type="radio"
                                            name="mailing" value="No" checked="checked" /></p>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text32" /></p>
                                       </td>
                                       <td width="30%"><select name="find us">
                                            <option><fmt:message key="general.bookings.text33" /></option>
                                            <option><fmt:message key="general.bookings.text34" /></option>
                                            <option><fmt:message key="general.bookings.text35" /></option>
                                            <option><fmt:message key="general.bookings.text36" /></option>
                                            <option><fmt:message key="general.bookings.text37" /></option>
                                            <option><fmt:message key="general.bookings.text38" /></option>
                                            <option><fmt:message key="general.bookings.text39" /></option>
                                            <option><fmt:message key="general.bookings.text40" /></option>
                                            <option><fmt:message key="general.bookings.text41" /></option>
                                            <option><fmt:message key="general.bookings.text42" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       </table>
                                       <br />
                                       <h2 class="newsBody"><fmt:message key="general.bookings.text43" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text44" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="flight no, from"
                                            size="30" maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text45" /></p>
                                       </td>
                                       <td width="30%"><input type="text"
                                            name="arrival time, place" size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text46" />
                                       <fmt:message key="general.bookings.text47" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text48" /><input type="radio"
                                            name="transport" value="Pick-up" />
                                            <class ="listtable="listTable""><fmt:message key="general.bookings.text49" /><input type="radio"
                                            name="transport" value="Bus" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text50" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text51" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text52" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (adults)" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text53" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (children)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text54" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="rooms (fan)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text55" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="rooms (air-con)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                             </table>
                             <br />
                             <h2 class="newsBody"><fmt:message key="general.bookings.text56" /></h2>
                             <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text57" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text58" /><input type="radio"
                                            name="certified diver" value="Yes" />
                                            <class="listTable"><fmt:message key="general.bookings.text59" /><input type="radio"
                                            name="certified diver" value="No" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text60" />
                                       <fmt:message key="general.bookings.text61" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text62" /><input type="radio"
                                            name="introductory course" value="Yes" />
                                            <class ="listTable""><fmt:message key="general.bookings.text63" /><input type="radio"
                                            name="introductory course" value="No" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text64" /></p>
                                       </td>
                                       <td width="30%"><select name="where to dive">
                                            <option><fmt:message key="general.bookings.text65" /></option>
                                            <option><fmt:message key="general.bookings.text66" /></option>
                                            <option><fmt:message key="general.bookings.text67" /></option>
                                       </select></td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text68" /></p>
                                       </td>
                                       <td width="30%"><select name="dive course(s)">
                                            <option><fmt:message key="general.bookings.text69" /></option>
                                            <option><fmt:message key="general.bookings.text70" /></option>
                                            <option><fmt:message key="general.bookings.text71" /></option>
                                            <option><fmt:message key="general.bookings.text72" /></option>
                                            <option><fmt:message key="general.bookings.text73" /></option>
                                            <option><fmt:message key="general.bookings.text74" /></option>
                                            <option><fmt:message key="general.bookings.text75" /></option>
                                            <option><fmt:message key="general.bookings.text76" /></option>
                                            <option><fmt:message key="general.bookings.text77" /></option>
                                            <option><fmt:message key="general.bookings.text78" /></option>
                                            <option><fmt:message key="general.bookings.text79" /></option>
                                            <option><fmt:message key="general.bookings.text80" /></option>
                                       </select>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text81" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="other dive course"
                                            size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text82" /></p>
                                       </td>
                                       <td width="30%"><select name="divepackage / safari">
                                            <option><fmt:message key="general.bookings.text83" /></option>
                                            <option><fmt:message key="general.bookings.text84" /></option>
                                            <option><fmt:message key="general.bookings.text85" /></option>
                                            <option><fmt:message key="general.bookings.text86" /></option>
                                            <option><fmt:message key="general.bookings.text87" /></option>
                                            <option><fmt:message key="general.bookings.text88" /></option>
                                            <option><fmt:message key="general.bookings.text89" /></option>
                                            <option><fmt:message key="general.bookings.text90" /></option>
                                            <option><fmt:message key="general.bookings.text91" /></option>
                                            <option><fmt:message key="general.bookings.text92" /></option>
                                            <option><fmt:message key="general.bookings.text93" /></option>
                                       </select>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text94" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="dive package or safari from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text95" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="dive package or safari to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                  </table>
                             <br />
                             <h2 class="newsBody"><fmt:message key="general.bookings.text96" /></h2>
                             <fmt:message key="general.bookings.text97" />
                             <fmt:message key="general.bookings.text98" />
                             <fmt:message key="general.bookings.text99" /></p>
                             <div align="left"> <textarea name="comments" cols="55" rows="10"></textarea>
                             <div>
                             <br />
                             <input name="Submit" type="submit" value="<fmt:message key="general.bookings.button1" />" />
                             <input type="reset" name="Clear form and start again..!"
                             value="<fmt:message key="general.bookings.button2" />" /></p>
                             </form>
                             </td>
                        </tr>
                        <tr>
                             <td height="29" colspan="2"><a href="#Return"><img
                                  src='<%=URLHelper.getURL("images/arrow.gif")%>'
                                  alt="Return to top" width="21" height="21" border="0" /></a>
                                  <fmt:message key="general.bookings.link1" />
                             </td>
                        </tr>
                        <tr>
                             <td height="105" colspan="2">
                             <hr />
                             <div class="pageFoot">
                             <div align="center"><font size="-1"><b><font
                                  size="3" face="Verdana, Arial, Helvetica, sans-serif"> <%@include
                                  file="../WEB-INF/include/footer.jsp"%>
                             </div>
                             </td>
                        </tr>
                   </tbody>
              </table>
              <p><br style="clear: both;" />
              </p>
         </tbody>
    </table>
    </body>
    </html>
    BOOKING_SENT.JSP
    <%@page import="com.neptunediving.*"%>
    <%@include file="../WEB-INF/include/LangSupport.jsp"%>
    <%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
    <%
         String message;
         message  = "Booking";
         message += "\r\nFrom: " + request.getParameter("from");
         message += "\r\nEmail: " + request.getParameter("email");
         message += "\r\nRegion: " + request.getParameter("region");
         message += "\r\nlanguage: " + request.getParameter("language");
         message += "\r\nMailing: " + request.getParameter("mailing");
         message += "\r\nFind us: " + request.getParameter("find us");
         message += "\r\nFlight: " + request.getParameter("flight no, from");
         message += "\r\nArrival: " + request.getParameter("arrival time, place");
         message += "\r\nPickup: " + request.getParameter("transport");
         message += "\r\nStay from: " + request.getParameter("stay from");
         message += "\r\nStay to: " + request.getParameter("stay to");
         message += "\r\nAdult: " + request.getParameter("guests (adults)");
         message += "\r\nChildren: " + request.getParameter("guests (children)");
         message += "\r\nFan: " + request.getParameter("rooms (fan)");
         message += "\r\nAir-con: " + request.getParameter("rooms (air-con)");
         message += "\r\nCertification: " + request.getParameter("certified diver");
         message += "\r\nIntroductory dive: " + request.getParameter("introductory course");
         message += "\r\nWhere to dive: " + request.getParameter("where to dive");
         message += "\r\nDive courses: " + request.getParameter("dive course(s)");
         message += "\r\nOther dive course: " + request.getParameter("other dive course");
         message += "\r\nDive package or safari: " + request.getParameter("divepackage / safari");
         message += "\r\nDive package or safari from: " + request.getParameter("dive package or safari from");
         message += "\r\nDive package or safari to: " + request.getParameter("dive package or safari to");
         message += "\r\nComments: " + request.getParameter("comments");
         Mailer mailer = new Mailer();
         mailer.sendMail(request.getParameter("from") + "<" + request.getParameter("email") + ">",
                   "booking_sent",
                   message);
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title><fmt:message key="booking_sent.title1" /></title>
    <META NAME="description" Content="<fmt:message key="booking_sent.description1" />
    <fmt:message key="booking_sent.description2" />
    <fmt:message key="booking_sent.description3" />">
    <meta name="keywords" CONTENT="<fmt:message key="booking_sent.keywords1" />
    <fmt:message key="booking_sent.keywords2" />
    <fmt:message key="booking_sent.keywords3" />">
    <meta name="robots" CONTENT="index, follow">
    <link rel="shortcut icon" href="favicon.ico" >
    <meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
    <meta name="Author" CONTENT="Jesper Nykvist">
    <META NAME="revisit-after" CONTENT="45 days">
    <META NAME="classification" CONTENT="diving">
    <META NAME="classification" CONTENT="scuba">
    <META NAME="classification" CONTENT="accommodation">
    <META NAME="classification" CONTENT="travel">
    <META NAME="classification" CONTENT="restaurants">
    <META NAME="distribution" CONTENT="global">
    <meta name="FreeFind" content="neverFollowScript">
    <meta name="FreeFind" content="noFollowQueries">
    <link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a name="Return"></a>
    <div class="pageHead">
    <div align="center"><%@include
         file="../WEB-INF/include/header.jsp"%></div>
    </div>
    <table class="nav" cellspacing="0">
         <tbody>
              <%@include file="../WEB-INF/include/bookings.jsp"%>
              <table width="100%" height="362" cellspacing="0" class="listTable">
                   <tbody>
                        <tr class="subhead">
                             <td width="54%" height="31"><%@include
                                  file="../WEB-INF/include/freefind.jsp"%></td>
                             <td width="46%">
                             <h1><span class="date"> <%@include
                                  file="../WEB-INF/include/showtime.jsp"%> </span></h1>
                             </td>
                        </tr>
                        <tr>
                             <td height="169" colspan="2">
                             <h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header1" /></h2>
                             <h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header2" /></h2>
                             <hr />
                             <p align="center"><fmt:message key="general.booking_sent.header3" />
                             <fmt:message key="general.booking_sent.header4" />
                             <fmt:message key="general.booking_sent.header5" /></p>
                             <p align="center"><fmt:message key="general.booking_sent.header6" />
                             <fmt:message key="general.booking_sent.header7" />
                             <fmt:message key="general.booking_sent.header8" /></p>
                             <hr />
                             </td>
                        </tr>
                        <tr>
                                       <td height="20" colspan="2">
                                       <form id="bookings" name="bookings" method="post"
                                       action="booking_sent.jsp">
                                       <h2 class="newsBody"><fmt:message key="general.booking_sent.header9" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text1" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="from" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text2" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="email" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text3" /></p>
                                       </td>
                                       <td width="30%"><select name="region">
                                            <option><fmt:message key="general.booking_sent.text4" /></option>
                                            <option><fmt:message key="general.booking_sent.text5" /></option>
                                            <option><fmt:message key="general.booking_sent.text6" /></option>
                                            <option><fmt:message key="general.booking_sent.text7" /></option>
                                            <option><fmt:message key="general.booking_sent.text8" /></option>
                                            <option><fmt:message key="general.booking_sent.text9" /></option>
                                            <option><fmt:message key="general.booking_sent.text10" /></option>
                                            <option><fmt:message key="general.booking_sent.text11" /></option>
                                            <option><fmt:message key="general.booking_sent.text12" /></option>
                                            <option><fmt:message key="general.booking_sent.text13" /></option>
                                            <option><fmt:message key="general.booking_sent.text14" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text15" /></p>
                                       </td>
                                       <td width="30%"><select name="language">
                                            <option><fmt:message key="general.booking_sent.text16" /></option>
                                            <option><fmt:message key="general.booking_sent.text17" /></option>
                                            <option><fmt:message key="general.booking_sent.text18" /></option>
                                            <option><fmt:message key="general.booking_sent.text19" /></option>
                                            <option><fmt:message key="general.booking_sent.text20" /></option>
                                            <option><fmt:message key="general.booking_sent.text21" /></option>
                                            <option><fmt:message key="general.booking_sent.text22" /></option>
                                            <option><fmt:message key="general.booking_sent.text23" /></option>
                                            <option><fmt:message key="general.booking_sent.text24" /></option>
                                            <option><fmt:message key="general.booking_sent.text25" /></option>
                                            <option><fmt:message key="general.booking_sent.text26" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text27" />
                                       <fmt:message key="general.booking_sent.text28" />
                                       <fmt:message key="general.booking_sent.text29" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text30" /><input type="radio"
                                            name="mailing" value="Yes" />
                                            <class="listTable"><fmt:message key="general.booking_sent.text31" /><input type="radio"
                                            name="mailing" value="No" checked="checked" /></p>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text32" /></p>
                                       </td>
                                       <td width="30%"><select name="find us">
                                            <option><fmt:message key="general.booking_sent.text33" /></option>
                                            <option><fmt:message key="general.booking_sent.text34" /></option>
                                            <option><fmt:message key="general.booking_sent.text35" /></option>
                                            <option><fmt:message key="general.booking_sent.text36" /></option>
                                            <option><fmt:message key="general.booking_sent.text37" /></option>
                                            <option><fmt:message key="general.booking_sent.text38" /></option>
                                            <option><fmt:message key="general.booking_sent.text39" /></option>
                                            <option><fmt:message key="general.booking_sent.text40" /></option>
                                            <option><fmt:message key="general.booking_sent.text41" /></option>
                                            <option><fmt:message key="general.booking_sent.text42" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       </table>
                                       <br />
                                       <h2 class="newsBody"><fmt:message key="general.booking_sent.text43" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text44" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="flight no, from"
                                            size="30" maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text45" /></p>
                                       </td>
                                       <td width="30%"><input type="text"
                                            name="arrival time, place" size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text46" />
                                       <fmt:message key="general.booking_sent.text47" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text48" /><input type="radio"
                                            name="transport" value="Pick-up" />
                                            <class ="listtable="listTable""><fmt:message key="general.booking_sent.text49" /><input type="radio"
                                            name="transport" value="Bus" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text50" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text51" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text52" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (adults)" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text53" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (children)" size="30"
                                            maxlength="25" />
                                        </td>
                              

    Nope, can't delete posts on this forum,
    I have developed my new web page using jsp. I have done a booking form,
    There are two pages, bookings.jsp and booking_sent.jsp.
    The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all.
    For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    Tried going to that URL and got an error page served by Apache Webserver
    Maybe you haven't got the correct connector going between the webserver and the application server?

  • N91 problem sending SMS with non English character...

    Hello I own a N91 4GB version. I have upgraded to version 2.20.008. I checked recently and have not found a newer version available for download.
    When composing an SMS a counter appears on the upper part of the screen, which shows how many characters remain and how many SMS(s) will be sent.
    When I use my native language, i.e. Greek, the counter starts as usual with 160 characters. When I type the first character it drops to 69 characters and then it works correctly decreasing the counter by 1. The result is that the phone sends more than 1 SMS even if there are no more than 160 characters.
    The problem does not appear if I use English characters.
    Is there a way to fix this? Do other users have the same problem?

    Hello alsanico,
    I'm from Greece too.
    I haven't seen N91's exact menu but i suppose it has similarities with my N95. They both run S60.
    Settings-
    General-
    Personalisation-
    Language-
    Writing Language-Ellinika
    If you have already made these settings then go to:
    Messaging-
    Options (left selection key)-
    Settings-
    Text Message-
    Character encoding-
    Reduced support
    Hope this helps...

  • Problem Sending attachments with JavaMail API

    Hi,
    I am able to succesfully able to send the attachment but the body message is not going with it. If i dont send the attachment then the email body goes properly. i can't understand what the problem is . please help.
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import com.sun.mail.smtp.SMTPMessage;
    public class Emailer
         String emailSubject = null;
         String emailBody = null;
        String smtphost = null;
         String ccAddr = null;
         String file = "C:\\trainee\\eclipse_lg.gif";
         Vector vecToAddr = null;
         Vector vecCCAddr = null;
         Address fromAddr = null;
      public Emailer(Hashtable hashConfigParam) throws Exception
            smtphost = (String)hashConfigParam.get("host");
            ccAddr = (String)hashConfigParam.get("ccAddr");
            vecToAddr = new Vector();
            vecCCAddr = new Vector();
      public Boolean setFromAddr(String fromEmailAddr)
              try
                   fromAddr = new InternetAddress (fromEmailAddr);
                   //if(true)
                   //throw new IOException();
              catch (Exception e)
                   return null;
         return new Boolean(true);
      public Boolean setToAddr(String toEmailAddr)
              try
                   for(int j=0; j< vecToAddr.size();j++)
                        if(((String)vecToAddr.get(j)).equals(toEmailAddr))
                             return new Boolean(false);
                   vecToAddr.add(toEmailAddr);
                   //if(true)
                   //throw new IOException();
              catch (Exception e)
                   return null;
                   return new Boolean(true);     
         public Boolean setCCAddr(String ccEmailAddr)
              try
                   for(int j=0; j< vecCCAddr.size();j++)
                        if(((String)vecCCAddr.get(j)).equals(ccEmailAddr) && ((String)vecCCAddr.get(j)).equals(ccAddr))
                             return new Boolean(false);
                   vecCCAddr.add(ccEmailAddr);
                   vecCCAddr.add(ccAddr);
                   //if(true)
                   //throw new IOException();
              catch (Exception e)
                   //System.out.println(e.getClass().getName());
                   return null;
              return new Boolean(true);               
         public Boolean setEmailSubject(String subject)
              try
                   emailSubject = subject;
                   if(emailSubject.equals(null))
                        return new Boolean(false);
                   else
                        return new Boolean(true);
              catch (Exception e)
                   return null;
              //return new Boolean(false);
         public Boolean setEmailBody(String body)
              try
                   emailBody = body;
                   if(emailBody.equals(""))
                        return new Boolean(false);
                   else
                        return new Boolean(true);
              catch (Exception e)
                   return null;
              //return new Boolean(false);
      public void sendEmail()
           try
                Properties eMailConfigProps = null;
                eMailConfigProps = System.getProperties();
                eMailConfigProps.put("mail.smtp.host", smtphost);
                Session session = Session.getInstance(eMailConfigProps, null);
                MimeMessage message = new MimeMessage(session);
                   try
                     message.setFrom(fromAddr);
                      for(int i=0; i< vecToAddr.size(); i++)
                         message.addRecipient(Message.RecipientType.TO,new InternetAddress((String)vecToAddr.get(i)));
                         for(int i=0; i< vecCCAddr.size(); i++)
                          message.addRecipient(Message.RecipientType.CC,new InternetAddress((String)vecCCAddr.get(i)));
                      message.setSubject(emailSubject);
                      //message.setText(emailBody);
                       BodyPart messageBodyPart = new MimeBodyPart();
                        messageBodyPart.setText(emailBody);
                        Multipart multipart = new MimeMultipart();
                        DataSource source = new FileDataSource(file);
                        messageBodyPart.setDataHandler(new DataHandler(source));
                        messageBodyPart.setFileName(file);
                        multipart.addBodyPart(messageBodyPart);
                        message.setContent(multipart);
                        Transport.send(message);
                   catch (SendFailedException ex)
                     ex.printStackTrace();
                   catch (MessagingException ex)
                     System.err.println("Exception. " + ex);
           catch (Exception e)
                System.out.println(e.toString());
    public static void main(String args[])
          Hashtable hash = new Hashtable();
          hash.put("host","213.312.230.211");
          hash.put("ccAddr","[email protected]");
         try
               Emailer objEmailer = new Emailer(hash);
              Boolean fromFlag = objEmailer.setFromAddr("[email protected]");
              String toAddresses = "[email protected]";
              String ccAddresses = "[email protected]";
              Boolean toFlag = objEmailer.setToAddr(toAddresses);
              Boolean ccFlag = objEmailer.setCCAddr(ccAddresses);
              Boolean subjectFlag  = objEmailer.setEmailSubject("Emailer.java");
              Boolean bodyFlag = objEmailer.setEmailBody("blah blah blahblha ");
              if((fromFlag.toString()).equals("true") && (toFlag.toString()).equals("true") && (bodyFlag.toString()).equals("true"))
                   objEmailer.sendEmail();
         catch(AddressException e)
              e.printStackTrace();
         catch(Exception e)
              e.printStackTrace();

    i.e example :
    u can do it in this way
    MimeBodyPart messageBody = new MimeBodyPart();
    messageBody.setText("your message body goes here");
    // attaching file i.e make separate object of body part
    MimeBodyPart messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(filePath);
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName(fileName);
    multipart.addBodyPart(messageBody);
    multipart.addBodyPart(messageBodyPart);
    mimemessage.setContent(multipart);
    Transport.send(mimemessage);

  • Problem sending email with attachment to another person

    04-08-2010 02:26 PM - last edited on 04-08-2010 03:05 PM
    I will try to keep this short.  I downloaded an app on one of my attorneys Curve 8330.  It is called Dataworx and lets her dictate then email the file to her secretary to convert and transcribe.  I can get a regular email to go through but when I try to send the one with the dictation it doesnt go and I get a message in the "sent using" section that says "unknown (secure)" and then under Message status it says "unable to find specified service"  When I use the same app on my Blackberry Storm I can dictate and email the file with no problem and open the attachment.  Can anyone help me.  I am a bit blackberry illiterate.  Thank you.
    UPDATE - the emails are finally coming to the intended recipient but there are no attachments on them.  Not even anything on our firewall saying they were removed.  very frustrating.
    We use an in house Microsoft Exchange server for our email and don't have Blackberry Enterprise or Blackberry Internet. 

    Luca, if one user is able to send attachments, the other should be able to as well.  However, if an attachment is too large, it won't be delivered.  
    Agreed, This does sound like a size limitation issue.
    Have the person try to send the same file from his outlook on his PC and see if he can send it out, that should be a good indication.

Maybe you are looking for

  • I have a new iPod touch. I've synced it through Itunes. None of my iTunes purchases show on my iPod now. Help....

    I've been trying to download some games to my son's iPod touch. I have several now in my iTunes library and have synced the iPod many times. They still do not show up on the iPod.Also, when I click on the purple iTunes app on the iPod it says that it

  • Deleted mail does not appear in the trash can

    When I delete mail from my inbox I can't see it on the Trash "On My Mac". I have set the trash settings to delete everything after one week. Does anyone know why this is happening or how I might be able to fix it. Thanks

  • I can't run my flash

    I had do all the step that guide flash install, but the flash didn't work yet.

  • Predefined "rejected"-album gone

    hi there, somehow my predefined "rejected" smart album is gone. any chance I can create a new one - if I use smart album it won't appear on the top...

  • Need to explore on SAP BO 4.1

    Hello, I have been released from the Project and free for some days. I need to explore on SAP BO 4.1, Can you please direct me to explore & expert on SAP BO 4.1 ? Do we have any Sample BO VM to practice? your suggestions are most welcome to experty o