Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9242459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:35:00+00:00 2026-06-18T08:35:00+00:00

I have a PHP pipe file that looks like: #! /usr/bin/php -q <?php $fd

  • 0

I have a PHP pipe file that looks like:

#! /usr/bin/php -q
<?php
$fd = fopen("php://stdin","r");
$email = "";
while (!feof($fd))
{ $email .= fread($fd, 1024); }
fclose($fd);
$fdw = fopen("/home/user/pipemail.txt","w+");
fwrite($fdw, $email);
fclose($fdw);
mail("email@email_provider.com","You got mail","You received a new email.","From: no-reply@domain.com");
?>

When I sent an email from one of my email accounts, I noticed that the script successfully saved email header to the “pipemail.txt” file. However, it’s not sending an email to “email@email_provider.com”.

Does anyone knows what may be the problem? Do I have to adjust any settings somewhere?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:35:01+00:00Added an answer on June 18, 2026 at 8:35 am

    Ok I’ve found the reason behind the problem I described above.

    It’s because the IP address where my website is hosted (I’m using a shared IP) has been blacklisted by several servers as someone else abused the system. In any case, it seems like I would have to wait for the blacklists to be cleared and next time also buy a dedicated IP address.

    Thanks to robobooga for posting a possible solution even though I couldn’t use it. Thumbs-up to your knowledge in the field =)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php pipe script that receives an email, takes an attached *.csv
I have a PHP script that reads from a pipe in blocking mode. while($input
I have created a pipe script in CPanel and have placed the hashbang: #!/usr/bin/php
I have PHP script works without problems, like this : while($row4 = mysql_fetch_array($result4)) {
I have PHP scrip that goes like this: if ($cost_frm < $cost){ echo <script
I have php scripts that do things like register, login, upload. I would like
I have a script that is called from a email pipe. So someone emails
I have a text file , filled with pipe separated URLs, like this: http://www.example.com|http://www.example2.com|http://www.example3.com|....
I have php code that puts some values into an Array as follows: $hunter=addslashes($MessageArray[1]);
I have PHP snippets like this ( snippet.php ): <?php $some_param = some_function(); ?>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.