Problem sending IM with physical keyboard

Motorola Droid 4 XT894 w/ CyanogenMod 10.1.3-maserati (Although it was same issue when I was on stock Android), Verizon and WiFi, Skype v4.4.0.31835
This has been a huge issue for me for a while, and I thought all the updates to Skype would eventually fix this bug...but apparently not.
My phone has a physical keyboard, and while I understand physical keyboards are being phased out, and that Skype is desigend around the touch screen, I feel it's still important to support these needs as I use  Skype for chats as well.  
The issue is that when I slide out my keyboard and type a message, the send button dissappears and I cannot send the message by pushing the enter key on the physical keyboard, which only creates a new line in the message.  I physically have to slide the keyboard closed on the phone so that the on-screen keyboard shows up and then I can push "Send" on the screen to send a message.  This is a physical nuisance, which brings me to another point...  I really wish Skype did not change that the Enter key on the physical keyboard only creates a new line (which I understand is its intended function), because all the old versions of skype I was able to send messages just fine by hitting enter on the keypad.  I wish there was a general setting that can be checked to say "Enter to Send" like all other popular text messaging apps so you can please both parties...  
What I don't understand is that version 4.12.254 skype for my iPad (MC706LL/A), which I have a bluetooth keyboard linked I can push enter on the physical bluetooth keyboard and it will send the message...what the heck???
This occurence is 5/5 tries.  Please do something about this!  Thank you!
Solved!
Go to Solution.

Using my HP slatebook x2 (convertible netbook), i have come across the issue where i am not able to sent a message on skype, for the simple reason that there is no "sent" button on the screen.
The ENTER-key, will insert a new linebreak.
Using the software keyboard (android's default), there is a button (above the keyboard) to send the message.
When i reconnect my keyboard (remove it and then putting it back on), the button will show up, but only for one-time use.
skype vers.: 4.4.0.31835
android vers: 4.2.2 (stock)
keyboard: default hardware keyboard that HP deliveres with the tablet
Hope the devs can resolve this issue, goodluck!!
Attachments:
IMG_20131013_004139[1].jpg ‏716 KB

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

  • My Mac Book pro recently started in safe boot mode and ever since I have had endless problems - To start with the keyboard will only input capitals and symbols althougth no locks are on and now I have a green wave on all white backgrounds! HELP!

    My Mac Book pro recently started in safe boot mode and ever since I have had endless problems - To start with the keyboard will only input capitals and symbols althougth no locks are on and now I have a green wave on all white backgrounds! HELP!

    Hi it's puzzled of Evesham....I didn't ask the question but have experienced exactly the same. I switched the computer on and it went straight to safe mode

  • 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.

  • To wait or not to wait for BB10 device with physical keyboard

    Hello everyone. I'm really psyched about BB10 but am debating whether or not to buy the touch screen device at launch or wait for a Bold-lie device. I really dislike the softkeyboard on other phones but I've read the BB10 softkeyboard is beyond others in comparison. Can anyone offer some advice?
    Solved!
    Go to Solution.

    Honestly, I am fine with the keyboard intuitive Dev Alpha, however, is subjective ..
    My advice would be to wait for the release in stores to prove it directly
    If U like my post click on LIKE

  • 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

  • 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);

Maybe you are looking for

  • System.in

    I have a small problem. in this: // SquareTest.java // Uses the Square class to read in square data and tell if // each square is magic. import cs1.Keyboard; public class SquareTest public static void main(String[] args)      System.setIn( new FileIn

  • 3rd Party Search Engine Integration - some property not rendering

    Hi, I have tried to integrate a 3rd Party Search Engine into TREX following the published example. I have successfully integrated and search results from the 3rd party engine are showing up. However, some properties like cm_description, cm_contentlen

  • Cannot get online with d-LINK wireless router

    I am using a PB G4 with an Airport card firmware 9.52. All software is up-to-date. (OS 10.4.6) The airport works fine in other locations -- seeing many signals and getting onto internet. But at home it is not working. My roommate has an iBOOK and it

  • Help on configuration

    Hi Experts, I want config document for MM module to know more deatils about configuretion in SAP. Can anyone help me. Regards, Parag.

  • HELP!!!! Adobe will not recognise my serial number - trying to upgrade from LR4 to LR5

    Help... I purchased Adobe Lightroom 4 in January 2013 via Amazon. I am now trying up upgrade to Lightroom 5 (via the Adobe site), and it will not recognise my serial number.  Has anyone experienced this before?  I do not want to buy into the Cloud sc