Posted by Chad_Dupuis on January 30, 2009 at 9:30pm
Jump to:
| Project: | Forward |
| Version: | 5.x-1.9 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
As it stands now the forward module will not work well with restrictive ISP's who require the from address not be an unknown (out of domain) address. The proper formation should be that the from is always from your site and the reply-to is the person who sent the forward. This will ensure the messages get through various spam blocks, etc. as well as more restrictive ISP's.
The attached patch accomplishes this.
Users who need this, may also find the following fix for the contact module helpful:
http://drupal.org/node/366238#comment-1228416
| Attachment | Size |
|---|---|
| forward-proper-from-replyto.patch | 424 bytes |
Comments
#1
This is working just great for Drupal 5.
Thank you very very much!
#2
For d6 you would do add the following to the bottom of forward.module
// This will set proper from and reply-to fields// For this to work properly you must not set a default from address in the modules configuration page
function forward_mail_alter(&$message) {
$properfrom = variable_get('site_mail','');
$properreplyto = $message['from'];
$message['headers']['From'] = $properfrom;
$message['headers']['Reply-To'] = $properreplyto;
}
Similar from reply-to settings for the overall contact form is here:
http://drupal.org/node/366238#comment-1597554
#3
Fixed in both branches. Releases will be out later tonight.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.