1
I have put a small hack into Contact Us.
I have added a $toEmail value here
le="color: #000000"><?php extract($HTTP_POST_VARS); $myts =& MyTextSanitizer::getInstance(); $toEmail = $myts->stripSlashesGPC($toEmail);
and changed the line
le="color: #000000"><?php $xoopsMailer->setToEmails(function--> admin email) to $xoopsMailer->setToEmails($toEmail);
This enables me to send the email address for the contact form through $HTTP_POST_VARS.
I used this with a heavily modified template for userinfo.php which contained a form. The form's toEmail field is a hidden field which contains <input name="toEmail" type="hidden" value="<{$user_email}>" />.
Thus, every member who shows their email address has a contact form... and by deleting the default email field, this is without actually revealing their email address to anyone!
Enjoy.
Simon