Solved

SMTP RELATED?

Posted on 1998-03-16
1
236 Views
Last Modified: 2010-03-18
I HAVE IMPLEMENTED BASIC SMTP COMMANDS LIKE HELO,MAIL,RCPT,etc.. THAT SPEAKS TO REMOTE SERVER.NOWW I AM GOING TO ATTACH SOME BINARY FILES ALONG WITH MY BODY MESSAGE,HOW DO I INTIMATE TO REMOTE SERVER THAT THE FILE IS AN ATTACHMENT FILE.
0
Comment
Question by:meyaps
1 Comment
 
LVL 2

Accepted Solution

by:
alexbik earned 50 total points
Comment Utility
Hi,

You don't. As far as sendmail is concerned, e-mail is e-mail. You have to convert the file
to 7 bits _before_ you feed it to any SMTP daemon.

You can UUENCODE it and then feed the output of uuencode to the SMTP daemon, after adding some mailheaders ofcourse. Usage:

uuencode <local file> <how you want it to be called at the remote end>
The encoded file wil be send to STDOUT.

So, If I wanted to mail this.is.a.test.gif to alex@foo.bar, and I want it to apear as test.gif, i would use:

uuencode this.is.a.test.gif test.gif | sendmail alex@foo.bar

Alex.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now