Posted on: 6/3/2014 2:34:25 AM | Views : 427

Hi, 
I'm going to send an email when a user encoded a valid email address.
But as I execute my code this Error appeares:
"The parameter 'addresses' cannot be an empty string.
Parameter name: addresses"

Please I need help on this, heres my code:

If txtEmailAddress.Text.Trim = String.Empty Then member.EmailAddress = Nothing Else member.EmailAddress = txtEmailAddress.Text.Trim RegistrationMail.NewRegistrationEmailToMember(member) End If

Public Shared Sub NewRegistrationEmailToMember(ByVal member As Member) SendMailMessage("ANB345", Body(member), member.EmailAddress) End Sub
Public Shared Sub SendMailMessage(ByVal subject As String, ByVal body As String, ByVal EmailAddress As String) Dim mMailMessage As New MailMessage() Try 'Dim from As String = "info@avanza.ph" 'Dim recipient As String = EmailAddress ...

Go to the complete details ...