If you disable the module and send email using the core contact form, you get the following message.

Warning: class_implements() [function.class-implements]: Class MailHeadersSystem does not exist and could not be loaded in drupal_mail_system() (line 276 of /home/xxxxx/public_html/includes/mail.inc). 
Exception: Class <em class="placeholder">MailHeadersSystem</em> does not implement interface <em class="placeholder">MailSystemInterface</em> in drupal_mail_system() (line 281 of /home/xxxxx/public_html/includes/mail.inc). 

Uninstalling and flushing caches does not help.

Tested 7.x-1.x-dev (2012-Apr-04) on Drupal 7.12
Sent test contact submissions as anonymous user

CommentFileSizeAuthor
#1 _mail_headers_1538300-2.patch424 bytesDrewMathers

Comments

DrewMathers’s picture

Status: Active » Needs review
StatusFileSize
new424 bytes

Instead of this patch, you can also use the Mail System module to reset the mail_system variable back to DefaultMailSystem.

jm.federico’s picture

Hi thanks for your patch

Commited a fix that includes your suggestion.

Cheers

jm.federico’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

DrewMathers’s picture

Status: Closed (fixed) » Active

I guess you can remove this statement from the project page:

The module assumes that if you enable it, is because you want to use our class. There is currently no way to disable it.
jm.federico’s picture

Status: Active » Fixed

Hi Drew

It still stands, as while the module is enabled you can't disable the class (unless you install http://drupal.org/project/mailsystem)

Cheers

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.