This page uses Drupals contact form to send emails: http://www.westlake.school.nz/contact
Problem is, the school staff use outlook. When they recieve email from parents etc, the email comes in as
"From: [email protected] On Behalf Of Westlake Boys High School"
In Gmail it comes in correctly such as
from Westlake Boys High School [email protected]
Unfortunately, I cannot tell the entire school staff to stop using Outlook and exchange.
Can Drupals drupal_mail function be altered in order to fix this?
From contact.pages.inc:
drupal_mail('contact', 'page_mail', $contact['recipients'], language_default(), $values, $from);
tmsimont explains on this URL (http://api.drupal.org/api/function/drupal_mail#comment-3243) that
of the drupal_mail function that is used by contact_mail_page_submit.
with more details (code from the
drupal_mail()
function)So to solve your problem you could implement hook_mail function (http://drupal.org/node/358855#comment-2079266)
More resources can be found here:
1 - http://drupal.org/node/656472
2 - http://drupal.org/node/861562
3 - http://www.nmglc.co.uk/content/overriding-drupals-mail-function