I'm including the site contact form on a page with these 2 lines.
<?php
module_load_include('inc', 'contact', 'contact.pages');
print render(drupal_get_form('contact_site_form'));
?>
module_load_include('inc', 'contact', 'contact.pages');
print render(drupal_get_form('contact_site_form'));
The page loads as expected when a user is logged in, but for an anonymous user the page returns a 403.
If I set permissions so anonymous users cangive the "Administer contact forms and contact form settings" permission to anonymous users, then the page will load for anonymous users. I gave the "Use the site-wide contact form" permissions to anonymous users, but they still get an access denied error.
Is there a way to allow the form to load for anonymous uses without giving them admin privileges?
Edit:
I do have "Use the site-wide contact form" checked for anonymous users and still get these symptoms.