Re: mail() question

From: Date: Tue, 16 Jan 2001 00:17:52 +0000
Subject: Re: mail() question
Groups: php.general 
Request: Send a blank email to php-general+get-34718@lists.php.net to get a copy of this message
Quick update, for anyone interested... I managed to answer my own question, but I'd still like to thank everyone that replied, it did lead me to the right place. What I ended up doing was using sendmail with the -f option. This did require me to add a new trusted user to my sendmail.cf though. Once that was done, I just used popen to dump the message to sendmail. Here's the ugly/incomplete version of the code. If you can't figure it out, or want to see the exacts let me know off list, and I'll send it to ya in the morning (read, give me time to clean it up). $mailer = "/usr/sbin/sendmail -t -i -fwhatever@iwanted.com"; $fd = popen($mailer, "w"); fputs($fd, "$headers"); fputs($fd, "$message"); pclose($fd); -- Robert Hough (rch@solveinteractive.com)

« previous php.general (#34718) next »