If the "From address" is left blank the site email address is used instead of the address entered by the user. Thus if someone forwards a page from your website, the email received will show the site e-mail address in the from: field. This howto shows you how to solve the issue quickly.
Solution
Edit the forward module
Go to sites/all/modules/forward and use and editor to open forward.module
Search, change and save
Search for the following instance:
$from = variable_get('forward_sender_address', '');
if (empty($from)) {
$from = variable_get('site_mail', '');
}
Replace it with:
$from = variable_get('forward_sender_address', '');
if (empty($from)) {
$from = $form_state['values']['email'];
}
Save the file. Now the module should work as indicated. i.e. the email entered in the form will be shown in the from: field.
Read more articles
- Log in to post comments