Need HELP - Need to send MIME attachements, not UU-encoded.

Some important recipients are unable to view attachments I send them b/c Mail, by default, sends UU-encoded attachements instead of MIME attachements.
Is there any way to configure Mail to send MIME attachements?
FYI to any other people having problems SENDING attachements (this took a while to figure out):
Google, Yahoo, and some other mail services are not particularly UU-encoding friendly, and the recipients at those addresses sometimes receive a bunch of garbled 'code' or 'script' instead of the actual attachment file.
I've read lots on these discussions from people trying to deal with READING MIME attachements that other people have sent them, but cannot find any info on switching the SENT preferences to use UU encoding for attachments instead of MIME.
If anyone can clarify, PLEASE, PLEASE HELP.
I use .mac to sync my 2 Mac Pros, MB Pro, iPhone, and three Mac Minis, so I'd really like to keep everything 'in sync' with Apple apps. Otherwise I'll have to switch to Entou-rage or Mozilla, which I don't really want to do...
Thanks in advance for any insight or advice...
- Sarge

I've taken the liberty of re-arranging your question for clarification.
Sarge_ wrote:
Some important recipients are unable to view attachments I send them b/c Mail, by default, sends UU-encoded attachements instead of MIME attachements.
I've read lots on these discussions from people trying to deal with READING MIME attachements that other people have sent them, but cannot find any info on switching the SENT preferences to use UU encoding for attachments instead of MIME.
Which one do you want to use? UU or MIME?
I do not think that Apple Mail sends UU-encoded attachments. UU is really old.
There are two settings that can fundamentally change the way Apple Mail sends messages.
1) Plain text vs. Rich text. With plain text you can't change the fonts or colors or anything else. There is a slight possibility that this mode sends UU attachments, but I can't check from the PC in front of me. Still, I doubt it. Rich text allows fancy fonts and colors.
2) Send Windows-friendly attachments. This will prevent Apple Mail from sending Macintosh-specific information in an e-mail message. In all cases, Apple Mail only sends standards-forming MIME e-mail messages, but many (all?) PC e-mail clients barf on this 100%-legal MIME e-mail message.
Is there any way to configure Mail to send MIME attachements?
Make sure that Windows-friendly attachments is turned on. The only downside is that other Mac users might not get resource data or might have problems with files lacking extensions. No one should be using resource data or files without extensions anymore, so this question is moot. If you do need to do that, wrap your files in a ZIP.
Google, Yahoo, and some other mail services are not particularly UU-encoding friendly, and the recipients at those addresses sometimes receive a bunch of garbled 'code' or 'script' instead of the actual attachment file.
This may happen regardless of what you do.
If anyone can clarify, PLEASE, PLEASE HELP.
Here is a little write-up I did a few years back on this issue. According the the Apple discusssion regulations, I should say that I do sell a MIME-decoding tool through the link above. However, that tool will not help you send MIME e-mail messages. I'm not trying to sell you anything. These days, any decent e-mail client can handle either UU or MIME messages with no problem. There are a few notable exceptions to this, and unfortunately, those exceptions tend to have millions of customers. It is getting better though.

Similar Messages

  • I need help in reinstalling photoshop.I do not have the original disk. How can i reinstall PS?

    I need help in reinstalling photoshop.I do not have the original disk. How can i reinstall PS?

    Which full scale version of PS do you need?  
    Nancy O.

  • TS3798 I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • My ipad device does not come up on itunes, need help fast:/, my ipad device does not come up on itunes, need help fast:/

    my ipad device does not come up on itunes, need help fast:/, my ipad device does not come up on itunes, need help fast:/

    Hi, Nancy.  
    Thank you for visiting Apple Support Communities. 
    Here are the steps that I would recommend going through when experiencing an error that begins with 0xE. 
    iOS: Unknown error containing '0xE' when connecting to a Windows PC
    http://support.apple.com/kb/ts3221
    Cheers,
    Jason H.

  • Adobe Premire Elements 13 purchase wouldn't download. No support no help no phone mnubers. Found a number and was on hold for over 25 minutes. need help need a number to call.

    Adobe Premire Elements 13 purchase wouldn't download. No support no help no phone mnubers. Found a number and was on hold for over 25 minutes. need help need a number to call.

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5 | 1
    Contribute:  CS5 | CS4, CS3 | 3,2
    FrameMaker:  12, 11, 10, 9, 8, 7.2
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Need help need help exporting epub to iTunes Producer

    Need help need help exporting epub to iTunes Producer. Nothing will load only get that little spinning wheel.

    It's not necessary to post a second time. I'm locking this version so others may reply at the first thread you created:
    Hi I created a EPUB with indesign cc and I'm trying to submitted it to iTunes Producer

  • Need help with applet servlet communication .. not able to get OutputStream

    i am facing problem with applet and servlet communication. i need to send few image files from my applet to the servlet to save those images in DB.
    i need help with sending image data to my servlet.
    below is my sample program which i am trying.
    java source code which i am using in my applet ..
    public class Test {
        public static void main(String argv[]) {
            try {
                    URL serverURL = new URL("http://localhost:8084/uploadApp/TestServlet");
                    URLConnection connection = serverURL.openConnection();
                    Intermediate value=new Intermediate();
                    value.setUserId("user123");
                    connection.setDoInput(true);
                    connection.setDoOutput(true);
                    connection.setUseCaches(false);
                    connection.setDefaultUseCaches(false);
                    // Specify the content type that we will send binary data
                    connection.setRequestProperty ("Content-Type", "application/octet-stream");
                    ObjectOutputStream outputStream = new ObjectOutputStream(connection.getOutputStream());
                    outputStream.writeObject(value);
                    outputStream.flush();
                    outputStream.close();
                } catch (MalformedURLException ex) {
                    System.out.println(ex.getMessage());
                }  catch (IOException ex) {
                        System.out.println(ex.getMessage());
    }servlet code here ..
    public class TestServlet extends HttpServlet {
         * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
             System.out.println(" in servlet -----------");
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            ObjectInputStream inputFromApplet = null;
            Intermediate aStudent = null;
            BufferedReader inTest = null;
            try {         
                // get an input stream from the applet
                inputFromApplet = new ObjectInputStream(request.getInputStream());
                // read the serialized object data from applet
                data = (Intermediate) inputFromApplet.readObject();
                System.out.println("userid in servlet -----------"+ data.getUserId());
                inputFromApplet.close();
            } catch (Exception e) {
                e.printStackTrace();
                System.err.println("WARNING! filename.path JNDI not found");
            } finally {
                out.close();
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            System.out.println(" in foGet -----------");
            processRequest(request, response);
         * Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
         * @throws ServletException if a servlet-specific error occurs
         * @throws IOException if an I/O error occurs
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            System.out.println(" in doPost -----------");
            processRequest(request, response);
         * Returns a short description of the servlet.
         * @return a String containing servlet description
        @Override
        public String getServletInfo() {
            return "Short description";
        }// </editor-fold>
    }the Intermediate class ..
    import java.io.Serializable;
    public class Intermediate implements Serializable{
    String userId;
        public String getUserId() {
            return userId;
        public void setUserId(String userId) {
            this.userId = userId;
    }

    Hi,
    well i am not able to get any value from connection.getOutputStream() and i doubt my applet is not able to hit the servlet. could you review my code and tell me if it has some bug somewhere. and more over i want to know how to send multiple file data from applet to servlet . i want some sample or example if possible.
    do share if you have any experience of this sort..
    Thanks.

  • Need help, I have an error message "not enough storage"  for icloud and it will not let me do anything

    Need help... getting an error message "not enough storage" for icloud and it will not let me get passed the message

    See if this helps.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • I need help with apex send mail

    I have created a apex send email, I tried to make it work I need help
    DECLARE
    v_Message VARCHAR2(4000);
    v_MsgHTML VARCHAR2(4000);
    v_CRLF VARCHAR2(6) := CHR(13) || CHR(10);
    begin
    v_Message := 'Your request has been sent to the Help Desk team:' ||
    v_CRLF || v_CRLF;
    v_Message := v_Message || 'YOUR_NAME: ' || :P10_YOUR_NAME || v_CRLF;
    v_Message := v_Message || 'COMPANY_Name: ' || :P10_COMAPNY_NAME || v_CRLF;
    v_Message := v_Message || 'ADDRESS: ' || :P10_ADDRESS || v_CRLF;
    v_Message := v_Message || 'CITY: ' || :P10_CITY || v_CRLF || v_CRLF;
    v_Message := v_Message || 'STATE: ' || :P10_STATE || v_CRLF;
    v_Message := v_Message || 'ZIP: ' || :P10_ZIP || v_CRLF;
    v_Message := v_Message || 'DAYTIME_PHONE: ' || :P10_DAYTIME_PHONE || v_CRLF;
    v_Message := v_Message || 'EVENTING_PHONE: ' || :P10_EVENTING_PHONE || v_CRLF || v_CRLF
    v_Message := v_Message || 'MOBILE_PHONE: ' || :P10_MOBILE_PHONE || v_CRLF;
    v_Message := v_Message || 'FAX: ' || :P10_FAX || v_CRLF;
    v_Message := v_Message || 'EMAIL_ADDRESS: ' || :P10_EMAIL_ADDRESS || v_CRLF;
    v_Message := v_Message || 'OCCASION: ' || :P10_OCCASION || v_CRLF || v_CRLF
    v_Message := v_Message || 'TYPE_OF_PARTY: ' || :P10_TYPE_OF_PARTY || v_CRLF;
    v_Message := v_Message || 'DATE_OF_EVENT: ' || :P10_DATE_OF_EVENT || v_CRLF;
    v_Message := v_Message || 'TIME_OF_EVENT: ' || :P10_TIME_OF_EVENT || v_CRLF;
    v_Message := v_Message || 'LOCATION_OF EVENT: ' || :P10_LOCATION_OF EVENT || v_CRLF || v_CRLF
    v_Message := v_Message || 'ESTIMATED_GUEST_COUNT: ' || :P10_ESTIMATED_GUEST_COUNT || v_CRLF;
    v_CRLF := '
    v_MsgHTML := 'Your request has been sent to the Help Desk team:' ||
    v_CRLF || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'YOUR_NAME: ' || :P10_YOUR_NAME || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'COMPANY_Name: ' || :P10_COMAPNY_NAME || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'ADDRESS: ' || :P10_ADDRESS || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'CITY: ' || :P10_CITY || v_CRLF || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'STATE: ' || :P10_STATE || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'ZIP: ' || :P10_ZIP || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'DAYTIME_PHONE: ' || :P10_DAYTIME_PHONE || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'EVENTING_PHONE: ' || :P10_EVENTING_PHONE || v_CRLF || v_CRLF
    v_MsgHTML := v_MsgHTML || 'MOBILE_PHONE: ' || :P10_MOBILE_PHONE || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'FAX: ' || :P10_FAX || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'EMAIL_ADDRESS: ' || :P10_EMAIL_ADDRESS || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'OCCASION: ' || :P10_OCCASION || v_CRLF || v_CRLF
    v_MsgHTML := v_MsgHTML || 'TYPE_OF_PARTY: ' || :P10_TYPE_OF_PARTY || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'DATE_OF_EVENT: ' || :P10_DATE_OF_EVENT || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'TIME_OF_EVENT: ' || :P10_TIME_OF_EVENT || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'LOCATION_OF EVENT: ' || :P10_LOCATION_OF EVENT || v_CRLF || v_CRLF
    v_MsgHTML := v_MsgHTML || 'ESTIMATED_GUEST_COUNT: ' || :P10_ESTIMATED_GUEST_COUNT || v_CRLF;
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => :P16_EMAIL,
    P_BODY => v_message,
    P_BODY_HTML => v_MsgHTML,
    P_SUBJ => :P16_CHURCH_NAME || ' Help Request');
    APEX_MAIL.PUSH_QUEUE;
    end;
    YOUR_NAME,
    COMPANY_NAME,
    ADDRESS,
    CITY,
    STATE,
    ZIP,
    DAYTIME_PHONE,
    EVENTTIME_PHONE,
    MOBILE_PHONE,
    FAX,
    EMAIL_ADDRESS,
    OCCASION,
    TYPE_OF_PARTY,
    DATE_OF_EVENT,
    TIME_OF_EVENT,
    LOCATION_OF EVENT,
    ESTIMATED_GUEST_COUNT

    DECLARE
    v_message VARCHAR2 (4000); v_msghtml VARCHAR2 (4000); v_crlf VARCHAR2 (6) := CHR (13) || CHR (10);BEGIN v_message := 'Your request has been sent to the Help Desk team:' || v_crlf
    || v_crlf; v_message := v_message
    || 'YOUR_NAME: ' || :p10_your_name
    || v_crlf; v_message := v_message
    || 'COMPANY_Name: ' || :p10_comapny_name
    || v_crlf; v_message := v_message
    || 'ADDRESS: ' || :p10_address
    || v_crlf; v_message := v_message
    || 'CITY: ' || :p10_city
    || v_crlf
    || v_crlf; v_message := v_message
    || 'STATE: ' || :p10_state
    || v_crlf; v_message := v_message
    || 'ZIP: ' || :p10_zip
    || v_crlf; v_message := v_message
    || 'DAYTIME_PHONE: ' || :p10_daytime_phone
    || v_crlf; v_message := v_message
    || 'EVENTING_PHONE: ' || :p10_eventing_phone
    || v_crlf
    || v_crlf; v_message := v_message
    || 'MOBILE_PHONE: ' || :p10_mobile_phone
    || v_crlf; v_message := v_message
    || 'FAX: ' || :p10_fax
    || v_crlf; v_message := v_message
    || 'EMAIL_ADDRESS: ' || :p10_email_address
    || v_crlf; v_message := v_message
    || 'OCCASION: ' || :p10_occasion
    || v_crlf
    || v_crlf; v_message := v_message
    || 'TYPE_OF_PARTY: ' || :p10_type_of_party
    || v_crlf; v_message := v_message
    || 'DATE_OF_EVENT: ' || :p10_date_of_event
    || v_crlf; v_message := v_message
    || 'TIME_OF_EVENT: ' || :p10_time_of_event
    || v_crlf; v_message := v_message
    || 'LOCATION_OF EVENT: ' || :p10_location_of_event
    || v_crlf
    || v_crlf; v_message := v_message
    || 'ESTIMATED_GUEST_COUNT: ' || :p10_estimated_guest_count
    || v_crlf;
    v_crlf := '
    '; v_msghtml := 'Your request has been sent to the Help Desk team:' || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'YOUR_NAME: ' || :p10_your_name
    || v_crlf; v_msghtml := v_msghtml
    || 'COMPANY_Name: ' || :p10_comapny_name
    || v_crlf; v_msghtml := v_msghtml
    || 'ADDRESS: ' || :p10_address
    || v_crlf; v_msghtml := v_msghtml
    || 'CITY: ' || :p10_city
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'STATE: ' || :p10_state
    || v_crlf; v_msghtml := v_msghtml
    || 'ZIP: ' || :p10_zip
    || v_crlf; v_msghtml := v_msghtml
    || 'DAYTIME_PHONE: ' || :p10_daytime_phone
    || v_crlf; v_msghtml := v_msghtml
    || 'EVENTING_PHONE: ' || :p10_eventing_phone
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'MOBILE_PHONE: ' || :p10_mobile_phone
    || v_crlf; v_msghtml := v_msghtml
    || 'FAX: ' || :p10_fax
    || v_crlf; v_msghtml := v_msghtml
    || 'EMAIL_ADDRESS: ' || :p10_email_address
    || v_crlf; v_msghtml := v_msghtml
    || 'OCCASION: ' || :p10_occasion
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'TYPE_OF_PARTY: ' || :p10_type_of_party
    || v_crlf; v_msghtml := v_msghtml
    || 'DATE_OF_EVENT: ' || :p10_date_of_event
    || v_crlf; v_msghtml := v_msghtml
    || 'TIME_OF_EVENT: ' || :p10_time_of_event
    || v_crlf; v_msghtml := v_msghtml
    || 'LOCATION_OF EVENT: ' || :p10_location_of_event
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'ESTIMATED_GUEST_COUNT: ' || :p10_estimated_guest_count
    || v_crlf;
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => v_message,
    P_BODY_HTML => v_message,
    P_SUBJ => 'Application Comments!!');
    APEX_MAIL.PUSH_QUEUE;
    end;

  • Need help in EMAIL Sending -  more than 255 character length

    Hi Guys,
    Please help me in sending the Email attachment which has more than 255 character lengh using 'TXT format.
    if i create an internal table having a field of type char225.
    then break ur each record into many parts having len <= 255.
    how can i mingle both lines to single line in the output list.
    Please help me ..
    thanks in advance..
    Prabhu

    Hi,
    Check the following link:
    http://www.sap-img.com/abap/sending-email-with-attachment.htm
    Regards,
    Bhaskar

  • Need Help Need Help PLZ PLZ

    my problem is that i have made a calendar by using jtable and i can't highlight or put any sign to keep track on date, but the biggest problem is that i have to submit this project after two days, so i will appreciate any help or tips from you. Here is my code:
    CODE
    /*Contents of CalendarProgran.class */
    //Import packages
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class CalendarProgram{
    static JLabel lblMonth, lblYear;
    static JButton btnPrev, btnNext;
    static JTable tblCalendar;
    static JComboBox cmbYear;
    static JFrame frmMain;
    static Container pane;
    static DefaultTableModel mtblCalendar; //Table model
    static JScrollPane stblCalendar; //The scrollpane
    static JPanel pnlCalendar;
    static int realYear, realMonth, currentYear, currentMonth;
    public static void main (String args[]){
    //Look and feel
    try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch (ClassNotFoundException e) {}
    catch (InstantiationException e) {}
    catch (IllegalAccessException e) {}
    catch (UnsupportedLookAndFeelException e) {}
    //Prepare frame
    frmMain = new JFrame ("Gestionnaire de clients"); //Create frame
    frmMain.setSize(330, 375); //Set size to 400x400 pixels
    pane = frmMain.getContentPane(); //Get content pane
    pane.setLayout(null); //Apply null layout
    frmMain.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Close when X is clicked
    //Create controls
    lblMonth = new JLabel ("January");
    lblYear = new JLabel ("Change year:");
    cmbYear = new JComboBox();
    btnPrev = new JButton ("<<");
    btnNext = new JButton (">>");
    mtblCalendar = new DefaultTableModel(){public boolean isCellEditable(int rowIndex, int mColIndex){return false;}};
    tblCalendar = new JTable(mtblCalendar);
    stblCalendar = new JScrollPane(tblCalendar);
    pnlCalendar = new JPanel(null);
    //Set border
    pnlCalendar.setBorder(BorderFactory.createTitledBorder("Calendar"));
    //Register action listeners
    btnPrev.addActionListener(new btnPrev_Action());
    btnNext.addActionListener(new btnNext_Action());
    cmbYear.addActionListener(new cmbYear_Action());
    //Add controls to pane
    pane.add(pnlCalendar);
    pnlCalendar.add(lblMonth);
    pnlCalendar.add(lblYear);
    pnlCalendar.add(cmbYear);
    pnlCalendar.add(btnPrev);
    pnlCalendar.add(btnNext);
    pnlCalendar.add(stblCalendar);
    //Set bounds
    pnlCalendar.setBounds(0, 0, 320, 335);
    lblMonth.setBounds(160-lblMonth.getPreferredSize().width/2, 25, 100, 25);
    lblYear.setBounds(10, 305, 80, 20);
    cmbYear.setBounds(230, 305, 80, 20);
    btnPrev.setBounds(10, 25, 50, 25);
    btnNext.setBounds(260, 25, 50, 25);
    stblCalendar.setBounds(10, 50, 300, 250);
    //Make frame visible
    frmMain.setResizable(false);
    frmMain.setVisible(true);
    //Get real month/year
    GregorianCalendar cal = new GregorianCalendar(); //Create calendar
    realMonth = cal.get(GregorianCalendar.MONTH); //Get month
    realYear = cal.get(GregorianCalendar.YEAR); //Get year
    currentMonth = realMonth; //Match month and year
    currentYear = realYear;
    //Add headers
    String[] headers = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; //All headers
    for (int i=0; i<7; i++){
    mtblCalendar.addColumn(headers);
    tblCalendar.getParent().setBackground(tblCalendar.getBackground()); //Set background
    //No resize/reorder
    tblCalendar.getTableHeader().setResizingAllowed(false);
    tblCalendar.getTableHeader().setReorderingAllowed(false);
    //Single cell selection
    tblCalendar.setColumnSelectionAllowed(true);
    tblCalendar.setRowSelectionAllowed(true);
    tblCalendar.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    //Set row/column count
    tblCalendar.setRowHeight(38);
    mtblCalendar.setColumnCount(7);
    mtblCalendar.setRowCount(6);
    //Populate table
    for (int i=realYear-100; i<=realYear+100; i++){
    cmbYear.addItem(String.valueOf(i));
    //Refresh calendar
    refreshCalendar (realMonth, realYear); //Refresh calendar
    public static void refreshCalendar(int month, int year){
    //Variables
    String[] months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
    int nod, som; //Number Of Days, Start Of Month
    //Allow/disallow buttons
    btnPrev.setEnabled(true);
    btnNext.setEnabled(true);
    if (month == 0 && year <= realYear-10){btnPrev.setEnabled(false);} //Too early
    if (month == 11 && year >= realYear+100){btnNext.setEnabled(false);} //Too late
    lblMonth.setText(months[month]); //Refresh the month label (at the top)
    lblMonth.setBounds(160-lblMonth.getPreferredSize().width/2, 25, 180, 25); //Re-align label with calendar
    cmbYear.setSelectedItem(String.valueOf(year)); //Select the correct year in the combo box
    //Clear table
    for (int i=0; i<6; i++){
    for (int j=0; j<7; j++){
    mtblCalendar.setValueAt(null, i, j);
    //Get first day of month and number of days
    GregorianCalendar cal = new GregorianCalendar(year, month, 1);
    nod = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
    som = cal.get(GregorianCalendar.DAY_OF_WEEK);
    //Draw calendar
    for (int i=1; i<=nod; i++){
    int row = new Integer((i+som-2)/7);
    int column = (i+som-2)%7;
    mtblCalendar.setValueAt(i, row, column);
    //Apply renderers
    tblCalendar.setDefaultRenderer(tblCalendar.getColumnClass(0), new tblCalendarRenderer());
    static class tblCalendarRenderer extends DefaultTableCellRenderer{
    public Component getTableCellRendererComponent (JTable table, Object value, boolean selected, boolean focused, int row, int column){
    if (column == 0 || column == 6){
    setBackground(new Color(255, 220, 220));
    else{
    setBackground(new Color(255, 255, 255));
    super.getTableCellRendererComponent(table, value, selected, focused, row, column);
    return this;
    static class btnPrev_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (currentMonth == 0){ //Back one year
    currentMonth = 11;
    currentYear -= 1;
    else{ //Back one month
    currentMonth -= 1;
    refreshCalendar(currentMonth, currentYear);
    static class btnNext_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (currentMonth == 11){ //Foward one year
    currentMonth = 0;
    currentYear += 1;
    else{ //Foward one month
    currentMonth += 1;
    refreshCalendar(currentMonth, currentYear);
    static class cmbYear_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (cmbYear.getSelectedItem() != null){
    String b = cmbYear.getSelectedItem().toString();
    currentYear = Integer.parseInt(b);
    refreshCalendar(currentMonth, currentYear);

    Welcome to the forum. You will need to learn a couple things if you want to receive help and not get flamed to death:
    1) All code needs to be posted within code tags. You can read up on them here:
    http://forum.java.sun.com/help.jspa?sec=formatting
    You want to make it as easy as possible for the volunteers here to help you. That means making your code readable.
    2) Do not put "urgent" "need help" "hurry please" in your posts if you are smart. Definitely don't put them in the header of the post. The urgency is yours, not ours. Putting that stuff in there only turns people off. If you have a problem deemed worthwhile by the volunteers here, if you have put thought into your post so you make it easy as possible for others to help you, and if you show some effort on your own, you are almost guaranteed to get timely help.
    3) List all error messages completely.
    4) Keep all necessary code, get rid of all unnecessary code. Your code should be compilable on its own, but it should not contain anything that isn't necessary for demonstrating your problem.
    5) Specifics:
    Why are you throwing out all those exceptions?
    Why is everything in one big huge GUI class? Break your code down into functional units. Make sure the logic works in a non-GUI way, THEN add a GUI class.
    Why the huge main method? The main should be short and sweet.
    Why the static inner classes? Do you know what is the difference between static inner classes and non-static inner classes?
    Why all the static variables anyway? You are doing procedural programming with an OOP language. You should use OOP if you can with an OOP language.
    Sorry, but this code looks like it was thrown together in a big hurry. I think that you have a lot of work to do. Good luck!

  • Help regarding SGOSDS function group (attaching Notes and all)

    Hi All,
    we have a requirement where in BSP page we have to attach Notes and also some URLs to one particualr service ticket at the time of creation of that service ticket in BSP.
    now user again wants to look at that created note and attached URLs.
    In R/3 to do this there are function modules in function group SGOSDS. 
    is there any way to use the same functionality to attach and display these Notes and URL.
    Thanks in Advance,
    Vithal

    Hi,
    Any existant FM can be called from the BSP via the system itself or if you want to do this via RFC (see http://help.sap.com/saphelp_bw31/helpdata/en/22/042537488911d189490000e829fbbd/frameset.htm for this).
    You have to create the screens on your own though.
    Eddy

  • Javax.mail attachment not correctly encoded

    Hi,
    I have developed an online auction system which, has a function to generate invoices using the iText libraries.
    The invoices are stored as a ByteArray in a database and are mailed to the customer. This works find when running
    the application within my IDE (Netbeans) on Mac OS X and Apache Tomcat 6.0.29 and javamail 1.4.3. When running the application on
    Windows 2003 Server with same tomcat and javamail version the attachment is not readable on the client.
    The attachment is added to the e-mail using the following code;
    // Part two is the attachment
    messageBodyPart = new MimeBodyPart();
    messageBodyPart.setFileName(attName) ;
    messageBodyPart.setDataHandler(new DataHandler(new ByteArrayDataSource(attachment,attContType)));
    multipart.addBodyPart(messageBodyPart) ;
    The raw e-mail of the attachment when it is correctly encoded (running from my IDE)
    Content-Type: application/pdf; name=factuur_656.pdf
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=factuur_656.pdf
    JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9MZW5ndGggMzM2L0ZpbHRlci9GbGF0ZURlY29kZT4+
    c3RyZWFtCnicjZPBboJAEIbvPMXcbBPEmd1lWXpr0/bWpFYOvTWoa0WQVUQPPfmofZQuaFGCNg0J
    gfDtfP+fCWvnIXK4BIUSoqnzFDlDZw0EaK/DfbKEwfuM4NHAsIIHzwQkIJo5vxQJCTIIIFo6Nztd
    pGYyLz8QUfryNlo0GA+owSjsE/UZEp4TPp4IpAFS9bHr4wi+UjVllpvJvEgWuyT/bLlk4KFqsDqV
    WcHKopu2MfTUiUvNptT5wcouWCWrsbgok1RnIIUL0Hvbjse60DlkcVx86bx3LhCoPN4c3AMjF9ud
    SdZJG8IC/vUEQnUTjF5GcJ/pooRDfuBgAyV2C/b5G/aALl10HodVAMfrTi7aTr9q/Vq9LsBspxrG
    And again when encoded from the server
    Content-Type: application/pdf; name=factuur_656.pdf
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=factuur_656.pdf
    JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9MZW5ndGggMzM2L0ZpbHRlci9GbGF0ZURlY29kZT4+
    c3RyZWFtCnicP5PBboJAEIbvPMXcbBPEmd1lWXpr0/bWpFYOvTWoa0U/VUQPPfmofZQuaFGCNg0J
    P/DtfP+fCWvnIXK4BIUSoqnzFDlDZw0EaK/DfbKEwfuM4NHAsIIHzwQkIJo5vxQJCTIIIFo6Nztd
    pGYyLz8QUfryNlo0GA+owSjsE/UZEp4TPp4IpAFS9bHr4wi+UjVllpvJvEgWuyT/bLlk4KFqsDqV
    WcHKopu2MfTUiUvNptT5wcouWCWrsbgok1RnIIUL0Hvbjse60DlkcVx86bx3LhCoPN4c3AMjF9s/
    SdZJG8IC/vUEQnUTjF5GcJ/pooRDfuBgAyV2C/b5G/aALl10HodVAMfrTi7aTr9q/Vq9LsBspxrG
    Both attachments have the same length, and are similar (but are exactly the same).
    In the third line of the correctly encoded attachment the characters are; "gf" which are
    encoded in the not correctly encoded attachment to "P/".
    Also setting "-Dmail.mime.multipart.bmparse=false" did not make any difference.
    Any ideas, suggestions, solutions ?
    Cheers
    Peter

    Have you verified that the input byte array has the same contents in both cases?
    Is it possible that your server is picking up a different version of JavaMail?

  • Noob needs help: DrWeb-DAEMON - A message has not been checked due to licen

    I keep getting these emails (see below). Can someone please tell me what part of the email system is generating these emails? Are they normal? They seem to be blocking mostly spam (which is good) but, there is some email that is being blocked that I would like to come through. How would I unblock certain email? If you need any logs or such posted, please let me know.
    Thanks in advance for and help and sorry for being such a noob.
    From: DrWeb-Daemon
    Subject: A message has not been checked due to license limitations
    Dear Postmaster,
    the message with following attributes has not been checked
    due to the licenses limitation.
    Sender = [email protected] (may be forged)
    Recipients = [email protected]
    Subject = Secret BEAD Sale! Ring in the New Year with Savings on...
    Message-ID = <[email protected]ail.firemount aingems.com>
    --- Dr.Web report ---
    Dr.Web detailed report:
    127.0.0.1 [30230] drweb.tmp.RYe7DB - message's envelope (addresses) aren't present in license (protected e-mail`s), skipped!
    --- Dr.Web report ---

    DrWeb is an anti-virus software product.
    It is not part of the standard Mac OS X system, and it doesn't appear to even have a Mac OS X version, therefore it isn't anything your server is doing.
    The liklihood, then, is that your upstream mail server (maybe your ISP?) is using DrWeb to filter email. You'd need to talk to them about configuration options.

Maybe you are looking for

  • Unable to uninstall SQL server 2008 r2

    i try to remove  sql server management studio 2008 r2  ,but  the following error occur  Sql server setup has encountered an error when running a windows installer file. windows install error message : Another installation is allready in progress.Copl

  • How to get shared date value from subreport to main report

    Hi, I need your help in passing the value of a running total that is located in the subreport to the main report. The running total in the subreport is getting the maximum of the Effective Date (which it is type in the database is date) for each grou

  • BDC recording not executing last OK code for order technical completion

    Hello! Regarding a QM requirement, I have created a rather simple BDC recording to change the activity type of an order to new ones (based on particular conditions not relevant here) on transaction IW32. However, if the order is technically complete,

  • Error when opening discoverer

    hi guys, if a user is a non administrator on the local pc, they receive an error when first trying to open discoverer. of course they can click OK, and it opens fine after that. how do i fix this without elevating the user rights error "failed to upd

  • I cant tranfer my IPhone contacts to my mac anymore

    I was looking at my contacts on my mac and I notice that there is no new  contacts from the past two months , I tried backing up my iphone with icloud  but it didnt work,  still the same . How could i transfer my iphone contacts to my mac again ??