From owner-freebsd-questions Thu Apr 1 13:35:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from andyo.prime.net (P3M4.prime.net.ua [195.64.229.237]) by hub.freebsd.org (Postfix) with ESMTP id EDFAE14E6B for ; Thu, 1 Apr 1999 13:35:18 -0800 (PST) (envelope-from andyo@prime.net.ua) Received: from prime.net.ua (localhost [127.0.0.1]) by andyo.prime.net (8.8.7/8.8.7) with ESMTP id AAA00643; Fri, 2 Apr 1999 00:34:33 +0300 (EET DST) (envelope-from andyo@prime.net.ua) Message-ID: <3703E65D.FA0C85A8@prime.net.ua> Date: Fri, 02 Apr 1999 00:34:23 +0300 From: =?koi8-r?Q?=E1=CE=C4=D2=C5=CA=20=F7=2E=20=EF=CC=C5=CA=CE=C9=CB?= Reply-To: andyo@prime.net.ua Organization: =?koi8-r?Q?=ED=2D=E9=CE=C6=CF?= X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) X-Accept-Language: ru, uk, en MIME-Version: 1.0 To: Ronald Petty Cc: freebsd-questions@FreeBSD.ORG Subject: Re: email References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG U may open SOCK_STREAM socket&bind it to needed address and port 25. then connect(int s, struct sockaddr *name, int namelen) And talk SMTP | system() sendmail | mail(subj not changable) | othermailer(with its clue)| ...;) And not forget to redirect its input and check exit code:) Ronald Petty wrote: > how do you send mail from a c++ program. I have data stored in variables, > and this data needs to be send to only one address. I don't know how to > make it send the value of the variable and not the name of it. > > Ron > > > ======================================================================== > Ron Petty 252-7173, repett0@sac.uky.edu, Aprt 108 217 Virginia Avenue > ======================================================================== > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Andy V. Oleynik (When U aim for perfection, U discover it's a moving target Ã80) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message