• C

Send e-mail with an attachment!

Dear all,

I would like to write an application in Unix platform which can send an email and also it can attach a file.

Can anyone tell me the algorithm how to do it?


Who is Participating?
jhanceConnect With a Mentor Commented:
It's not an algorithm but rather a message format that does attachments.  On unix you can send messages with mail or sendmail but to do an attachment you should use MIME.  Here are details:


Just format the message in a valid format using MIME and feed it to sendmail.
benson031397Author Commented:
Can anyone tell me there is any C source code about encode all the file in MIME message format?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.