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

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:
    2
    Views:
    416
    Schalkwi
    Dec 9, 2005
  2. Music Lover
    Replies:
    5
    Views:
    1,939
    Music Lover
    May 12, 2005
  3. Andrew Thompson
    Replies:
    0
    Views:
    488
    Andrew Thompson
    Dec 7, 2006
  4. Jag
    Replies:
    1
    Views:
    466
    Greg R. Broderick
    Dec 29, 2006
  5. rtilley

    ruby to send email attachments

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

Share This Page