I wanted mail to be sent on the clicking of a submit button in my module but the mail was not sent. On checking the log viewer via the host login I got the following error:
System.Exception: Unhandled Error: ---> System.Web.HttpUnhandledException:
Exception of type System.Web.HttpUnhandledException was thrown. --->
System.Web.HttpException: Could not access 'CDO.Message' object. --->
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.Runtime.InteropServices.COMException
(0x80040213): The transport failed to connect to the server. --- End of inner
exception stack trace --- 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.Type.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args) at
System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String
methodName, Object[] args) at
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName,
Object[] args) --- End of inner exception stack trace --- at
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName,
Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message) at
PwC.Modules.HelpDesk.HelpDeskProcessor.sendMail(String from, String cat, Int32
rqstid, String cmd, String usr) in C:\PwC
Intranet\Intranet\DesktopModules\PwC.HelpDesk\HelpDeskProcessor.aspx.vb:line 122
at PwC.Modules.HelpDesk.HelpDeskProcessor.Page_Load(Object sender, EventArgs e)
in C:\PwC
Intranet\Intranet\DesktopModules\PwC.HelpDesk\HelpDeskProcessor.aspx.vb:line 44
at System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace --- at
System.Web.UI.Page.HandleError(Exception e) at
System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context) at
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) --- End of inner exception stack trace ---
Can someone help out please.