I have written many apps that send emails , normally I create an SMTP client , authenticate with username and password , and that's it! I am now updating some OLD classic ASP code where they sent an email like so :
Set objMessage = Server.CreateObject("CDO.Message")
objMessage.To = strTo
objMessage.From = strFrom
objMessage.Bcc = strBcc
objMessage.Subject = strSubject
objMessage.TextBody = strBody
objMessage.Send
Set objMessage = Nothing
I've Google'd and found that obviously the CDO objects were deprecated long ago,
my question is :
Is this code above actually able to send emails without creating some type of client with authentication?? AND what is the best way to update this code with using c# 4.5 ??