You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
797 B
31 lines
797 B
<?php |
|
|
|
/** |
|
* Manage the emails sent to the users. |
|
*/ |
|
class FreshRSS_User_Mailer extends Minz_Mailer { |
|
public function send_email_need_validation($username, $user_config) { |
|
$this->view->_path('user_mailer/email_need_validation.txt'); |
|
|
|
$this->view->username = $username; |
|
$this->view->site_title = FreshRSS_Context::$system_conf->title; |
|
$this->view->validation_url = Minz_Url::display( |
|
array( |
|
'c' => 'user', |
|
'a' => 'validateEmail', |
|
'params' => array( |
|
'username' => $username, |
|
'token' => $user_config->email_validation_token |
|
) |
|
), |
|
'txt', |
|
true |
|
); |
|
|
|
$subject_prefix = '[' . FreshRSS_Context::$system_conf->title . ']'; |
|
return $this->mail( |
|
$user_config->mail_login, |
|
$subject_prefix . ' ' ._t('user.mailer.email_need_validation.title') |
|
); |
|
} |
|
}
|
|
|