Jan 23, 2012 12:32 PM|tvw|LINK
Hi Peter,Thank you for your response,I've tried with your anwser to get the correct code but it does not work.The emails must be sent with a WebUserControl.ascx page, the code Should Be at the DistributieLijst.vb.The distributionlist.vb can not handle the code as given by: ConfigurationManager.ConnectionStrings.The code give errors. (I am working with Microsoft Visual Web Developer 2010Express)I think the code modified to DistributieLijst.vb Should Be.The code below Should Be Replaced by a code, That reads the information from thedatabase, so thats the email get sentto Various / multiple recipients in the database.
This code sends an email to the recipient i.e. John
The code I need is:
Retrieve Name and Email Address and sorted by zip code from
Private Function GetRecipients() As DataTable
Dim table As New DataTable()
Dim row As DataRow = table.NewRow()
row("DisplayName") = "John Doe"
row("Email") = "John@example.com"
Do you have any idea?Thank you,