Results 1 to 3 of 3

Thread: sendmail error

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    sendmail error

    Hi there.

    I am trying to send an email to a specified valid email address within my asp.net application

    I am using the System.web.mail class.

    problem is, when it sending the mail using System.Web.Mail.SmtpMail.Send(theEmailObjectHere) it throws me this exception:

    "Exception has been thrown by the target of an invocation"

    any ideas?

    my smtp server does work (using a web smtp provided by a test email address I have made with that service... and they do support smtp!)

    exact error message:


    Code:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x8007007F): The specified procedure could not be found. --- 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.SetProp(Type type, Object obj, String propName, Object propKey, Object propValue) at System.Web.Mail.LateBoundAccessHelper.SetPropStatic(Object obj, String propName, Object propKey, Object propValue) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at PFTP.createuser.SendEmailRegisterThanks() in c:\inetpub\wwwroot\pftp\createuser.aspx.cs:line 196
    Last edited by Techno; Jun 19th, 2005 at 06:49 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width