Using C# WinForm to send application registration information to a my gmail
I have a application I'm currently working on and it includes a form that allows the 开发者_StackOverflow中文版user to register it. I have the information stored in a string and I would like that information emailed to my gmail account. I searched online and I was able to send it using my gmail account but not everyone has gmail and the code requires a password from the sender.
is there a way to do this?
In your code you can provide credentials for your gmail account you can use to send emails to other accounts. Check System.Net.Mail namespace - you can start here:
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx
精彩评论