Solved

SMTP RELATED?

Posted on 1998-03-16
1
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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