[H-GEN] File Atachments With Sendmail

Web Express Humbug email news feed humbug at term.webexpress.net.au
Fri May 29 02:45:52 EDT 1998


Hi,
   I was wondering if anyone knew what i need to send to sendmail in order
for it to atach a file to an email made on the fly by a "C" program. I am
using the following setup to send the mail

FILE *mail;
char command[256] = "/usr/lib/sendmail ";
char *destination;

destination = "me at where.it.gets/sent";

strcpy(command,destination);

mail = popen(command,"w");

if (mail = NULL) exit(0);
/* i knwo this isnt good practicwe to exit but its works for an email*/

fprintf(mail,"From: user at the.cee.program\n");

/*etcetera etcetera*/

Is there some way to include an atachment this way or am i barking up the
wrong tree..if i am could someone please point me in the right direction.

Thanks a lot.
Luke



----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe



More information about the General mailing list