MonstaApps / PHP-IMAP-Fetcher

Open source PHP to fetch or pipe email from a POP box, save the message to MySQL, and save attachments/images locally.
31 stars 20 forks source link

I am getting mail delivery problem i got this error back open /var/log/alt-php72-newrelic/newrelic-daemon.log #4

Open Femikuye opened 5 years ago

Femikuye commented 5 years ago

When i send email to the Script.. I got an automatic email back.. It says A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: pipe to |/home/path/to/email-server.php generated by info@myscript.com

The following text was generated during the delivery attempt:

------ pipe to |/home/path/to/email-server.php generated by info@myscript.com ------

open /var/log/alt-php72-newrelic/newrelic-daemon.log: no such file or directory I have been struggling with this for over a week now.. Please what is causing the issue and how can i go about it...

MonstaApps commented 5 years ago

Are you asking why sending email to the address info@myscript.com is bouncing?

Femikuye commented 5 years ago

@MonstaApps Thanks for your quick response, i really appreciate it!!! Yes, my main Question is why the email always bounced when there is no error.. And also i want to know why files are not uploading.. I mean when files are attached to an email sent to the address it bounced back error, saying Permission is denied for mkdir function and file_put_contents functions.. I have being struggling with this issues for long.. I hope i will find a solution here.. Thanks for your Help

Femikuye commented 5 years ago

Hello, does it requires a specific Server for this Library to work? I am confused because I got error back to my email every time i sent an email message to the script.. The Below is the error i got bacvk to my email. `This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

pipe to |/home/mybidrec/public_html/email-pipe/application.php generated by mail@mail.com

The following text was generated during the delivery attempt:

------ pipe to |/home/mybidrec/public_html/email-pipe/application.php generated by mail@mail.com ------

PHP Warning: mkdir(): Permission denied in /home/mybidrec/public_html/email-pipe/application.php on line 14

text

text

multipartPHP Warning: file_put_contents(PayPal.PNG): failed to open stream: Permission denied in /home/mybidrec/public_html/email-pipe/class.php on line 132

image` I want to know if i am missing something here

dafos commented 4 years ago

I had the same problem and resolve it by commenting this 3 lines on file class.php / lines 108 109 110 echo "

".$body_part->ctype_primary; if ($body_part->ctype_primary == "body") echo $body_part->body; / I think when you are setting pipe mode if something write text the receptor assume tha there is a problem At less in my case this ressolved the problem