Hi, older versions of Drupal allowed anonymous users to send messages to other users using the user contact form, if enabled by that user.

The latest version of Drupal 5 (beta 2) is not allowing it and I've seen on contact.module contact_menu() there's access = $user->uid for $items[] = array('path' => "user/". arg(1) ."/contact", I tried removing it, disabling and enabling the module but still not working.

How can user contact forms work for anonymous users?

CommentFileSizeAuthor
#2 untitled.JPG141.59 KBricabrantes

Comments

RobRoy’s picture

You would set 'access' => TRUE to allow it for all users. This should user_access('contact users') or whatever instead. Maybe a patch is in order.

ricabrantes’s picture

Version: 5.x-dev » 7.x-dev
StatusFileSize
new141.59 KB

This bug still active in D7.x-dev..

webernet’s picture

Status: Active » Closed (works as designed)

User contact forms are not available to anonymous users to help prevent spam.

There is an open issue to allow it though. Feel free to continue there.