RE: [PHP] [php]using sendmail with php
| From: | Ray Hilton | Date: | Tue, 19 Jun 2001 14:15:18 +0000 |
| Subject: | RE: [PHP] [php]using sendmail with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54377@lists.php.net to get a copy of this message | ||
I assume you could do it like in perl:
Open(MAIL, "|/usr/lib/sendmail");
Print MAIL <<OUTPUT;
To: ray <me@rayh.co.uk>
From: someone <someone@somwehere.com>
Subject: blah blah
Note the line break before the body, blah blah blah
OUTPUT
Close(MAIL)
I have no idea how you would do this in php, but I hope its at least
points you in the right direction... Im not sure if php allows you to
open a pipe to another program.
Ray Hilton
-
me@rayh.co.uk
http://rayh.co.uk
-----Original Message-----
From: Chris Cocuzzo [mailto:cuzo@mediaone.net]
Sent: 19 June 2001 06:04
To: PHP General List (E-mail)
Subject: [PHP] [php]using sendmail with php
hey-
i noticed a recent post about the weird email that someone was getting
from a script that emails form data. I was curious on whether or not I
could use sendmail with php, to possibly get around this problem(I've
run into it myself). How might i do this?...
chris