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?= <andyo@prime.net.ua> To: Ronald Petty <repett0@sac.uky.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: email Message-ID: <3703E65D.FA0C85A8@prime.net.ua> References: <Pine.HPP.3.92.990331132730.2773C-100000@sac.uky.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3703E65D.FA0C85A8>