🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3385

sending mail within a C program

#3385
From: Michael I Angerman
Date: Fri, 12 May 1989 17:17
21 lines
1019 bytes
   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
Technical Details
Message-ID: <MICHAEL.89May12111749@infidel.lanl.gov>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!ames!hc!lanl!lambda!michael

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <MICHAEL.89May12111749@infidel.lanl.gov>
Date: 12 May 89 17:17:49 GMT
Sender: news@lanl.gov
Organization: Los Alamos National Laboratory, NM
Lines: 21