namespace PT renamed to pt
This commit is contained in:
@@ -258,7 +258,7 @@ void NotifyThread::SendMail()
|
||||
// second thread
|
||||
void NotifyThread::SendMail(const std::wstring & email, const std::wstring & message)
|
||||
{
|
||||
log << log1 << PT::Date(std::time(0)) << ' ';
|
||||
log << log1 << pt::Date(std::time(0)) << ' ';
|
||||
|
||||
if( !ValidateEmail(email) )
|
||||
{
|
||||
@@ -267,7 +267,7 @@ void NotifyThread::SendMail(const std::wstring & email, const std::wstring & mes
|
||||
}
|
||||
|
||||
sendmail_command = "sendmail ";
|
||||
PT::WideToUTF8(email, sendmail_command, false);
|
||||
pt::WideToUTF8(email, sendmail_command, false);
|
||||
FILE * sendmail = popen(sendmail_command.c_str(), "w");
|
||||
|
||||
if( !sendmail )
|
||||
@@ -297,7 +297,7 @@ size_t len;
|
||||
}
|
||||
else
|
||||
{
|
||||
len = PT::IntToUTF8(int(message[i]), buf, sizeof(buf) / sizeof(char));
|
||||
len = pt::IntToUTF8(int(message[i]), buf, sizeof(buf) / sizeof(char));
|
||||
|
||||
for(size_t a=0 ; a<len ; ++a)
|
||||
fputc(buf[a], sendmail);
|
||||
|
||||
Reference in New Issue
Block a user