Email specify encoding

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.
jerrycsakanyjrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EinarThCommented:
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
jerrycsakanyjrAuthor Commented:
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
brettmjohnsonCommented:
echo "Message body text." | uuenview -a $HOME/test.pdf  -m recipient@xyzzy.com  -f sender@me.com -s "The subject line"



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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

To send a MIME encoded attachment
0
jerrycsakanyjrAuthor Commented:
Brett enstead of using echo can you pipe a cat command of a text or pcl file into the uuenview ?
0
brettmjohnsonCommented:
> 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
revantineCommented:
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
jerrycsakanyjrAuthor Commented:
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
jerrycsakanyjrAuthor Commented:
Revantine do you know of any of the ones that don't support it ?
0
revantineCommented:
I haven't tested recently. The lead offender that I encountered was Eudora (would not have been a current version).
0
revantineCommented:
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
brettmjohnsonCommented:
> 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
revantineCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.