cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail attachments

SOLVED
Go to solution
Jeff Hagstrom
Regular Advisor

sendmail attachments

ux2dos .profile|uuencode profile.txt|sendmail email@yahoo.com
This is the command I am using. If the email is outside of my building, then it gets scrambled and doesn't come in as an attachment. How can I send an email with an attachment. I've already been searching the forums and everything seems to be what I'm using. Any other suggestions?
7 REPLIES
harry d brown jr
Honored Contributor

Re: sendmail attachments



When you say "scrambled", could you clarify that??

What are you using for your MAIL program to VIEW the E-MAILS??

Have you tried NOT using the ux2dos??

What is your mail relay and is it possibly wacking your attachments?

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: sendmail attachments

Jeff,

I think in the following thread we beat the crap out of how to do attachments with the correct MIME headers:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6b3fc4c76f92d611abdb0090277a778c,00.html

live free or die
harry
Live Free or Die
Jeff Hagstrom
Regular Advisor

Re: sendmail attachments

Well going to beat it around some more. I've followed alot of the threads and haven't come up with a solution yet. I've tried it with out the mime -m with it, with out the ux2dos and with it. but I don't receive an attachment in an email in my yahoo. This is an example of the garble that I get. begin 666 profile.txt
M(R!(14Q,3R!(14Q,3R!(14Q,3R!(14Q,3PT*#0I$3$,]+W4O9&QC.2`[(&5X
M<&]R="!$3$,-"D584$]25#TO82]E>'!O'!OM("`@("`@("`@("`@("`@#0I#33TO82]S=&]R86=E+V-O9&5M;W9E(#L@97AP
S.K. Chan
Honored Contributor

Re: sendmail attachments

I just tried something quick and it works (well .. not quite) for me ..
$ cp .profile myfile.txt
$ vi myfile.txt
==> Add this line to the top of the file..
[include myfile.txt text/plain base64]
$ elm -s "HereComes" abc@yahoo.com < myfile.txt
Except that I get it as an attachment and also as the content ..
Joseph Bague
Frequent Advisor

Re: sendmail attachments

try this one

uuencode .profile profile.doc | mail email@yahoo.com

Hope it help

Joseph
Expect nothing but ready for everything
Ceesjan van Hattum
Esteemed Contributor

Re: sendmail attachments

Regard 'mpack' as an alternative, as shown and discussed at http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6b3fc4c76f92d611abdb0090277a778c,00.html

Regards,
Ceesjan
Jordan Bean
Honored Contributor
Solution

Re: sendmail attachments


Try this please:

ux2dos file | uuencode file.txt | mailx -m email@yahoo.com

The real important factor is how your email client interprets the embedded attachment. The usual MIME headers have a way of clobbering any ability to detect uuencoded files. By eliminating such headers (mailx -m), then the client is free to assume a text only message and determine if a uuencoded attachment is present (eg Outlook).