|
|
| 178 |
$mail =& new MailTemplate('PASSWORD_RESET_CONFIRM'); |
178 |
$mail =& new MailTemplate('PASSWORD_RESET_CONFIRM'); |
| 179 |
|
179 |
|
| 180 |
// Set the sender based on the current context |
180 |
// Set the sender based on the current context |
| 181 |
if ($journal) { |
181 |
if ($journal && $journal->getSetting('supportEmail')) { |
| 182 |
$email->setFrom($journal->getSetting('supportEmail'), $journal->getSetting('supportName')); |
182 |
$email->setFrom($journal->getSetting('supportEmail'), $journal->getSetting('supportName')); |
| 183 |
} else { |
183 |
} else { |
| 184 |
$mail->setFrom($site->getSiteContactEmail(), $site->getSiteContactName()); |
184 |
$mail->setFrom($site->getSiteContactEmail(), $site->getSiteContactName()); |