Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
All emails are saved in notepad.

In my application I use an 'Upload' button to upload the notepad file for submission to the mail, to be delivered to all the contacts in an Upload Text File.

Please help.
Posted
Updated 1-Nov-10 22:22pm
v2
Comments
Sunasara Imdadhusen 2-Nov-10 1:00am    
No body would develop whole think; you should do yourself, if you have any problem or error then you could ask for help?
Rajesh Anuhya 2-Nov-10 1:07am    
No Effort.., First You Start Something and come with a problem where you exactly struck..
Dalek Dave 2-Nov-10 4:21am    
Edited for Grammar, Syntax and Spelling.

1 solution

Use stream reader to read the line(email) from the text file.
//sample
StreamReader sr = new StreamReader("C:\\test.txt");//path
string emailID
while (emailID != null)
            {
                //code to send email (emailID)
              
              next line(email)//
                emailID = sr.ReadLine();
            }
sr.Close();
 
Share this answer
 
Comments
Dalek Dave 2-Nov-10 4:21am    
Good Call.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900