Solved

SMTP RELATED?

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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