|
Cookbook /
EMailForm-TalkCommentsin addition to what is written below I wonder, if it would be possible, to write the Variables $MailFormAddresses $MailFormDefaultSender in an encrypted form in the pages source-code, so it would not so easy, for other people to get it, also, in times with massive spam-problems, it might be a good idea, if there could be a little field with some graphical letter, that some has to read and fill in another field, to provide automatic sending of mails. Thanks Gerald
SDV($RecipeInfo['EMailForm']['Version'], '2007-08-04'); This causes analyze to always report that the cookbook is out of date.
Any ideas why? IDB
The TellAFriend script is also defining a function called HandleMailForm(), and PHP won't let you do that. The author of the TellAFriend script should probably rename the function to something else that won't conflict. --Pm
Thanks, Pm. I've emailed Jeff, author of TellAFriend, regarding this. IDB
I believe I'm the Jeff you're referring to, but I don't remember receiving that email. Regardless, prior to reading these comments, I downloaded the script and noticed the same conflict with TellAFriend, so I updated the script as emailform.phpΔ and uploaded it here. It appears to be working - a demo version can be seen at http://www.milwiki.org/Main/ContactCustodians.
$MailFormAddresses['Pm'] =
'pmichaud@pobox.com, hans@wurst.de, zahn@fleisch.com';
""UPDATE"" I got the same error-message, when I tried the mailform above.
Markup('contactform', '>links',
'/\\bmailform:(\\w+)/',
FmtPageName($ContactFormFmt, $pagename));
I've added: include_once('cookbook/contactform.php'); $ContactFormAddresses['Kontakt'] = 'info@oliekrise.dk';
$ContactFormDefaultSender = 'kontakt@adresse.dk';
To the config.php I try to call this new function with contactform:Kontakt, but when I put it on the screen it shows up as excactly contactform:Kontakt. I am completely new to PHP, and I guess I shouldn't be messing with code before I know a bit more about what I do, however, my original messing about turned out just fine. So, I'm sure there must be a simple solution out of this and that I've just screwed something very basic up. Thanks for a great program and some very nice add-ons btw. EDIT: Disregard this dumb question. I just had to upgrade the last occurence of mail too. Guess the b confused me, since I have no idea why it is there...
I just tried using this and have everything set properly, but only get the message: "Mail could not be sent". Any suggestions how to troubleshoot this? Caveman
Obsolete FeedbackI have just installed mailform.php When I test it it I get an errormessage in my browser Safari, (se below) and the same mail is sent 17 times. Thanks for any tips. Dagge Error message in Safari (sorry for the Swedish). It says that too many redirections occurred Safari kan inte öppna sidan. /Can't open the page/ Alltför många omdirigeringar inträffade när programmet försökte öppna ”http://www.abc.se/~dagge/pmwiki...” (hyper long url cropped). 8 identical lines removed Detta kan inträffa när du öppnar en sida som omdirigeras att öppna en annan sida som i sin tur är omdirigerad att öppna ursprungssidan.
I can confirm the above-reported error in Safari... not only does it generate a confusing error message, but it sends the message multiple times. It appears to be due to the form not specifying method='post' ... unlike other browsers, Safari seems to default to method='get' when no method is specified. If you change line 27 to SDV($MailFormFmt,"<form action='\$PageUrl' method='post'> the problem is solved. Ben Stallings November 02, 2006, at 02:57 PM |