E-mailing through telnet - How do you attach files?

How do you attach files when you send e-mails through telnet?
LVL 4
CaudaxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

chicagoanCommented:
the file has to be encoded with UUEncode, Mime or BinHex.
and included in the stream of text that is DATA, for example, past this into a text file and open it with winzip:

Content-Type: multipart/mixed;
 boundary="------------3AD72092361C3C3EB3FD74F5"

This is a multi-part message in MIME format.
--------------3AD72092361C3C3EB3FD74F5
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 7bit

Dear Prof
  I have my interest in visiting you and your Institute. Please
receive the attached file about myself and my recent works.
  Best regards.
yours,

--------------3AD72092361C3C3EB3FD74F5
Content-Type: application/x-dvi;
 name="v.dvi"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="v.dvi"

9wIBg5LAHDsAAAAAA+gbIFRlWCBvdXRwdXQgMjAwMC4wNC4xOTowODQ0iwAAAAEAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////oAKAL9+NoP2v0CGNjZFn+TfzFxry
IlYACgAAAAoAAAAGY21ieDEwwkNVUlJJQ1VMVU2WBn/UVklUkf8Kq0FFk09Gk0RSLpEGgDhM
SZNNQY6Ony/CHo1QkK45ZXJzb25hbJED1VRkYXRhOo6pEeEPjZEMAADzAEvxYHkACgAAAAoA
AAAFY21yMTCrTGmWA1VVTWEsk0JpcnRok3BsYWNlOpsEccdYaWFuLJNDaGluYS6YQmlydGiT
ZGF0ZTqYQXByaWyTMTB0aCyTMTk2My6OpAwAAI2RDAAATmF0aW9uYWxpdJC443k6kQRxx0No
.
.
.
9wIBg5LAHDsAAAAAA+gbIFRlWCBvdXRwdXQgMjAwMC4wNC4xOTowODQ0iwAAAAEAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////oAKAL9+NoP2v0CGNjZFn+TfzFxry
IlYACgAAAAoAAAAGY21ieDEwwkNVUlJJQ1VMVU2WBn/UVklUkf8Kq0FFk09Gk0RSLpEGgDhM
SZNNQY6Ony/CHo1QkK45ZXJzb25hbJED1VRkYXRhOo6pEeEPjZEMAADzAEvxYHkACgAAAAoA
AAAFY21yMTCrTGmWA1VVTWEsk0JpcnRok3BsYWNlOpsEccdYaWFuLJNDaGluYS6YQmlydGiT
ZGF0ZTqYQXByaWyTMTB0aCyTMTk2My6OpAwAAI2RDAAATmF0aW9uYWxpdJC443k6kQRxx0No

--------------3AD72092361C3C3EB3FD74F5

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
CaudaxAuthor Commented:
Thanks!
CaudaxAuthor Commented:
BTW: Where is a mime encoder?
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
Networking

From novice to tech pro — start learning today.