Email piping

the mail() function

Moderators: macek, egami, gesf

akram
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Sep 09, 2011 1:28 am

Email piping

Postby akram » Fri Sep 09, 2011 1:34 am

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);

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

Postby 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");


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest