Send email message with attachments

Discussion in 'ASP .Net' started by Aleksei Pashin, Oct 12, 2004.

  1. Hi
    I am trying to send email message from my ASP.NET page using MailMessage É
    SmtpMail.
    Message must have the attachment file.
    When its size grows 150K I get an error message

    System.Runtime.InteropServices.COMException: Unspecified error

    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


    Could you help me to solve this problem.
    Thank you
     
    Aleksei Pashin, Oct 12, 2004
    #1
    1. Advertising

  2. I need to send an email with attachments which are less then 150.
    Can i have your code please?!

    "Aleksei Pashin" wrote:

    >
    > Hi
    > I am trying to send email message from my ASP.NET page using MailMessage É
    > SmtpMail.
    > Message must have the attachment file.
    > When its size grows 150K I get an error message
    >
    > System.Runtime.InteropServices.COMException: Unspecified error
    >
    > 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
    >
    >
    > Could you help me to solve this problem.
    > Thank you
    >
    >
    >
     
    =?Utf-8?B?QUNhdW50ZXI=?=, Dec 22, 2004
    #2
    1. Advertising

  3. Aleksei Pashin

    Schalkwi Guest

    Hi
    I get exactly the same problem, using CDO objects, in ASP .NET (but
    get the error when exceeding 100Kb in size).
    Any ideas here?


    -
    Schalkw
    -----------------------------------------------------------------------
    Posted via http://www.codecomments.co
    -----------------------------------------------------------------------
     
    Schalkwi, Dec 9, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Aleksei Pashin

    Send email message with attachments

    Aleksei Pashin, Oct 12, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    454
    Aleksei Pashin
    Oct 12, 2004
  2. Music Lover
    Replies:
    5
    Views:
    1,953
    Music Lover
    May 12, 2005
  3. Andrew Thompson
    Replies:
    0
    Views:
    496
    Andrew Thompson
    Dec 7, 2006
  4. Jag
    Replies:
    1
    Views:
    468
    Greg R. Broderick
    Dec 29, 2006
  5. rtilley

    ruby to send email attachments

    rtilley, Apr 2, 2006, in forum: Ruby
    Replies:
    2
    Views:
    359
    Dimitri Aivaliotis
    Apr 3, 2006
Loading...

Share This Page