niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Solaris
Send mail with attached file
Post new topic   Reply to topic Page 1 of 1 [9 Posts] View previous topic :: View next topic
Author Message
rahan
*nix forums beginner


Joined: 15 Jun 2006
Posts: 7

PostPosted: Tue Jul 18, 2006 8:24 pm    Post subject: Send mail with attached file Reply with 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
Back to top
Radoulov, Dimitre
*nix forums beginner


Joined: 14 Dec 2005
Posts: 26

PostPosted: Tue Jul 18, 2006 8:26 pm    Post subject: Re: Send mail with attached file Reply with quote

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

PostPosted: Tue Jul 18, 2006 8:42 pm    Post subject: Re: Send mail with attached file Reply with quote

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

PostPosted: Wed Jul 19, 2006 12:33 pm    Post subject: Re: Send mail with attached file Reply with quote

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

PostPosted: Wed Jul 19, 2006 12:53 pm    Post subject: Re: Send mail with attached file Reply with quote

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

PostPosted: Wed Jul 19, 2006 1:04 pm    Post subject: Re: Send mail with attached file Reply with quote

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

PostPosted: Wed Jul 19, 2006 3:41 pm    Post subject: Re: Send mail with attached file Reply with quote

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

PostPosted: Fri Jul 21, 2006 6:20 am    Post subject: Re: Send mail with attached file Reply with quote

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

PostPosted: Fri Jul 21, 2006 10:41 am    Post subject: Re: Send mail with attached file Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 1:31 pm | All times are GMT
navigation Forum index » *nix » Solaris
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Restricting postfix mail incoming only from Barracuda firewa gnewak Postfix 0 Thu Jul 03, 2008 12:57 am
No new posts Filtering internal mail and forwarding to another domain fmaa1 Postfix 0 Wed Apr 30, 2008 12:50 pm
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts mail delivery to cyrus fails embedded Postfix 0 Mon Mar 03, 2008 2:43 pm
No new posts mail forwarding loop killersushi Postfix 0 Tue Jan 23, 2007 3:43 am

Auto Loans | Xbox Mod Chips | Credit Card Consolidation | www.collegeanduniversitysearch.net | Unsecured Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2532s ][ Queries: 16 (0.1367s) ][ GZIP on - Debug on ]