Sending email via System.Web.Mail.SmtpMail
From: Paul (rebelopaul_at_hotmail.com)
Date: 05/23/03
- Next message: Sparky: "Re: Encryption / string encoding"
- Previous message: James: "Re: Loading a Textfile public key"
- Next in thread: Robert Hurlbut: "Re: Sending email via System.Web.Mail.SmtpMail"
- Reply: Robert Hurlbut: "Re: Sending email via System.Web.Mail.SmtpMail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 22 May 2003 19:52:30 -0700
I get an error message when attempting to send an email
from my asp.net website.
=========================================================
[COMException (0x80040213): The transport failed to
connect to the server.
]
[TargetInvocationException: Exception has been thrown by
the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name,
BindingFlags invokeAttr, Object target, Object[] args,
Boolean[] byrefModifiers, Int32 culture, String[]
namedParameters) +0
System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target,
Object[] args, ParameterModifier[] modifiers, CultureInfo
culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object
obj, String methodName, Object[] args) +58
[HttpException (0x80004005): Could not
access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object
obj, String methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
+1836
System.Web.Mail.SmtpMail.Send(MailMessage message) +153
ASP.addComment_aspx.PostComment(Object sender,
EventArgs e) +374
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
+108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEve
ntHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent
(IPostBackEventHandler sourceControl, String
eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent
(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
======================================================
I know the smtp service is running because I can send
email using another website on that machine (ASP). And
that website is using cdonts and I'm sure the mail
assemblies in dotNet use the same.
It sounds like I have a security issue but I'm unsure of
what I have to do. I've tried many things after trawling
for information on the net but nothing seems to work. Has
anyone got any ideas ?
Desperate :o/
- Next message: Sparky: "Re: Encryption / string encoding"
- Previous message: James: "Re: Loading a Textfile public key"
- Next in thread: Robert Hurlbut: "Re: Sending email via System.Web.Mail.SmtpMail"
- Reply: Robert Hurlbut: "Re: Sending email via System.Web.Mail.SmtpMail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]