| Author |
Message |
rahan *nix forums beginner
Joined: 15 Jun 2006
Posts: 7
|
Posted: Tue Jul 18, 2006 8:24 pm Post subject:
Send mail with attached file
|
|
|
Hi All,
By Using Solaris 8, 9 and 10.
I am using the mail command to send message. For exemple :
mail MyInternetMail@myDomain.com < myFilename.doc
The format of the file "myFilename.doc" is text.
i receive the message in my internet mailbox and the file myFilename.doc
is printed in the message.
How can i receive the file myFilename.doc as attachment file and not in
the message ?
Thank You very much
Best Regards
Rahan |
|
| Back to top |
|
 |
Radoulov, Dimitre *nix forums beginner
Joined: 14 Dec 2005
Posts: 26
|
Posted: Tue Jul 18, 2006 8:26 pm Post subject:
Re: Send mail with attached file
|
|
|
| Quote: | By Using Solaris 8, 9 and 10.
I am using the mail command to send message. For exemple :
mail MyInternetMail@myDomain.com < myFilename.doc
The format of the file "myFilename.doc" is text.
i receive the message in my internet mailbox and the file myFilename.doc
is printed in the message.
How can i receive the file myFilename.doc as attachment file and not in
the message ?
|
uuencode myFilename.doc myFilename.doc | mail MyInternetMail@myDomain.com
Regards
Dimitre |
|
| Back to top |
|
 |
rahan *nix forums beginner
Joined: 15 Jun 2006
Posts: 7
|
Posted: Tue Jul 18, 2006 8:42 pm Post subject:
Re: Send mail with attached file
|
|
|
Radoulov, Dimitre wrote:
| Quote: | By Using Solaris 8, 9 and 10.
I am using the mail command to send message. For exemple :
mail MyInternetMail@myDomain.com < myFilename.doc
The format of the file "myFilename.doc" is text.
i receive the message in my internet mailbox and the file myFilename.doc
is printed in the message.
How can i receive the file myFilename.doc as attachment file and not in
the message ?
uuencode myFilename.doc myFilename.doc | mail MyInternetMail@myDomain.com
Regards
Dimitre
|
Thank You very much Dimitre for your very quick help !!!
I will try this tomorrow in the morning.
Thanks again.
Best Regards
Rahan |
|
| Back to top |
|
 |
Rahan *nix forums beginner
Joined: 12 Jul 2006
Posts: 4
|
Posted: Wed Jul 19, 2006 12:33 pm Post subject:
Re: Send mail with attached file
|
|
|
Hi Dimitre,
I tried to run the command with uuencode encryption.
I don't receive the attached file. i always receive the contained file in
the message.
Any idea please ?
Thank You very much
Best Regards
Rahan
"rahan" <rahan@rahan.net> a écrit dans le message de
news:44bd478c$0$7455$626a54ce@news.free.fr...
| Quote: | Radoulov, Dimitre wrote:
By Using Solaris 8, 9 and 10.
I am using the mail command to send message. For exemple :
mail MyInternetMail@myDomain.com < myFilename.doc
The format of the file "myFilename.doc" is text.
i receive the message in my internet mailbox and the file myFilename.doc
is printed in the message.
How can i receive the file myFilename.doc as attachment file and not in
the message ?
uuencode myFilename.doc myFilename.doc | mail
MyInternetMail@myDomain.com
Regards
Dimitre
Thank You very much Dimitre for your very quick help !!!
I will try this tomorrow in the morning.
Thanks again.
Best Regards
Rahan
|
|
|
| Back to top |
|
 |
Neal A. Lucier *nix forums addict
Joined: 24 Feb 2005
Posts: 78
|
Posted: Wed Jul 19, 2006 12:53 pm Post subject:
Re: Send mail with attached file
|
|
|
Rahan wrote:
| Quote: | I tried to run the command with uuencode encryption.
I don't receive the attached file. i always receive the contained file in
the message.
Any idea please ?
Thank You very much
|
You could just save the text of the email and uudecode it and you would
have the file.
If you want to send a file as a "true" attachment then you can't use
'mail'. You will need to use a mail client that can send MIME messages.
(mh is a command line mailer than understand MIME.)
What you don't see happening when you add an attachment to an email in a
client like Outlook or Thunderbird is:
1. the client uuencoding the attachment
2. the client encapsulating the uuencoded file in MIME text
3. the client adding additional mail headers to identify the message as
being a MIME message
The reverse happens when you "open" an attachment from an email.
Neal
| Quote: |
"rahan" <rahan@rahan.net> a écrit dans le message de
news:44bd478c$0$7455$626a54ce@news.free.fr...
Radoulov, Dimitre wrote:
By Using Solaris 8, 9 and 10.
I am using the mail command to send message. For exemple :
mail MyInternetMail@myDomain.com < myFilename.doc
The format of the file "myFilename.doc" is text.
i receive the message in my internet mailbox and the file myFilename.doc
is printed in the message.
How can i receive the file myFilename.doc as attachment file and not in
the message ?
uuencode myFilename.doc myFilename.doc | mail
MyInternetMail@myDomain.com
Regards
Dimitre
Thank You very much Dimitre for your very quick help !!!
I will try this tomorrow in the morning.
Thanks again.
Best Regards
Rahan
|
|
|
| Back to top |
|
 |
Radoulov, Dimitre *nix forums beginner
Joined: 14 Dec 2005
Posts: 26
|
Posted: Wed Jul 19, 2006 1:04 pm Post subject:
Re: Send mail with attached file
|
|
|
| Quote: | I tried to run the command with uuencode encryption.
I don't receive the attached file. i always receive the contained file in
the message.
Any idea please ?
|
Yes,
it depends on the mail client.
See http://shelldorado.com/articles/mailattachments.html
<quote>
This method of sending file attachments works fairly well, but still has
some shortcomings:
Many user agents cannot directly decode this kind of file attachments, e.g.
"Eudora". Some mail agents explicitly require the decoding of the mail using
the program "uudecode"
The "uuencode" encoding is not standardized. Text encoded on one system may
not be decoded correctly by the recipient's system.
</quote>
Dimitre |
|
| Back to top |
|
 |
tkevans@tkevans.com *nix forums addict
Joined: 18 Jul 2005
Posts: 61
|
Posted: Wed Jul 19, 2006 3:41 pm Post subject:
Re: Send mail with attached file
|
|
|
rahan wrote:
| Quote: | How can i receive the file myFilename.doc as attachment file and not in
the message ?
|
Check out the 'mpack' and/or 'metamail' freeware packages. They'll put
your attachment into MIME format, which virtually all tools understand
nowadays. |
|
| Back to top |
|
 |
Van *nix forums beginner
Joined: 28 Feb 2005
Posts: 13
|
Posted: Fri Jul 21, 2006 6:20 am Post subject:
Re: Send mail with attached file
|
|
|
rahan <rahan@rahan.net> wrote:
| Quote: | Hi All,
By Using Solaris 8, 9 and 10.
I am using the mail command to send message. For exemple :
mail MyInternetMail@myDomain.com < myFilename.doc
The format of the file "myFilename.doc" is text.
i receive the message in my internet mailbox and the file myFilename.doc
is printed in the message.
How can i receive the file myFilename.doc as attachment file and not in
the message ?
Thank You very much
Best Regards
Rahan
|
Mutt is another possibility.
It is available as package from sunfreeware.
With the -a flag you can send a file as attachment.
Van |
|
| Back to top |
|
 |
Rahan *nix forums beginner
Joined: 12 Jul 2006
Posts: 4
|
Posted: Fri Jul 21, 2006 10:41 am Post subject:
Re: Send mail with attached file
|
|
|
Thanks a lot for all.
so, it's not possible to use mail to send attachment file.
i will try with another program.
Best Regards
Rahan |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|