Error sending messages.

Hi,

I'm getting the following exception whenever I try o send a message.

"Exception has been thrown by the target of an invocation."

The stack trace is:

at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[]

byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args,

ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
at System.Web.Mail.CdoSysHelper.Send(MailMessage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at UtilsEnvios.CargaObj.SendUsersMails(Envio currentEnvio)

The code Im using is something like this:
.
.
.
SmtpMail.SmtpServer = "smtp1.epm.net.co"

Try
For Each recipient In recipients.Tables(0).Rows
objNewsletter.Body = ""

If recipient(0).ToString() <> "" And Not (recipient(0).ToString() Is Nothing) Then
objNewsletter.From = "mymail@epm.net.co"
objNewsletter.To = recipient(0).ToString()
objNewsletter.Subject = "Subject"
objNewsletter.Body = "Body Text"
SmtpMail.Send(objNewsletter)
SendUsersMails = True
End If
Next recipient
Catch e As Exception
SendUsersMails = False
Inconsistencia.ManejaError(16, currentEnvio.id, _codUsuario, e)
'Exit Function
Finally
mailConnection.Close()
End Try
.
.
.
This application is running on a Windows 2000 Advanced Server.

Any suggestions? Thanx.

Irene
[2035 byte] By [ireneortiz] at [2007-11-17 16:57:58]