Looking in this StackOverflow question it uses the following to send emails:
System.Net.Mail.SmtpClient
Is that the easiest approach to use when sending mails from a console application. Outlook is installed in the machine that I’d like to send from – would it be overkill adding a reference and using that namespace?
Apologies for a slightly vague question but my experience is within VBA and in when the VBA resides in Excel I’ve always used Outlook but in SQLserver I use the following so was wondering if there’s something similar in c#:
msdb.dbo.sp_send_dbmail
I am using .Net 4.0
I’d go for
SmtpClientas Outlook Interop is not trivial for C# beginners. If you need a fast solution, useSmtpClientfirst and spend some spare time on trying to implement the Outlook solution – just for the sake of learning how to do things 😉