В вашем примере wc
- это локальная переменная, которая будет освобождена при завершении вызова функции. Это ставит вас в неопределенную область поведения.
Простое исправление:
const wchar_t *GetWC(const char *c)
{
const size_t cSize = strlen(c)+1;
wchar_t* wc = new wchar_t[cSize];
mbstowcs (wc, c, cSize);
return wc;
}
Обратите внимание, что вызывающий код должен будет освободить эту память, иначе у вас будет память протечь.
Option Description
------ ----------
SMTP host Specify the SMTP host name.
SMTP port Specify the SMTP port number.
Send messages from Specify the email address, from which notification messages will be sent to the user.
SMTP login Specify the SMTP login name, if any.
SMTP password Specify the SMTP password.
Use TLS (SSL) Select this option to secure your SMTP connection with TLS.
(This feature is only available in TeamCity 3.1+)
Test connection Click this button to establish a connection with the specified SMTP host.
Save Click this button to save changes and close the page.
источник: http://www.jetbrains.net/confluence/display/TCD3/Email+and + Jabber + Уведомитель + Настройки
Вы можете настроить параметры электронной почты в разделе Администрирование - Конфигурация сервера - Уведомитель электронной почты.