[pmwiki-users] mailform recipe

John Rankin john.rankin at affinity.co.nz
Thu Mar 2 15:41:10 CST 2006


On Friday, 3 March 2006 10:04 AM, Susan <pmwiki at onebit.ca> wrote:
>I filled in all the fields on the form, and still get the error
>message.
>
>More ideas?

It may be the address lookup:
  	$to = $EMailFormAddresses[$_REQUEST['address']];


In your config.php file, check that you have set

    $EMailFormAddresses['sandy'] = 'name at email.address';

This should translate this bit of the form:

  <input type='hidden' name='address' value='sandy' />

If that's not it, I'm out of ideas :-(

>
>Susan
>
>
>John Rankin wrote:
>> On Thursday, 2 March 2006 8:14 AM, Susan <pmwiki at onebit.ca> wrote:
>> 
>>>I'm using the emailform_2005-10-19.php 
>>>http://www.pmwiki.org/wiki/Cookbook/MailForm
>>>
>>>sample site: 
>>>http://www.onebit.ca/cricket/index.php?pagename=Drafts.Mailform&emailform=error
>>>
>>>(edit password is " guest ")
>>>
>>>It tells me an error has occurred.
>>>
>>>Ideas?
>>>
>>>Susan
>>>
>> 
>> 
>> I think it arises from this line:
>>   	if (!$to || !$_REQUEST['text']) $msg = 'error';
>> 
>> If either the to address or message text is blank, the form
>returns 'error'.
>


-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list