Ulysses Stuff > Releases

ERS - EMail Reporting System

<< < (6/14) > >>

Storm:
I put report.php in a folder public/web/. Do I put those other files in the same folder as report.php?

MrPresident:
I talked it over with my gurus, and yeah, php files are pretty secure so long as your server doesn't accidentally serve them as plain text, which won't happen unless php crashes on your server.

DarKevin:
Hi there, I tried adding this addon to my server, but the E-mails don't arrive in my mailbox.
I have edited the configurations.lua
When I report in game, it says "reported successfully" but I don't receive an mail.

I got myself a very simple example php script and replaced it with the default report.php and voila, it worked.
From inside the game.

This is the working code:

<?

$to = "myemail@freenet.de";
$subject = "test";
$message = "test 123";

mail ($to, $subject, $message);
echo "Recipient: $to
";
echo "Subject: $subject
";
echo "Message: $message";

?>

Any idea why the original report.php won't work for me...?

MrPresident:
It might have something to do with the headers and the mail server rejecting it for trying to send mail from an e-mail address.

Find in your report.php


--- Code: --- $headers = "From: no-reply@g4p.org\r\n";
$headers .= "Reply-To: no-reply@g4p.org\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

--- End code ---

and replace it with:


--- Code: --- $headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

--- End code ---


Please let me know if this works and I'll edit the original and download.

DarKevin:

--- Quote from: MrPresident on August 02, 2014, 08:30:53 PM ---Please let me know if this works and I'll edit the original and download.

--- End quote ---
Thanks for your reply,
I'll check it out and tell you the result as soon as possible.

Edit:
That didn't fix it... How about making a light version of the php without security and stuff, for debugging?
Like just the strings and stuff that's needed to display the report.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version