Question : save email in xml file

i have 20000000 email address  in .txt file i want to save this email in xml file and send email
to all of this using asp.net c#

Answer : save email in xml file

I will make a few assumptions here as you have not defined what you have and do not have available in your question.

Things you need to do / you have already:

  1. Define XML Format 
  2. Create class that XML can be serialized to (You can use XSD.EXE or do it manually) 
  3. Split XML containing email addresses into manageable chunks (Memory management concerns) 
  4. Load one chunk at a time 
  5. Use code to iterate through the list of email address in chunk and send email 

Things you need for application to work:

  1. Email file loader (Includes deserialization engine) 
  2. Email sending engine 

Things you need to set up data:

  1. Utility to read in text file and output in XML format (Includes serialization engine). 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:

   
      
         Joe Bloggs
         
[email protected]
... // Class c# 3.0 public class Email { public string Address { get; set; } public string Name { get; set; } } public class EmailChunk { List Emails { get; set; } }
Random Solutions  
 
programming4us programming4us