Email piping

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
bigjoe11a
New php-forum User
New php-forum User
Posts: 137
Joined: Wed Aug 31, 2011 3:55 am
Location: USA
Contact:

Re: Email piping

Post by bigjoe11a » Tue Sep 27, 2011 8:05 pm

akram wrote:Hi, I am new in php and now I am facing problem with email piping I have script which I mentioned below. But , my problem is I can't setup email in Plesk panel;

Can anyone help me, please?

$FileHandler = fopen("php://stdin", "r");

if ($FileHandler)
{
while(!feof($FileHandler))
{
echo 'ok';
$RawEmailContent .= fgets($FileHandler, 120);
}

}

fclose($FileHandler);
I have no idea what a Plesk panel is or what it is for. and this is wrong

Code: Select all

$FileHandler = fopen("php://stdin", "r");
This is right

Code: Select all

$FileHandler = fopen("c:\temp\file.txt", "r");

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests