mailMessage Class

  • Thread starter Thread starter mannyGonzales
  • Start date Start date
M

mannyGonzales

Guys,

Using .Net 1.1

I have a xml config file that list of two email address
separated by a semicolon.

<to>[email protected];[email protected]</to>

using the system.web.mail namespace

my code reads this way:
-------------------------------------
Dim omailMsg As MailMessage = New MailMessage

omailMsg.From = sfrom
omailMsg.To = sTo

smtpServer.SmtpServer = "<my server>"
smtpServer.Send(omailMsg)
--------------------------------------

i keep getting an error that says:
Could not access 'CDO.Message' object.

But having only email address works.

any ideas?

thanks
 
Hi Manny,

I think you should refer to the CDO documentation on how to specify multiple
recipients. I suppose the semicolon is not considered as a valid separator
by the Message class.
 
Back
Top