changed: notification's template
added: notifications in tickets git-svn-id: svn://ttmath.org/publicrep/winix/trunk@650 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -108,7 +108,7 @@ void Notify::SendEmail(const std::string & email, const std::string & message)
|
||||
|
||||
if( !ValidateEmail(email) )
|
||||
{
|
||||
nlog << "Notify: email: " << email << " is not correct" << logend;
|
||||
nlog << log1 << "Notify: email: " << email << " is not correct" << logend;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -117,14 +117,14 @@ void Notify::SendEmail(const std::string & email, const std::string & message)
|
||||
|
||||
if( !sendmail )
|
||||
{
|
||||
nlog << "Notify: can't run sendmail" << logend;
|
||||
nlog << log1 << "Notify: can't run sendmail" << logend;
|
||||
return;
|
||||
}
|
||||
|
||||
SendMessage(sendmail, message);
|
||||
pclose(sendmail);
|
||||
|
||||
nlog << "Notify: email to: " << email << " has been sent" << logend;
|
||||
nlog << log1 << "Notify: email to: " << email << " has been sent" << logend;
|
||||
nlog << logsave;
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ Users::Iterator i;
|
||||
{
|
||||
sending = false;
|
||||
|
||||
if( system->mounts.pmount->type == Mount::thread )
|
||||
if( system->mounts.pmount->type == Mount::thread || system->mounts.pmount->type == Mount::ticket )
|
||||
{
|
||||
if( (i->thread_notify & notify_code) != 0 )
|
||||
sending = true;
|
||||
|
Reference in New Issue
Block a user