4
Rennevat,
If you include the source code of that contact.php file, we can troubleshoot what the parse error is.
As for having a form where the general public can email users, I made a copy of pmlite.php from the Private Messages module and hacked it so it could do just that.
Instead of the message getting sent as a private message, I have it being emailed to the user. The email address never shows up as the popup window for sending the message only refers to their user id.
The anonymous user enters their Name and Email Address which then would show up in the email sent to the user.
I wouldnt feel comfortable releasing the code to the general XOOPS public until any holes and bugs in the code were reviewed in detail and I dont really have the time to do that right now. But I could PM you if you wanted more info on it.
My hack is on top of a highly hacked version of xmmemberstats where the general public can view/search a list of all members but to contact them, they have to fill out the popup window. If the member was logged in, they would be able to send them a private message instead, with the member being notified via email as well that they have a private message.