Click here to Skip to main content
15,892,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I open three emails that opens first and goes back to open the second and then the third and when done write msgbox done.

I use this code but when it opens the first email does not open the second email.

VB
    For i As Integer = 0 To RichTextBox1.Lines.Length - 1
    Dim str As String = RichTextBox1.Lines(i).ToString
    Dim str1 = str.Split(":")(0).ToString
    Dim str2 = str.Split(":")(1).ToString
    WebBrowser1.Document.GetElementById("username").SetAttribute("value", str1)
    WebBrowser1.Document.GetElementById("passwd").SetAttribute("value", str2)
    WebBrowser1.Document.GetElementById(".save").InvokeMember("click")
    System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 2")
Next
Posted
Updated 29-Mar-14 20:11pm
v5
Comments
PrissySC 30-Mar-14 7:40am    
Google Internet Programming VB and Mail - BTW Wiley writes entire books on this. :)

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