Subject line 'space' character is lost when sending mail?

Hi,
I'm using JavaMail, and when sending a mail with a subject line that is longer than 62 characters, the last space before the 63rd character becomes a linefeed. This means that when the recipient receives the e-mail, the space in the subject line is actually dropped (becomes a linefeed).
For example. I send an email with the following subject line: "New User Setup [ITNUS-0005] User Setup Progress Report for: Louise Gans".
The recipient will receive the following subject: "New User Setup [ITNUS-0005] User Setup Progress Report for: LouiseGans".
Note the missing space between "Louise Gans". Perhaps someone could test sending out that subject line, and see if they get the same problem?
Looking at the message source on the recipient client, it shows a line feed / new line where that space is supposed to be.
Using MS Outlook or GroupWise or another mail client, the subject lines gets sent through perfectly using the same mail server (Groupwise Internet Agent 7.0.3), but using JavaMail to send the mail through that mail server gives me the space problem.
Can anybody shed some light on why this is happening? I would really appreciate the help.
Here is an example of the code I am testing with:
public class SendHtml {
     public static void main(String[] argv) {
          new SendHtml();
     public SendHtml() {
          String  to = "[email protected]";
          String subject = "New User Setup [ITNUS-0005] User Setup Progress Report for: Louise Gans";
          String from = "[email protected]";
          String cc = null;
          String bcc = null;
          String url = null;
          String mailhost = "mail.server.co.za";
          String mailer = "sendhtml";
          String protocol = null, host = null, user = null, password = null;
          String record = null;     // name of folder in which to record mail
          boolean debug = false;
          BufferedReader in =
               new BufferedReader(new InputStreamReader(System.in));
          try {
               Properties props = System.getProperties();
               if (mailhost != null) {
                    props.put("mail.smtp.host", mailhost);
               // Get a Session object
               Session session = Session.getInstance(props, null);
               // construct the message
               Message msg = new MimeMessage(session);
               if (from != null) {
                    msg.setFrom(new InternetAddress(from));
               else {
                    msg.setFrom();
               msg.setRecipients(Message.RecipientType.TO,
                         InternetAddress.parse(to, false));
               if (cc != null)
                    msg.setRecipients(Message.RecipientType.CC,
                              InternetAddress.parse(cc, false));
               if (bcc != null)
                    msg.setRecipients(Message.RecipientType.BCC,
                              InternetAddress.parse(bcc, false));
               msg.setSubject(subject);
               collect(in, msg);
               msg.setHeader("X-Mailer", mailer);
               msg.setSentDate(new Date());
               // send the thing off
               Transport.send(msg);
               System.out.println("\nMail was sent successfully.");
               // Keep a copy, if requested.
               if (record != null) {
                    // Get a Store object
                    Store store = null;
                    if (url != null) {
                         URLName urln = new URLName(url);
                         store = session.getStore(urln);
                         store.connect();
                    } else {
                         if (protocol != null)          
                              store = session.getStore(protocol);
                         else
                              store = session.getStore();
                         // Connect
                         if (host != null || user != null || password != null)
                              store.connect(host, user, password);
                         else
                              store.connect();
                    // Get record Folder.  Create if it does not exist.
                    Folder folder = store.getFolder(record);
                    if (folder == null) {
                         System.err.println("Can't get record folder.");
                         System.exit(1);
                    if (!folder.exists())
                         folder.create(Folder.HOLDS_MESSAGES);
                    Message[] msgs = new Message[1];
                    msgs[0] = msg;
                    folder.appendMessages(msgs);
                    System.out.println("Mail was recorded successfully.");
          } catch (Exception e) {
               e.printStackTrace();
     public void collect(BufferedReader in, Message msg)
     throws MessagingException, IOException {
          String line;
          String subject = msg.getSubject();
          StringBuffer sb = new StringBuffer();
          sb.append("<HTML>\n");
          sb.append("<HEAD>\n");
          sb.append("<TITLE>\n");
          sb.append(subject + "\n");
          sb.append("</TITLE>\n");
          sb.append("</HEAD>\n");
          sb.append("<BODY>\n");
          sb.append("<H1>" + subject + "</H1>" + "\n");
          sb.append("</BODY>\n");
          sb.append("</HTML>\n");
          msg.setDataHandler(new DataHandler(
                    new ByteArrayDataSource(sb.toString(), "text/html")));
}

The header is being "folded" as described in RFC 2822 section 2.2.3.
The folding doesn't lose the space if unfolding is done properly.
Perhaps the recipient mail program isn't handling unfolding properly?
If so, please report the bug to the owner of that program.
If you need to work around such a buggy program, you can set the
System property "mail.mime.foldtext" to "false" to disable all folding
in JavaMail.

Similar Messages

  • Subject line "another option" prevents message from sending

    I recently attempted to send a message (in Mail version 3.5) with the subject line "another option", and the message did not send, went to the outbox, and opened again. I assumed my connection was down, but then I tried again with a different subject line and it worked.
    A bit of fiddling demonstrated that all of the following work: ".another option", "another optionasjkdflajdlfk", "another option askfljd", "another option" (2 spaces). In short, it seems that only this specific subject line causes the message to not send.
    This is obviously not a big problem; I ended up simply using a different subject. But I am curious to find out why this is the case.

    The header is being "folded" as described in RFC 2822 section 2.2.3.
    The folding doesn't lose the space if unfolding is done properly.
    Perhaps the recipient mail program isn't handling unfolding properly?
    If so, please report the bug to the owner of that program.
    If you need to work around such a buggy program, you can set the
    System property "mail.mime.foldtext" to "false" to disable all folding
    in JavaMail.

  • Java.lang.NumberFormatException when sending mails

    Gurus,
    I am using java mail 1.4 to send mails from my application and the code to do so is
        public void postMail(String recipient, String message) {
            logger.fine("in postMail method..");
            boolean debug = true;
            Properties props = new Properties();
            props.put("mail.transport.protocol", "smtp");
            props.put("mail.smtp.host", ConfigProperty.getProperty("mail.smtp.host"));
            props.put("mail.smtp.auth","true");
            props.put("mail.smtp.port", ConfigProperty.getProperty("mail.smtp.port"));
            props.put("mail.smtp.from", ConfigProperty.getProperty("mail.from"));
            Session session = Session.getDefaultInstance(props, null);
            session.setDebug(debug);
            Message msg = new MimeMessage(session);
            try {
                String from = ConfigProperty.getProperty("mail.from").trim();
                InternetAddress addressFrom = new InternetAddress(from);
                msg.setFrom(addressFrom);
                InternetAddress addressTo = new InternetAddress(recipient);
                msg.addRecipient(Message.RecipientType.TO, addressTo);
                msg.setSubject(ConfigProperty.getProperty("mail.subject"));
                msg.setContent(message, "text/plain");
                logger.info("Sending mail now...............................");
                Transport trans = session.getTransport("smtp");
                trans.connect("casarray.arg.ae",username,password);
                trans.send(msg);
            } catch (Exception e) {
                e.printStackTrace();
        }However i am getting the strange error when sending mails. My email is is very simple [email protected]
    Please help me understand the issue here
    java.lang.NumberFormatException: For input string: ""
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:470)
         at java.lang.Integer.parseInt(Integer.java:499)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:398)
         at javax.mail.Service.connect(Service.java:288)
         at javax.mail.Service.connect(Service.java:169)
         at com.roadMiles.view.util.EmailNotification.postMail(EmailNotification.java:54)
         at com.roadMiles.view.unsecure.page.bean.LoginPageBean.forgotPassword(LoginPageBean.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:788)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:306)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    The error message is telling you exactly what's wrong:
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:470)
    at java.lang.Integer.parseInt(Integer.java:499)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:398)
    at javax.mail.Service.connect(Service.java:288)
    at javax.mail.Service.connect(Service.java:169)
    at com.roadMiles.view.util.EmailNotification.postMail(EmailNotification.java:54)At line 54 of EmailNotification.java (which I assume is your class), you're calling connect(), but that fails, because, deeper down, it's trying to parse the empty String ("") as a number. So don't pass the empty String to connect(); pass a valid number instead.

  • Textarea problem when sending mail (only Firefox)

    When sending mail using textarea item with multiple lines, carriage returns are taken away in resulting mail when sent in Firefox, but not in IE.
    To send mail, I call Javascript function that gets textarea value ($v or $x.innerHTML give the same result) and calls then on-demand process that calls in turn APEX_MAIL function.
    Igor

    Thank you, Jari!
    "pre" did the trick. Line breaks are OK now.
    There is one small inconvenience, though: font becomes Courrier instead of sans-serif type. But this is less disturbing than missing line breaks.
    Igor

  • I want to bcc myself when sending mail from one account but not another. When I check "automatically bcc myself", it bcc's me from both accounts.  Can I set this to work with only one account?

    I have two mail accounts on my Mac.  I want one account to bcc me when I send emails from that account.  I checked "automatically bcc myself" under mail>preferences>composing, but both accounts bcc me when sending mail.  Can I set this to only bcc myself from one specific email account? Thanks.

    It does not make sense that your ssh does not have a dash capital Y (-Y) option. It is in "man ssh", and my 10.6.6 has the -Y option, and I've had a -Y option since at least Tiger (10.4) days.
    My ssh is in /usr/bin/ssh
    I'm not very good at X11 issues, so I'm just throwing ideas out there.
    Does your broken account have a $HOME/.ssh/config file, and if so, what is in it?
    Does the broken account have any $HOME/.x* or $HOME/.X* files that X11 might be reading to configure your X11 behavior differently from the new test account?
    $HOME/.Xauthority
    $HOME/.Xdefaults-<hostname>
    $HOME/.Xresources
    $HOME/.ICEauthority
    $HOME/.keymap.km
    The above are a few names I found looking through "man X"
    While I'm thinking about it, I assume that when going to the server, you are using the exact same user account on the server, so that you have a constant at least at that end.
    Have you tried trashing your
    $HOME/Library/Preferences/org.x.X11.plist
    file, to see if that is affecting the broken account?
    Again, I am just throwing out ideas to see if anything sticks.

  • "smtp error" in webmail when sending mails

    Hello,
    "smtp error" in webmail when sending mails
    why?

    With the very little data offered, I can only give a general idea.
    "smtp error" usually means that webmail isn't pointed to a smtp server for sending out mails.
    Webmail normally (by default) points to the same box it's on for sending mails out. You can change the host and port with configutil.
    Some versions of webmail must point to iMS, and other mail servers won't work. Since I have no idea what version you have, I can't tell if this is a problem.
    Did it ever work?
    What version are you using?

  • Dtmail on x86 crashes when sending mail

    Hi,
    I'm running Solaris 10 on x86 and I'm wondering if there is a fix or a workaround
    for dtmail crashing when sending mail. There is an existing bug report for this
    filed July 20 2006 (6346618) but I'm unable to view the bug detail since I have
    not yet fully decided on a service plan. I've searched around Sunsolve and
    google but nothing is coming up. I tried build 45 of Solaris Express and the
    same problem is present. Does anyone have any additional information
    about this? Is a fix available for serivce plan holders?
    Thanks,
    Pat

    Thank you for looking at the bug. I do have 121488-01 installed; patch dated 12/19/2005. If a fix for this is rolled up into another patch, so far it is not available to me. As of this morning, there are no updates; dtmail still crashes on sending mail.
    Searching sunsolve for this returns three bug numbers:
    6346618 (dated July 20, 2006)
    5091421 (dated November 4, 2005)
    1187150 (dated November 16, 1995)
    although the 1995 bug is probably unrelated. Looks like my best chance at working around this may be to grab the dtmail binary from Solaris 9. Thanks to all who have looked at this with me so far; I appreciate it.
    Regards
    Pat

  • Error PDF when sending mail

    Dear all,
    i'm facing a PDF error when sending mail, i figure that PDF attachment can't be more than 100 pages. is that correct?
    below is the error message when open ADOBE, this won't happen when pages in adobe less than 100.
    "Adobe Reader could not open 'NAME.PDF' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded) "
    can anyone help me please.

    Dear Experts
    I already configured application server configuration file with specifying SMTP mail server IP in pluginParam parameter
    <pluginParam name="mailServer">202.157.161.76</pluginParam>
    <property name="enableSSL" value="no"/>
    <property name="mailUserName" value="%[email protected]%"/>
    <property name="mailPassword" value="%soyacl#123%"/>
    what is the issue
    Pl clarify
    Please reply it's urgent

  • Out of office message when sending mail to Lotus Notes from SAP

    Hi,
    Is it possible to have an 'out of office' message when sending mail to Lotus Notes from SAP?
    I'm sending account statements by mail via a modified version of function FI_OPT_ARCHIVE_CORRESPONDENCE. The SAP username is send as a parameter, and later converted to the e-mail saved in the user profile. This works, - but I would like to have an out of office reply if the user I send to is out of office.
    Hope someone can help...
    Regards,
    Lene

    As Thomas pointed out, you can use regular SMTP mail to send the contents to Lotus Notes. You can use the function module SO_OBJECT_SEND or any of the SAP Office function modules to do this.
    Only thing to remember is that the SMTP may have been disabled by your basis team due to security risks involved. An alternative could be a lotus notes connector available from IBM.
    Srinivas

  • TS3274 I have all sounds turned on in settings and the volume is up but I get no click when typing, no swoosh when sending mail, etc.

    Help. My sounds are turned on and volume is up but I get no keyboard click while typing and no swoosh when sending mail.

    1. Double-click the Home button and swipe the Task Bar (at bottom) to the right. Check volume and mute settings.
    2. Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple Logo

  • Spinning wheel not showing when sending mail

    Hello,
    I recently gave my older iMac G5/2GHz to my Mom and got her all set up - I transferred all of her documents and photos from her old original iMac G3/350 to the "new" iMac G5/2GHz. The iMac G5/2GHz has a very clean and up-to-date Mac OS X 10.4.11 on it. I used the iMac G5/2GHz right up until I got my new iMac 3.06 GHz Intel Core 2 Duo a few weeks ago.
    I deleted all the prefs files and related files and folders from Mail 2.1.3 and started off with a "fresh" copy of Mail 2.1.3. I then imported all her e-mail messages, folders and addresses from her old version of Outlook Express 5.0.6. I had a few problems with the import but I got it all straightened around (she had a few mail folders named with either a colon ":" or a slash "/" in them so I got that straightened out and everything worked fine afterward).
    But there's a strange problem happening with Mail 2.1.3 when she sends e-mails now. I am used to seeing the little "spinning wheel" to the right of the "Sent" mailbox when sending an e-mail to someone and the word "Sent" actually always seemed to change to "Sending" while mail was being sent but it doesn't do that anymore. The only way we can tell what's happening when sending e-mail is to open the Activity window from Mail's "Window" menu.
    Has anyone else encountered this problem and is there any way you may know of to fix it so that we can see the "progress" (the "spinning wheel") of the mail being sent to the right of the "Sent" mailbox (without having to use the "Activity" window)?
    All of her messages send and receive no problem but I can't, for the life of me, figure out why we can't see the progress of mail being sent out (we can see the progress spinning to the right of the Inbox when checking mail but nothing shows up when sending mail).
    Thanks in advance for your help.
    Gerard

    Hi Gerard,
    Yes it can, first I'd try this...
    Right click on that Mail folder, choose archive, you'll get everything in the folder, and the folder itself in a file called Mail.zip, move it to a safe place, same for the Mail Downloads folder... only the plist is separate.
    /Users/YourUserName/Library/Preferences/com.apple.mail.plist
    (Deleting may or may not require you to setup your account(s) again.)
    Quit Mail, then In your home folder, try moving this +folder & file+ to the Desktop then reboot...
    First, Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these +folder & file+ to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.

  • After updating to Mavericks MAIL no longer issues a "whoosh" sound when sending mail.  Can I get it back?

    After updating to Mavericks MAIL no longer issues a "whoosh" sound when sending mail.  Can I get it back?

    If restarting did not resolve the issue, open Mail Preferences and make sure the box next to "Play sounds for other mail actions" is checked.

  • Mail Subject Line Automatically Selects All Text When Typing

    In Mail I'm typing along in a subject line and randomly the all of text I've entered becomes selected. Then my next keystroke deletes the first entered text. Very frustrating, and I can't figure out why this happens. Maybe OSX's spell checker? How do I turn that off to test?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; sudo crontab -l; } 2> /dev/null | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; crontab -l 2> /dev/null; } | open -f -a TextEdit 
    Step 4
    ls -A /e*/{la,mach}* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Lost swish sound when sending mail

    I seem to have lost the swish sound when sending apple mail... sound is on for all else...
    how do I get it back?

    is there some way to move them to the desktop then dump the main mail folder then - 'get the sound back with fresh account' - then reimport all the settings? (all for less manual work
    Let's assume for the moment that you want to do that. You could do this:
    Quit Mail.
    Go to Home/Library/Mail and copy the entire folder to your Desktop, then delete the Mail folder.
    Go to Home/Library/Mail and copy the com.apple.mail.plist file to your Desktop.
    Restart Mail and let it find and/or create new mail account folders for you, then see if your sound is back.
    However, since you just setup an email account in the test user account and it worked, that points to the problem being with a corrupted Mail preferences file. So, if you just delete that and then restart Mail and setup your accounts again, that may very well solve the problem.

  • Problem when sending mails with excel attached

    Hi
      I'm tryin to send mails via SAPOffice with attached excel documents. I'm using FM SO_NEW_DOCUMENT_ATT_SEND_API1. I have a problem with the code. Here I post it:
    DATA:  ti_objbin    LIKE solisti1   OCCURS 150 WITH HEADER LINE,
    ti_objhex    LIKE solix      OCCURS 150 WITH HEADER LINE.
    DATA: BEGIN OF i_excel,
    sobid(8) TYPE c,
    tab1 TYPE X VALUE 09, "tab code
    name(80) TYPE c,
    tab2 TYPE X VALUE 09, "tab code
    city(40) TYPE c,
    tab3 TYPE X VALUE 09, "tab code
    kostl(10) TYPE c,
    tab4 TYPE X VALUE 09, "tab code
    ktext(20) TYPE c,
    tab5 TYPE X VALUE 09, "tab code
    fasig(10) TYPE c,
    tab6 TYPE X VALUE 09, "tab code
    ruta(255) TYPE c,
    fin  TYPE X VALUE 13, "carriage return
    END OF i_excel.
    i_excel-sobid        = wa_datos-sobid.
    i_excel-name         = wa_datos-name.
    i_excel-city         = wa_datos-city.
    i_excel-kostl        = wa_datos-kostl.
    i_excel-ktext        = wa_datos-ktext.
    i_excel-fasig        = wa_datos-fasig.
    i_excel-ruta         = wa_datos-ruta.
    WRITE i_excel TO ti_objbin-line.
    APPEND ti_objbin.
    CLEAR  ti_objbin.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data              = docdata
    put_in_outbox              = 'X'
    TABLES
    packing_list               = ti_objpack
    object_header              = ti_objhead
    contents_bin               = ti_objbin
    contents_txt               = ti_objtxt
    *      contents_hex               = ti_objhex
    receivers                  = ti_reclist
    EXCEPTIONS
    too_many_receivers         = 1
    document_not_sent          = 2
    document_type_not_exist    = 3
    operation_no_authorization = 4
    parameter_error            = 5
    x_error                    = 6
    enqueue_error              = 7
    OTHERS                     = 8.
    I have used this code before, in 4.6C release and it works fine, but now I'm on ECC5.0 and when i check the code, the next error message is generated: ""I_EXCEL" cannot be converted to a character-type field." If i try using MOVE i_excel TO i_objbin-line instead of WRITE, the error message changes to: ""TI_OBJBIN-LINE" and "I_EXCEL" are not mutually convertible in a Unicode program. program.". I have tried using ti_objhex table instead of ti_objbin in order to use 'context_hex' parameter (instead of 'context_bin') on FM, but i get the same result.
    I've been searching any other FM to do this, and i've found more FM of SOI1 function group but i didn´t get the expected result. So i need to send the message with the excel attached, using this FM or any other, but I need some help.  Anyone can help me?
    Thanks and Regards

    hi this is a simple example to send the excel sheet as a mail
    TABLES: ekko.
    PARAMETERS: p_email   TYPE somlreci1-receiver .
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
      ebeln(10) TYPE c,
      ebelp(5)  TYPE c,
      aedat(8)  TYPE c,
      matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
      Retrieve sample data from table ekpo
      PERFORM data_retrieval.
      Populate table with detaisl to be entered into .xls file
      PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Populate message body text
      perform populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                          it_attach
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'XLS'
                                          'filename'
                                 changing gd_error
                                          gd_reciever.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp aedat matnr
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekpo.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
      data: ld_store(50) type c.  "Leading zeros
      CONSTANTS: con_cret(5) TYPE c VALUE '0D',  "OK for non Unicode
                 con_tab(5) TYPE c VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
       con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR' INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT it_ekpo INTO wa_charekpo.
    *Modification to retain leading zeros
      inserts code for excell REPLACE command into ld_store
      =REPLACE("00100",1,5,"00100")
        concatenate '=REPLACE("' wa_charekpo-ebelp '",1,5,"'
                                 wa_charekpo-ebelp '")' into ld_store .
      concatenate ld_store into .xls file instead of actual value(ebelp)
        CONCATENATE wa_charekpo-ebeln ld_store  wa_charekpo-aedat wa_charekpo-matnr  INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test ekpo records'.
      APPEND it_message.
    endform.                    " POPULATE_EMAIL_MESSAGE_BODY
    regards,
    venkat.

Maybe you are looking for

  • Printing with ALV Grid

    Hi, I am using ALV List and ALV grid in one of my custom reports. There is no issue with ALV List when I print the report after running the program. But when I use ALV Grid , the report runs good and when I try to print the report I get short dump "O

  • How to copy ALL photos off of IPhone 4S with IOS 6

    Hey Guys, Here's the issue: On the IPhone 4S with IOS 6 certain photos end up outside of the "sandbox" (the MAIN album) and the only way to transfer those is to either "jailbreak" your IPhone which I do NOT recommend or MANUALLY transfer them picture

  • ERROR: The new SAP tools in /usr/sap/DEV/EHPI/abap/exe cannot connect

    Hi All. I am attempting to upgrade my ECC 6.0 EPH3 system to EPH4.(System 'i' V6R1M1) I am hitting an error  on phase PREP_INIT/CHECKPROF_INI which states 'ERROR: The new SAP tools in /usr/sap/DEV/EHPI/abap/exe cannot connect to your database.' The l

  • Dvcam footage exporting "h.264 dv-pal high quality" isn't looking good?

    hello guys thank you for assistance in my previous post. i couldn't thank you guys for some reason. however this is a related issue, my dv cam footage which i have edited and export isn't coming out at good quality as is on the preview screen, its lo

  • I need an opinion and/or advice about sending auto mail !!!

    Hi, I'm creating a web application using servlets and few HTML files for user interface. What I have already created is Login.html page allowing user to enter username and password and there is a link that takes the user to registration.html page whe