Using this code, I can send emails to people. However, every time I press the send button, I think I log back in, correct?
Is there a way to perpetuate my login session, or is the way it's always been done ("I'm making a newbie assumption")?
        var client = new SmtpClient("smtp.gmail.com", 587)
        {
            Credentials = new NetworkCredential("[email protected]", "password"),
            EnableSsl = true
        };
        client.Send("[email protected]", "[email protected]", "test", "testbody");
        Console.WriteLine("Sent");
        Console.ReadLine();