Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SMTP RELATED?

Posted on 1998-03-16
1
Medium Priority
?
252 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 100 total points
ID: 1587555
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

810 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