Problem with SmtpMail.Send

  • Thread starter Thread starter milorad
  • Start date Start date
M

milorad

Hi,

there is one problem that's annoying me a lot:

sometimes SmtpMail.Send(mailMessage) passes ok, but sometimes it throws
NullReferenceException and kills program. I don't have a clue what can it
be, so if anyone knows i will appreciate the help.

Marko
 
Does the NullReference error have to do with the SmtpServer? If so, you may
have to explicitly define a server for it.

-James
 
Back
Top