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

CommentFileSizeAuthor
forward-proper-from-replyto.patch424 bytesChad_Dupuis

Comments

ferrangil’s picture

Status: Needs review » Reviewed & tested by the community

This is working just great for Drupal 5.

Thank you very very much!

Chad_Dupuis’s picture

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

seanr’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in both branches. Releases will be out later tonight.

Status: Fixed » Closed (fixed)

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