tags:

views:

41

answers:

2

In my module I want to get the site wide email address - the one that is set in the site information admin pages and that is used for all automatically send email messages.

How can I do this?

+3  A: 
$site_email = variable_get('site_mail', '');
Kevin
+1 Le sigh. I was a little slow.
altCognito
Thanks - much appreciated.
Finbarr
+1  A: 

Looking into the system module, I found the settings form references the following:

variable_get('site_mail', ini_get('sendmail_from')
altCognito