Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to send one mail to many recipients asp.net ?

Avatar of ASkEPA
ASkEPAFlag for Poland asked on
8 Comments1 Solution967 ViewsLast Modified:
Hello Experts.

How to send one mail to many recipients from my vb.net code ?
Included function works only for one recipient.

Function WyslijEmail_html_LISTA_OSOB(ByVal _pobierzdo As String, ByVal _temat As String, ByVal _tresc As String) As String
        Dim email_od As New MailAddress("obieg@epa", "Obieg Dokumentów")
        Dim email_do As New MailAddress(_pobierzdo, _pobierzdo)
        Dim msg As New MailMessage(email_od, email_do)
        msg.Body = _tresc
        msg.Subject = _temat
        msg.IsBodyHtml = True
        Dim mailSender As New System.Net.Mail.SmtpClient()
        mailSender.Host = ""
        Catch ex As Exception
            WyslijEmail_html_LISTA_OSOB = ex.ToString
        End Try
        Return WyslijEmail_html_LISTA_OSOB
    End Function
Avatar of Dirk Haest
Dirk HaestFlag of Belgium imageProject manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answers