You can skip authentication by simply removing UseBestLogin line:
using(Smtp smtp = new Smtp())
{
smtp.ConnectSSL("smtp.server.com");
// smtp.UseBestLogin("user", "password");
smtp.SendMessage(email);
smtp.Close();
}
Depending on what exact command you want to your server, you can send empty password:
using(Smtp smtp = new Smtp())
{
smtp.ConnectSSL("smtp.server.com");
smtp.Login("user", ""); // AUTH LOGIN auth no password
smtp.SendMessage(email);
smtp.Close();
}
or you can send any custom command you need:
using(Smtp smtp = new Smtp())
{
smtp.ConnectSSL("smtp.server.com");
smtp.SendCommand("X-COMMAND");
smtp.SendMessage(email);
smtp.Close();
}