TellAFriend-Talk

Version 3.0

When I'm trying to run 3.0 I get a bunch of these errors in the error_log:

[Thu Dec 03 13:26:05 2015] [error] [client 129.16.129.10] PHP Strict Standards:  Non-static method FUNC::is_alpha() should not be called statically, assuming $this from incompatible context in /www/vhost/wiki.portal.chalmers.se/htdocs-ssl/itportal/cookbook/TellAFriend/library/smtp.php on line 71, referer: https://it.portal.chalmers.se/itportal/CDAWindows/Intro
[Thu Dec 03 13:26:05 2015] [error] [client 129.16.129.10] PHP Strict Standards:  Non-static method FUNC::str_clear() should not be called statically, assuming $this from incompatible context in /www/vhost/wiki.portal.chalmers.se/htdocs-ssl/itportal/cookbook/TellAFriend/library/smtp.php on line 411, referer: https://it.portal.chalmers.se/itportal/CDAWindows/Intro
[Thu Dec 03 13:26:05 2015] [error] [client 129.16.129.10] PHP Strict Standards:  Non-static method FUNC::is_hostname() should not be called statically, assuming $this from incompatible context in /www/vhost/wiki.portal.chalmers.se/htdocs-ssl/itportal/cookbook/TellAFriend/library/smtp.php on line 416, referer: https://it.portal.chalmers.se/itportal/CDAWindows/Intro
[Thu Dec 03 13:26:05 2015] [error] [client 129.16.129.10] PHP Strict Standards:  Non-static method FUNC::is_alpha() should not be called statically, assuming $this from incompatible context in /www/vhost/wiki.portal.chalmers.se/htdocs-ssl/itportal/cookbook/TellAFriend/library/func.php on line 78, referer: https://it.portal.chalmers.se/itportal/CDAWindows/Intro

I also get a "does not have a valid MX Zone" error when trying to use the form, so I'm using 2.0 instead.../Johan Bengtsson


  • Either I'm stupid or I'm asking something this recipe in not supposed to support: I want (in the sidebar) a link "TellAFriend." Selecting that link brings up the form etc. I don't want the form on all and every page. Is this possible, or did I miss some things? Han, Amsterdam 20061126.
  • Great recipe for me. BUT!! there is some problem with the code which although does not effect me it will others. When passing input from form to php it does this with:

Grab the form data.

$f_copyToSelf = $_POST['chkSendSelf'];

$f_toEmail = preg_split('/,/',$_POST['to']);

$f_fromEmail = $_POST['from_email'];

$f_fromName = ($_POST['from_name']) ? $_POST['from_name'] : 'Anonymous';

$f_text = $_POST['text'];


However the actual names in the form are 'email' and 'name' not 'from_email' and 'from_name'. So, it does not recognise the name or email from the person sending it. If these are changed in the php to what they are in the form then I get loads of error messages. If I change in the form to what they are in the php I get error messages. So, no matter what it does not send the 'send copy to me' e-mail. As it automatically sends the e-mail as a BCC to the webmaster admin address and this is where I want to copy to go anyway then it does not matter to me. It also defaults to reply to webmaster@yourdomain.com and I cannot find where to change this? Hope this is helpful - Clive cc1708 @ soul-healer.com

Version 2.* series

  • Installed this script, and I got Http 403 forbidden error (on Apache). Has anyone seen this before? 2005-04-12
  • If a user refreshes the page (after submitting) the mail will be sent again (and again...). If someone has a nice solution for this....
    • How about adding a cookie? Like the one i added in SimplePageCounter --keith
  • There are no stylesheets included in the email (yet), so the email might not look as nice as your web-page does.
  • Is it possible that this script conflicts with the MailForm script? I implemented both on my Wiki and it threw up an error -- see my comment on the Cookbook.MailForm page. IDB, 2005-02-14
    • It is entirely possible that TellAFriend has a bug here. Recipes should prefix the names of all its globals (variables&functions) with their name, i.e. instead of handlemailform() it should be TellAFriendHandleMailForm(). Joachim Durchholz May 06, 2005, at 09:35 AM

3-9-5

  • Added everything to site. Seems to work great, but never received sent emails? is something not configured correct? there are no errors, says thank you email has been sent etc. Site is [(approve links) edit diff]
  • The README file is unreadable on a Unix system, because every other byte is a null byte (probably because the file was saved in Unicode format).
  • Texts aren't integrated into the XLPage mechanism. See PmWiki.Internationalizations.

Talk page for the TellAFriend recipe (users?).