[Solved] How to link a button to outlook application and send mail c# [closed]


If you just want to open email client window for sending a message, you can use this:

 Process.Start("mailto:" + emailAddress + "?subject=" + subject + "&body=" + body);

However, if you just want to send email without any input from the user, best bet would be to send directly via SMTP server. You can use SmtpClient class for that:
https://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient%28v=vs.110%29.aspx

solved How to link a button to outlook application and send mail c# [closed]