From: Paul Lutus Date: 2006-11-19T04:25:05+09:00 Subject: Re: send e-mail -- pickup Parragh Szabolcs wrote: > Hi, > could someone pls help me out a bit: I'd like send out e-mails from a > script on our server, but not with smtp, rather giving them to the > postfix pickup transport (like mailx or mutt does it), calling > /sbin/sendmail or the like. The trick is, that at the time of sending it > the full mail string is ready with headers and all. You aren't being very clear about what you do and don't want, but in any case, try this: Example 1: `echo "Here is my message" | /usr/sbin/sendmail name@domain.com` Example 2: `echo -e "From: me@mydomain.com\nSubject: This is a test\nHere is my message text." | /usr/sbin/sendmail recipient@server.com` The point is you can pipe all the required information to sendmail, one way or another. You could also use "popen" instead of the above approach. -- Paul Lutus http://www.arachnoid.com