Extract All Email from a URL and Save it in a Text File using ASP.Net C#
So Today I am gonna discuss how can we extract all the email Ids present in a Particular URL using asp.net(C#)..
Create a Form Design like as given below..
Then Create a Class File to Extract the Emails as follows.. Name the Class file as GetEmails.cs
Finally In the Code Behind create the object of that class by referring the corresponding Namespace..
Once You have done this we are all set to go.. Just Enter the URL link with http:// attached in the corresponding Textbox and click on search button.. All the Emails Present in the associated page will be copied to the file matchlog.txt in D drive.. You can change the path of file Wherever you want ..
This Program can be used to create a web service for extracting all Emails from a Page and creating a database of emails and then auto-sending that emails at scheduled interval. Just a Thought.. :-)