[Solved] convert vb email send code to c# [closed]


You could use the SmtpClient class to send email in .NET:

using (var client = new SmtpClient("127.0.0.1", 25))
using (var message = new MailMessage("[email protected]", "[email protected]"))
{
    message.Subject = "some subject";
    message.Body = "test body";
    client.Send(message);
}

1

solved convert vb email send code to c# [closed]