Jump to content

Incoming Email


ari_aaron

Recommended Posts

I currently have this script for accepting incoming email:

 

<?php
// read from stdin
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
    $email .= fread($fd, 1024);
}
fclose($fd);

$file = "notes.txt"; 
$descriptor = fopen ($file, "w"); 
fwrite($descriptor,"TEST");

?>

 

I set the email to forward using cPanel 11.

 

However, I always get

 

pipe to |/home/ttadmin/public_html/email.php

  generated by script@*********.com

  local delivery failed

 

Any articles or tutorials i can read?

Link to comment
https://forums.phpfreaks.com/topic/88956-incoming-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.