Each time I try to send a file using the file share program this error pops up.
Server Error in '/FileShare' Application.
The parameter 'from' cannot be an empty string.
Parameter name: from
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: The parameter 'from' cannot be an empty string.
Parameter name: from
Source Error:
Line 54: Dim SmptCl As New SmtpClient(SmtpSettings.MailServer, SmtpSettings.MailPort)
Line 55: SmptCl.Credentials = GetCredentials(SmtpSettings)
Line 56: Dim MailMsg As New MailMessage(MsgFrom, MsgTo)
Line 57: MailMsg.Subject = MsgSubject
Line 58: MailMsg.Body = MsgText
Source File: D:\Documents and Settings\Administrator\My Documents\Mybooks\ASP Result\File Share\FileShare\App_Code\Utilities.
vb Line: 56
Stack Trace:
[ArgumentException: The parameter 'from' cannot be an empty string.
Parameter name: from]
System.Net.Mail.MailMessage..ctor(String from, String to) +867990
Utilities.SendEmail(String MsgTo, String MsgFrom, String MsgSubject, String MsgText) in D:\Documents and Settings\Administrator\My Documents\Mybooks\ASP Result\File Share\FileShare\App_Code\Utilities.
vb:56
ContentFiles_Default.btnSend_Click(Object sender, EventArgs e) in D:\Documents and Settings\Administrator\My Documents\Mybooks\ASP Result\File Share\FileShare\ContentFiles\Default.aspx.
vb:40
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210