Reputation: 387
On drupal 6 i have the smtp module installed and i can't figure out how to change the reply-to address.
In the "smtp.module" file I have added the lines:
$form['email_options']['smtp_replyto'] = array(
'#type' => 'textfield',
'#title' => t('Reply-to Email address'),
'#default_value' => variable_get('smtp_replyto', ''),
'#description' => t('The reply-to E-mail address'),);
right after the line 181 where is the $form['email_options']['smtp_fromname']
decleration.
So this field shows up correctly in the administrative panel in the 'SMTP authentication support'. I can't figure out how to make the system take this address and replace it in the reply-to field of the email instead of the sender's mail.
Any suggestion?
Upvotes: 0
Views: 1603
Reputation: 5731
You can use hook_mail_alter: http://api.drupal.org/api/drupal/developer!hooks!core.php/function/hook_mail_alter/6 to change it before the mail was sended.
Upvotes: 1