Closed (outdated)
Project:
AntiSpam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2009 at 17:06 UTC
Updated:
23 Nov 2022 at 13:45 UTC
Jump to comment: Most recent
When Antispam moderation emails are turned on, those emails are sent with a "from" address of the web server itself, rather than from the main Drupal address. For example, on my test server, moderation emails are being sent by:
Apache
while all other emails sent by Drupal use the name and address specified at admin/settings/site-information:
My Site
The latter would seem to be best practice.
Comments
Comment #1
gmark commentedOops. The example above should read:
Apache <apache@dev.mysite.com>vs
My Site <administrator@mysite.com>with the former being the From address from Antispam e-mails, and the latter being the From address on other Drupal system e-mails.
Comment #2
agileware commentedPatch anyone?
Comment #3
JohnMc commentedTry this...
Within antispam.module, before the line containing
// Send e-mails add:$from = variable_get('site_mail', ini_get('sendmail_from'));Then modify the empty headers array to contain a from value as follows:
'headers' => array('from'=>$from),hth
Comment #4
avpadernoI am closing this issue, since Drupal 4.x, 5.x, and 6.x are now not supported.