Dec 30, 2006 05:47 PM|rippleman|LINK
Hello, I have created a public shared function that I can access through several different pages.
However, I am getting a message that states: Function 'SendEmail' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
so, the question is, how do I get rid of this error?
This is how the first part of the function looks:
Public Class EmailUtils
Public Shared Function SendEmail(ByVal toemail As String, ByVal fromname As String, ByVal fromemail As String, ByVal subject As String, ByVal message As String, ByVal attachment As String)
Thanks in advance.