Solved

SMTP RELATED?

Posted on 1998-03-16
1
238 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ACK Attack 5 59
FTP: Servname not supported for ai_socktype 7 650
linux, squid server 23 53
Linux TCP flaw lets 'anyone' hijack Internet traffic 9 83
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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