smtps::connection::submit response
Closed this issue · 2 comments
C0D3RED commented
Why am I receiving status code 200 response from gmail smtps server if receipent email does not exists?
try
{
mailio::smtps connection{m_config->host, m_config->port};
connection.authenticate(m_config->email, m_config->password,mailio::smtps::auth_method_t::START_TLS);
auto response = connection.submit(msg);
std::cout << response << '\n';
}
catch (const std::runtime_error& ex)
{
std::cout << ex.what() << '\n';
}
karastojko commented
Because an SMTP server does not check recipients on sending. The email infrastructure is quite different comparing to, for instance, IM server.
C0D3RED commented
Understood, thank you