Solved

Email specify encoding

Posted on 2004-10-27
351 Views
Last Modified: 2010-05-18
Is it possible to specify a message to be sent with MIME encoding at time of send or by some default setting? My problem is i emailed an attachment and it is not being able to be read in yahoo email account. I'm almost positive its the encoding.
0
Question by:jerrycsakanyjr
    13 Comments
     
    LVL 4

    Expert Comment

    by:EinarTh
    Are you talking about sending from the command line via the 'mail' program? In that case, I don't think mail can do mime attachments (I think it can do uuencoded attachments, but yahoo propably doesn't support that).

    What you can do is to pipe the attachment part through a stand-alone mime encoder program like http://www.fpx.de/fp/Software/UUDeview/
    0
     

    Author Comment

    by:jerrycsakanyjr
    I installed the software now what would be the command to pipe the attachment...say i am sending a message with an attachment in my /home/jerry directory called test.pdf
    0
     
    LVL 23

    Accepted Solution

    by:
    echo "Message body text." | uuenview -a $HOME/test.pdf  -m recipient@xyzzy.com  -f sender@me.com -s "The subject line"



    0
     
    LVL 2

    Expert Comment

    by:revantine
    echo 'message' | mutt -a file -s 'subject' recipient

    To send a MIME encoded attachment
    0
     

    Author Comment

    by:jerrycsakanyjr
    Brett enstead of using echo can you pipe a cat command of a text or pcl file into the uuenview ?
    0
     
    LVL 23

    Expert Comment

    by:brettmjohnson
    > Brett enstead of using echo can you pipe a cat command of a text or pcl file into the uuenview ?

    Yes.  That is the nature of stdio pipes.  You don't have to run 'cat' through a pipe, however.
    Why not just redirect input from the file?

    uuenview < message.txt -a $HOME/test.pdf  -m recipient@xyzzy.com  -f sender@me.com -s "The subject line"

    0
     
    LVL 2

    Expert Comment

    by:revantine
    You can cat a file instead of echo (I know I am not Brett). Please be aware that not all email clients support uuencoded attachments.
    0
     

    Author Comment

    by:jerrycsakanyjr
    Well so far i have tested it on yahoo, optimum online,  hotmail, outlook express , incredimail and eudora and they all work so that gets the more common ones. Not sure about aol yet though. Haven't tested it.
    0
     

    Author Comment

    by:jerrycsakanyjr
    Revantine do you know of any of the ones that don't support it ?
    0
     
    LVL 2

    Expert Comment

    by:revantine
    I haven't tested recently. The lead offender that I encountered was Eudora (would not have been a current version).
    0
     
    LVL 2

    Expert Comment

    by:revantine
    I would like to know if AOL supports uuencode. They seem to have more support issues with attachments than the other tools I deal with regularly. If they do then I will update my code database and move away from mutt.

    A side note, there are tools to base64 encode from commandline, but the mutt solution requires less work with multiple attachments. The example that comes to mind first is the emailing implimentation in eFax; it accepts faxes as tiff then base64 encodes and attaches if my memory serves me. Since it splits pages in to seperate tifs it would need to attach multiple files, and that part of the routine was just a shell script.
    0
     
    LVL 23

    Expert Comment

    by:brettmjohnson
    > Please be aware that not all email clients support uuencoded attachments.

    The uuenview command given above creates MIME attachments with Base64 encoding.
    (uuenview's default encoding).
    0
     
    LVL 2

    Expert Comment

    by:revantine
    Thank you for following up with that brettmjohnson. I hadn't seen that use of it before.
    I will check out the man page though and keep it in mind in the future. I agree, that is a better way to do it.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now