Question on Attachment sent by Mutt

2010-05-11 Thread Qi Zhang
Hello,

I meet with a problem sending emails with attachements by mutt.
simplly like this:

# code
uuencode file_name file_name > att.email

cat mail_message >> att.email

mutt -s "Subject" recei...@somewhere.net < att.email


with this script, I can send email with attachment very easy. and
gmail users have no problem reading these.
BUT, with some mail providers or clients can not read the attachments correctly.
what they can see is only code like @#$!...@$!#!@#...@#

Please somebody know what should I do to fix this problem?

Thank you very much!


--
Zhang Qi


Re: Question on Attachment sent by Mutt

2010-05-11 Thread Qi Zhang
Yes, because the attachments are generated by scripts then put into
different folders.
Each receiver has different amount of attachments.
redirect mail attachments to a single file is more easy than use "-a
file1 file2"
I plan to use mail -s "Subject" recei...@example.com < att.email (This
attachment is
readable in hotmail, but mutt don't)
but have some problem by setting the mail header. only thing I wanna
to do is change
the from address to another mailbox.


Zhang Qi



On Tue, May 11, 2010 at 10:53 PM, Ed Blackman  wrote:
> On Tue, May 11, 2010 at 12:15:33PM +0200, Jostein Berntsen wrote:
>>
>> On 11.05.10,15:50, Qi Zhang wrote:
>>>
>>> # code
>>> uuencode file_name file_name > att.email
>>>
>>> cat mail_message >> att.email
>>>
>>> mutt -s "Subject" recei...@somewhere.net < att.email
>>>
>>> with this script, I can send email with attachment very easy. and
>>> gmail users have no problem reading these.
>>> BUT, with some mail providers or clients can not read the attachments
>>> correctly.
>>> what they can see is only code like @#$!...@$!#!@#...@#
>>>
>>> Please somebody know what should I do to fix this problem?
>>
>> Can you check with another file ending, like att.txt instead of att.email?
>
> Since he's using shell redirects, that shouldn't matter: mutt can't use the
> extension to set the file type since it has no chance to see the extension.
>
> My question is why do it that way at all?  The command   "mutt -s 'Subject'
> -i mail_message -a file1 file2 ... -- recei...@example.com"
> should accomplish the same goal, but with less chance of errors.
>
> Ed
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFL6W9n3nrUNJhVPs4RAps5AKCCcNdlHm76PcsVrOug6sK25MNCnwCfbkzY
> GGtMx7MqVVIMItlk8JjT3WU=
> =2Orf
> -END PGP SIGNATURE-
>
>


Re: Question on Attachment sent by Mutt

2010-05-11 Thread Qi Zhang
My Mutt version is 1.4.2, buildin with Centos 5.4

If I use -a option, everything goes well. But I should write more bash
scripts on how many attaments for each receiver, with the file name
and email address.

Zhang Qi



2010/5/12 bill lam :
> Does your version of mutt support the "-a" option which will generate
> proper mime-compliant header?
>
> Срд, 12 Май 2010, Qi Zhang писал(а):
>> Yes, because the attachments are generated by scripts then put into
>> different folders.
>> Each receiver has different amount of attachments.
>> redirect mail attachments to a single file is more easy than use "-a
>> file1 file2"
>> I plan to use mail -s "Subject" recei...@example.com < att.email (This
>> attachment is
>> readable in hotmail, but mutt don't)
>> but have some problem by setting the mail header. only thing I wanna
>> to do is change
>> the from address to another mailbox.
>>
>>
>> Zhang Qi
>>
>>
>> On Tue, May 11, 2010 at 10:53 PM, Ed Blackman  wrote:
>> [---=| TOFU protection by t-prot: 39 lines snipped |=---]
>
> --
> regards,
> 
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>


Re: Question on Attachment sent by Mutt

2010-05-12 Thread Qi Zhang
Thank you Mr DM

But I still have problems. That is: if I use -a $attachments, then
only attach one file, others will act as recipient. I should use -a
file1 -a file2 instead of -a file1 file2. Am I right?
So I made a script can store all file names in one list and begins
with "-a", then use:
mutt -s "Subject" \\
   file lists start with "-a" and end with "\"
< message_body.txt

This can meet my require.

And I wanna to know if you have any good suggestions on this?

Zhang Qi



On Wed, May 12, 2010 at 2:51 PM, Derek Martin  wrote:
> -- "$recipient"


Re: Question on Attachment sent by Mutt

2010-05-12 Thread Qi Zhang
Thanks All!

The problem been solved by add "-a" to each attached files. Because I
don't have permissions to upgrade mutt on the server. But all your
advice are very useful for me.

Thank you very much.


Zhang Qi



On Wed, May 12, 2010 at 10:16 PM, Nathan Stratton Treadway
 wrote:
> Nathan