Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!ames!hc!lanl!lambda!michael From: michael@infidel.lanl.gov (Michael I Angerman) Newsgroups: comp.mail.sendmail Subject: sending mail within a C program Message-ID: Date: 12 May 89 17:17:49 GMT Sender: news@lanl.gov Organization: Los Alamos National Laboratory, NM Lines: 21 I have a program I have written in C and part of the program mails files to people on the internet. What I want is a short subroutine or "system call" on the Sun that does the following: sendmail(username,filename); Where username is the string "michael@cardinal.lanl.gov" and filename is /usr/michael/file Does anyone have a program that does this ? I am thinking that the only way to do this is to fire up a shell program that sends mail and pass to the shell the username and filename. Any sugguestions or input would be appreciated.... Thanks, Michael Angerman