Post from Email

Started by Grudge, July 02, 2005, 07:28:20 AM

Previous topic - Next topic

Grudge

Link to Mod

This modification is designed to allow users of your forum to reply to notifications through email and have them appear directly onto the forum. This modification will keep track of every email sent out to ensure that users can post securely without risk of spoofing other peoples accounts and the like.

The modification will also add an option to "Feature Settings and Options" which will allow you to specify an email address which should be used for sending out notifications - this may be useful if you want to have an account seperate to the standard webmaster email.

After installing this mod you will need to configure your server to "pipe" email replies from notifications to this script. In cPanel go into Email -> Forwarding and then make the forum's email address forward to "|/home/path/to/SMF/emailpost.php" without quotes. Where the path is the path to the script (Note that path - not the URL!) If you are not using cPanel you'll need to set this up manually.

If you have PHP installed in a path other than /usr/bin/php you will need to change the top line of emailpost.php to point to the correct path. Please note that you *may* also need to chmod the script "emailpost.php" to ensure it is executable.

Finally, this script includes protection to stop people from spamming your forum using email - this works by limiting the number of replies to a notification to one - so users cannot reply to the same notification more than once. By default users will not receive an error message back to them in the case of an error occuring - you can enable error reporting from "Feature Settings and Options". Also note the script will require replies to notifications are made from the same address they were sent to.
I'm only a half geek really...

Tobias Eigen

Hi Grudge -

Good work! And fast! :-)

I've installed the mod and have the script piping correctly from email.

Some issues I'm seeing:

- I'm replying to notifications I get from SMF, but I'm getting error messages back saying "You are not allowed to reply to this topic." Is there something I need to set to enable emails to be sent in, or is this a configuration error? I don't see any special headers in the message envelope for the notification so perhaps I'm doing something wrong, or not understanding how your mod works.
- The email in the from address in the notification email is the webmaster address, not the address specified in the "Email address to email from (blank for forum default)" field. Again not sure if this is something I am doing wrong.
- Attachments are not delivered with the notification - this makes sense but it would be nice to be able to enable the sending out of attachments, or at least a message indicating that there is an attachment posted. I haven't tested it, but I am also assuming other non-english character sets won't work correctly.. is this right?

A feature I'd like to suggest is to be able to set a default forum for posts that aren't allowed elsewhere - i.e. a forum that only the admin can see. This will help a great deal with testing and for manually handling messages.

I'll do some more playing with this when I get back from a (much needed computer free!) holiday weekend on Tuesday.. in the meantime - kudos and many thanks for this very cool mod!

It would also be great if you could take a look at the FUD/mailman demo site I put up so we could have a conversation about features it has that I feel are needed in SMF. Details here: http://www.simplemachines.org/community/index.php?topic=10166.msg295656#msg295656

Cheers,

Tobias
Kabissa - Space for Change in Africa
http://www.kabissa.org

Joomla Website, Mailman mailing list server, seeking SMF/Mailman integration a la Fud Forum (http://www.fudforum.org).

http://del.icio.us/tobiaseigen/mail2forum

Grudge

Tobias Eigen,

Cheers for the reply. It sounds like maybe I have a bug in the permissions stuff then. That error message means the user doesn't have permission to reply to topics in that board - and I assume you do if you are an admin.

The from email I can and shall fix in the next release.

You're correct about attachments. I assume you mean attachments delivered in the notification? This is something that is more SMF related than that of the mod - I don't think sending out attachments is particularly practical though as it would take a server to it's knees if you were sending out notifications to 100 people with a 1MB attachment.

Character sets I'm not sure about. It's one of things I was kinda hoping might get picked up in a beta :)

I'm not sure what you mean about a forum for posts not allowed elsewhere. Do you mean if someone replies to a notification to a board they are not allowed to post in it should get put in a kind of "dumping" ground?

I'm not going to have time to look at this again today but I will try take a look at some of the problems tomorrow. It's not my intention to make this a super complicated modification as I simply don't have the time (Most of my time is obviously spent on the core development of SMF). I did say I was never going to write any more mods but this seemed too popular to ignore it! I do hope that at the very least if people do want this expanded in the future (attachments etc) that someone else will be able to take this mod and advance it further. The handy thing about this mod is there are only a few changes to SMF - nearly everything is in the script you pipe to making it easy to develop. I'll try take a look at your other topic too - although I don't expect to be personally expanding this much beyond the basic "reply => post" functionality.

Grudge
I'm only a half geek really...

rhizome

Quote from: Grudge on July 02, 2005, 07:28:20 AM

...

After installing this mod you will need to configure your server to "pipe" email replies from notifications to this script. In cPanel go into Email -> Forwarding and then make the forum's email address forward to "|/home/path/to/SMF/emailpost.php" without quotes. Where the path is the path to the script (Note that path - not the URL!) If you are not using cPanel you'll need to set this up manually.
...

Hi

Thanks for making this into a mod.

I've never understood paths properly  :-[

I've got my forum installed in a folder called test, with the smf files inside it.

So in cpanel, it shows as:  /public_html/test/emailpost.php
Does |home/... refer to my own domain? e.g. mydomain.org without the www?

So what path do I set the forum email to forward to?



xenovanis

You can find the path for SMF in your forums admin panel -> edit server settings -> directory to SMF
"Insanity: doing the same thing over and over again and expecting different results."

rhizome

Thanks xenovanis.

Ok, Grudge, I've set the path, checked on the php path, chmod the emailpost.php, but not getting a post showing up on the forum sent via email.

The message bounces see below. (I've substituted my domain name for ZZZ & ZZY here, as paranoid showing my real paths):


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/ZZZ/public_html/test/emailpost.php
    generated by [email protected]

The following text was generated during the delivery attempt:

------ pipe to |/home/ZZZ/public_html/test/emailpost.php
       generated by [email protected] ------

<br />
<b>Notice</b>:  SSI.php was unable to load a session!  This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in <b>/home/ZZZ/public_html/test/SSI.php</b> on line <b>158</b><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
   <meta name="description" content="" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="http://www.zzy.org/test/Themes/default/script.js?beta3"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "http://www.zzy.org/test/Themes/default";
      var smf_images_url = "http://www.zzy.org/test/Themes/default/images";
      var smf_scripturl = "http://www.zzy.org/test/index.php";
      var smf_session_id = "";
   // ]]></script>
   <title></title>
   <link rel="stylesheet" type="text/css" href="http://www.zzy.org/test/Themes/default/style.css?beta3" />
   <link rel="help" href="http://www.zzy.org/test/index.php?action=help" target="_blank" />
   <link rel="search" href="http://www.zzy.org/test/index.php?action=search" />
   <link rel="contents" href="http://www.zzy.org/test/index.php" />
   <link rel="alternate" type="application/rss+xml" title="TEST - RSS" href="http://www.zzy.org/test/index.php?type=rss;action=.xml" />

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = false;

      function shrinkHeader(mode)
      {
         document.cookie = "upshrink=" + (mode ? 1 : 0);
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

         current_header = mode;

[...snip...]
ETC. - I've not included everything]

Grudge

Ummm... that shouldn't happen. Can you try uncommenting this line out in SSI.php:


if (isset($_SERVER['REMOTE_ADDR']) && session_id() == '')
trigger_error($txt['ssi_session_broken'], E_USER_NOTICE);


(i.e make it)

//if (isset($_SERVER['REMOTE_ADDR']) && session_id() == '')
// trigger_error($txt['ssi_session_broken'], E_USER_NOTICE);
I'm only a half geek really...

rhizome

Still not working, bounces again, but with a slightly different error message.
I included the whole return text now:

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/ZZZ/public_html/test/emailpost.php
    generated by [email protected]

The following text was generated during the delivery attempt:

------ pipe to |/home/ZZZ/public_html/test/emailpost.php
       generated by [email protected] ------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
   <meta name="description" content="" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="http://www.zzy.org/test/Themes/default/script.js?beta3"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "http://www.zzy.org/test/Themes/default";
      var smf_images_url = "http://www.zzy.org/test/Themes/default/images";
      var smf_scripturl = "http://www.zzy.org/test/index.php";
      var smf_session_id = "";
   // ]]></script>
   <title></title>
   <link rel="stylesheet" type="text/css" href="http://www.zzy.org/test/Themes/default/style.css?beta3" />
   <link rel="help" href="http://www.zzy.org/test/index.php?action=help" target="_blank" />
   <link rel="search" href="http://www.zzy.org/test/index.php?action=search" />
   <link rel="contents" href="http://www.zzy.org/test/index.php" />
   <link rel="alternate" type="application/rss+xml" title="TEST - RSS" href="http://www.zzy.org/test/index.php?type=rss;action=.xml" />

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = false;

      function shrinkHeader(mode)
      {
         document.cookie = "upshrink=" + (mode ? 1 : 0);
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>
</head>
<body>
   <div id="headerarea" style="padding: 12px 30px 4px 30px;">
      <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
         <tr>
            <td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">
               <img src="http://www.zzy.org/test/Themes/default/images/smflogo.gif" style="width: 250px; float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">TEST</span>
            </td>
         </tr>
         <tr id="upshrinkHeader">
            <td valign="top">
               <div class="headertitles" style="margin-right: 5px; position: relative;"><img src="http://www.zzy.org/test/Themes/default/images/blank.gif" height="12" alt="" /></div>
               <div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(http://www.zzy.org/test/Themes/default/images/box_bg.gif);">
                  <img src="http://www.zzy.org/test/Themes/default/images/english/userinfo.gif" style="position: absolute; left: -1px; top: -16px; clear: both;" alt="" />
                  <table width="99%" cellpadding="0" cellspacing="5" border="0"><tr><td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">
                     Welcome, <b>Guest</b>. Please <a href="http://www.zzy.org/test/index.php?action=login">login</a> or <a href="http://www.zzy.org/test/index.php?action=register">register</a>.<br />
                     July 03, 2005, 04:45:21 PM<br />

                     <script language="JavaScript" type="text/javascript" src="http://www.zzy.org/test/Themes/default/sha1.js"></script>
                     <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                        function hashPassword(doForm)
                        {
                           if (typeof(hex_sha1) == "undefined")
                              return;
                           // Are they using an email address?
                           if (doForm.user.value.indexOf("@") != -1)
                              return;

                           doForm.hash_passwrd.value = hex_sha1(hex_sha1(doForm.user.value.toLowerCase() + doForm.passwrd.value) + "");
                           doForm.passwrd.value = doForm.passwrd.value.replace(/./g, "*");
                        }
                     // ]]></script>

                     <form action="http://www.zzy.org/test/index.php?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align: right;">
                        <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                        <select name="cookielength">
                           <option value="60">1 Hour</option>
                           <option value="1440">1 Day</option>
                           <option value="10080">1 Week</option>
                           <option value="302400">1 Month</option>
                           <option value="-1" selected="selected">Forever</option>
                        </select>
                        <input type="submit" value="Login" /><br />
                        Login with username, password and session length
                        <input type="hidden" name="hash_passwrd" value="" />
                     </form>
                  </td></tr></table>
               </div>

               <form action="http://www.zzy.org/test/index.php?action=search2" method="post" style="margin: 0; margin-top: 7px;">
                  <b>Search: </b><input type="text" name="search" value="" style="width: 190px;" />&nbsp;
                  <input type="submit" name="submit" value="Search" style="width: 8ex;" />&nbsp;
                  <a href="http://www.zzy.org/test/index.php?action=search;advanced">Advanced search</a>
                  <input type="hidden" name="advanced" value="0" />
               </form>

            </td>
            <td width="262" style="padding-left: 5px;" valign="top">
               <div class="headertitles" style="width: 260px;"><img src="http://www.zzy.org/test/Themes/default/images/blank.gif" height="12" alt="" /></div>
               <div class="headerbodies" style="width: 260px; position: relative; background-image: url(http://www.zzy.org/test/Themes/default/images/box_bg.gif); margin-bottom: 8px;">
                  <img src="http://www.zzy.org/test/Themes/default/images/english/newsbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
                  <div style="height: 50px; overflow: auto; padding: 5px;" class="smalltext">SMF - Just Installed</div>
               </div>
               <div class="headertitles" style="width: 260px;"><img src="http://www.zzy.org/test/Themes/default/images/blank.gif" height="12" alt="" /></div>
               <div class="headerbodies" style="width: 260px; position: relative; background-image: url(http://www.zzy.org/test/Themes/default/images/box_bg.gif);">
                  <img src="http://www.zzy.org/test/Themes/default/images/english/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
                  <div style="min-height: 35px; padding: 5px;" class="smalltext">
                     <b>20</b> Posts in <b>6</b> Topics by <span style="white-space: nowrap;"><b>3</b> Members</span><br />
                     Latest Member: <b> <a href="http://www.zzy.org/test/index.php?action=profile;u=3">nomad</a></b>
                  </div>
               </div>
            </td>
         </tr>
      </table>

      <a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="http://www.zzy.org/test/Themes/default/images/upshrink.gif" alt="*" title="Shrink or expand the header." style="margin: 2px 2ex 2px 0;" border="0" /></a>
            <a href="http://www.zzy.org/test/index.php"><img src="http://www.zzy.org/test/Themes/default/images/english/home.gif" alt="Home" style="margin: 2px 0;" border="0" /></a>
            <a href="http://www.zzy.org/test/index.php?action=help" target="_blank"><img src="http://www.zzy.org/test/Themes/default/images/english/help.gif" alt="Help" style="margin: 2px 0;" border="0" /></a>
            <a href="http://www.zzy.org/test/index.php?action=login"><img src="http://www.zzy.org/test/Themes/default/images/english/login.gif" alt="Login" style="margin: 2px 0;" border="0" /></a>
            <a href="http://www.zzy.org/test/index.php?action=register"><img src="http://www.zzy.org/test/Themes/default/images/english/register.gif" alt="Register" style="margin: 2px 0;" border="0" /></a>
   </div>
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">
<table border="0" width="80%" cellspacing="0" align="center" cellpadding="4" class="tborder">
   <tr class="titlebg">
      <td>An Error Has Occurred!</td>
   </tr>
   <tr class="windowbg">
      <td style="padding-top: 3ex; padding-bottom: 3ex;">
         Hacking attempt...
      </td>
   </tr>
</table>
<div align="center" style="margin-top: 2ex;"><a href="javascript:history.go(-1)">Back</a></div></td>
   </tr></table>

   <div id="footerarea" style="text-align: center; padding-bottom: 1ex;">
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         function smfFooterHighlight(element, value)
         {
            element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
         }
      // ]]></script>
      <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
         <tr>
            <td width="28%" valign="middle" align="right">
               <a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="http://www.zzy.org/test/Themes/default/images/powered-mysql.gif" alt="Powered by MySQL" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
               <a href="http://www.php.net/" target="_blank"><img id="powered-php" src="http://www.zzy.org/test/Themes/default/images/powered-php.gif" alt="Powered by PHP" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
            </td>
            <td valign="middle" align="center" style="white-space: nowrap;">
               
      <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">
      </span>
            </td>
            <td width="28%" valign="middle" align="left">
               <a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="http://www.zzy.org/test/Themes/default/images/valid-xhtml10.gif" alt="Valid XHTML 1.0!" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
               <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="http://www.zzy.org/test/Themes/default/images/valid-css.gif" alt="Valid CSS!" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
            </td>
         </tr>
      </table>
      <span class="smalltext">Page created in 0.076 seconds with 10 queries.</span>
      </div>
   </body>
</html>

Grudge

I assume this is a perfectly good 1.1 Beta 3 install - you're not using an old SSI.php etc?

The error message that gave was "Hacking Attempt" - and I'm not sure why it would do that. What happens if you please this:


// Only for use by piping!
if (isset($_SERVER['REMOTE_ADDR']))
die;

error_reporting(0);

$_SERVER['SERVER_SOFTWARE'] = '';
$_SERVER['SERVER_NAME'] = '';
@include_once(dirname(__FILE__) . '/SSI.php');
error_reporting(E_ALL);


By this:

error_reporting(0);

unset($_SERVER['REMOTE_ADDR']);
$_SERVER['SERVER_SOFTWARE'] = '';
$_SERVER['SERVER_NAME'] = '';
@include_once(dirname(__FILE__) . '/SSI.php');
error_reporting(E_ALL);
echo 'Post SSI';

In the emailpost.php file and then try to access the script directly (Through the browser) - do you get an error or a message saying "Post SSI"
I'm only a half geek really...

rhizome

Hi Grudge

I upgraded from 1.05, by copying new files across so ssi should be the latest?

Anyway, when doing the code replace, the browser window displays:

#!/usr/bin/php -q Post SSI

Grudge

Very odd. What about if you replace that code with this:

// Only for use by piping!
if (isset($_SERVER['REMOTE_ADDR']))
die;

error_reporting(0);

$_SERVER['SERVER_SOFTWARE'] = '';
$_SERVER['SERVER_NAME'] = '';
@include_once(dirname(__FILE__) . '/SSI.php');
error_reporting(E_ALL);
mail('[email protected]', 'Test Email', 'Test Email');
die;


Where [email protected] is your email address. You'll either get the same error email back - or a message saying "Test Email"
I'm only a half geek really...

rhizome

#11
In term of the email address, I assume you mean the forum site email

Replaced the code.
No email bounce, but didn't show up on forum either

EDIT: looking at my forum site email via webmail interface, message gets received like a 1000 times!
From:   [email protected]
To:     [email protected]
Subject: Test Email
Body: Test Email

Grudge

Ummm... OK - put everything back to normal. Can you please insert something into your smf_settings table. Please do:

INSERT INTO smf_settings
(variable, value)
VALUES
('disableQueryCheck', '1')


Then try again.
I'm only a half geek really...

rhizome

Sorry, not done this kind of thing before.
I can open phpmyadmin and see smf_settings table, but what do I do next with the code?


xenovanis

On the top of your screen you see a tab 'SQL'. Copy the code Grudge gave you in the textfield under 'Run SQL query/queries on database' and click Go.
"Insanity: doing the same thing over and over again and expecting different results."

rhizome

Thanks. Ran the query fine.

Tried another test post.
Got a similar bouncing  error  :(


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/ZZZ/public_html/test/emailpost.php
    generated by [email protected]

The following text was generated during the delivery attempt:

------ pipe to |/home/ZZZ/public_html/test/emailpost.php
       generated by [email protected] ------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

[snip]

Grudge

OK,

Can you please try the attached file - it's got LOTS of debugging in it. You need to make sure your forum directory is chmod to 777. It will create a file in your forum directory called emaildebug.txt when it gets an email - can you post what it leaves in that file? Sorry about this - debugging this script ain't easy...
I'm only a half geek really...

rhizome

Ok, did as what you said
But no debug text file generated. I checked that forum dir is 777

The bounced email had the following if it's any use:

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/zzz/public_html/test/emailpost.php
    generated by [email protected]
    local delivery failed

The following text was generated during the delivery attempt:

------ pipe to |/home/zzz/public_html/test/emailpost.php
       generated by [email protected] ------

Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
       php <file> [args...]
  -a               Run interactively
  -C               Do not chdir to the script's directory
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.  Implies `-q'
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -q               Quiet-mode.  Suppress HTTP Header output.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.


Grudge

Grrr, I can't work out this problem. I've been testing it for ages on another SMF 1.1 install and it's fine.

Can you please try with the attached script? Note that it *should* send you a LOT of emails with some info in it - tell me what you receive back from it!
I'm only a half geek really...

rhizome

Here's my the latest bounced ouput:

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/zzz/public_html/test/emailpost.php
    generated by [email protected]
    local delivery failed

The following text was generated during the delivery attempt:

------ pipe to |/home/zzz/public_html/test/emailpost.php
       generated by [email protected] ------

Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
       php <file> [args...]
  -a               Run interactively
  -C               Do not chdir to the script's directory
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.  Implies `-q'
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -q               Quiet-mode.  Suppress HTTP Header output.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.

Advertisement: