Index: smtp.mail.inc =================================================================== --- smtp.mail.inc (revision 173) +++ smtp.mail.inc (working copy) @@ -61,15 +61,21 @@ $mailer->SMTPDebug = TRUE; } - // Set the from name and e-mail address. + // Set the from name. if (variable_get('smtp_fromname', '') != '') { $from_name = variable_get('smtp_fromname', ''); } else { // If value is not defined in settings, use site_name. $from_name = variable_get('site_name', ''); + } + + // and From email address + if (variable_get('smtp_from', '') != '') { + $from = variable_get('smtp_from', ''); } + //Hack to fix reply-to issue. $properfrom = variable_get('site_mail', ''); if (!empty($properfrom)) {