Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 1999 14:58:56 +0200
From:      Ladavac Marino <mladavac@metropolitan.at>
To:        'Alexey Ryndin' <alfapri@cityline.ru>, questions@Freebsd.org
Subject:   RE: mail
Message-ID:  <55586E7391ACD211B9730000C110027617963D@r-lmh-wi-100.corpnet.at>

next in thread | raw e-mail | index | archive | help
Perl:
open( MAIL, "|/usr/bin/mail -s Subject user@mail.address" )
print MAIL "Hello user\n.\n";
close( MAIL );

C:

FILE *mail;
mail = popen("/usr/bin/mail -s Subject user@mail.address", "w");

fprintf(mail, "Hello user\n.\n");
pclose( mail );

--
Marino Ladavac, Dipl.-Ing.    Metropolitan Datenserviceges.m.b.H
e-mail: mladavac@metropolitan.at         
GSM: +43 676 309 79 67        

> -----Original Message-----
> From:	Alexey Ryndin [SMTP:alfapri@cityline.ru]
> Sent:	Friday, June 04, 1999 6:22 PM
> To:	questions@Freebsd.org
> Subject:	mail
> 
> Hi!
> I need to mail some info from an C or Perl program. How can I do it?
> Thanks in advance.
> Alexey
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55586E7391ACD211B9730000C110027617963D>