Professional Web Applications Themes

System.Web.Mail.MailMessage gets truncated - ASP.NET General

Hi, When I use System.Web.Mail.MailMessage to send an e-mail, my message gets truncated. It's 12kB instead of 140kB. How can I solve this?? Bertus...

  1. #1

    Default System.Web.Mail.MailMessage gets truncated

    Hi,

    When I use System.Web.Mail.MailMessage to send an e-mail, my message gets
    truncated. It's 12kB instead of 140kB.
    How can I solve this??

    Bertus


    Bertus Guest

  2. #2

    Default Re: System.Web.Mail.MailMessage gets truncated

    No. The same message doesn't get truncated when it's sent through my outlook
    client instead of through this aspx page.

    "Marina" <hotmail.com> schreef in bericht
    news:phx.gbl... [/ref]
    gets 
    >
    >[/ref]


    Bertus Guest

  3. #3

    Default RE: System.Web.Mail.MailMessage gets truncated

    Hi Bertus,

    Please try to use the following samples to reproduce your problem and tell
    me how to reproduce your problem on my side step by step. I certainly
    appreciate your time.

    HOWTO: Send E-mail Programmatically with System.Web.Mail and Visual Basic
    NET
    http://support.microsoft.com/default.aspx?scid=kb;en-us;314201

    HOWTO: Send E-mail Programmatically with System.Web.Mail and Visual C# .NET
    http://support.microsoft.com/default.aspx?scid=kb;en-us;310273

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    <MCSD>
    Get Secure! C www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Guest

  4. #4

    Default Re: System.Web.Mail.MailMessage gets truncated

    Hi Jacob,

    I'm doing the exact same thing as in the sample, only without an attachment.

    I use a very large string in the oMsg.Body property. When I set a break
    point on SmtpMail.Send(oMsg) and I look at oMsg.Body in the immediate
    window, everything is ok. But when I receive the message in my outlook
    mailbox the message is truncated.

    Bertus

    "Jacob Yang [MSFT]" <microsoft.com> schreef in bericht
    news:phx.gbl... 
    ..NET 


    Bertus Guest

Similar Threads

  1. EnvelopedCMS and MailMessage [.NET 2.0 - VB_VS2005]
    By VIOT in forum ASP.NET Security
    Replies: 6
    Last Post: October 20th, 08:55 AM
  2. MailMessage Class
    By lostman in forum ASP.NET General
    Replies: 4
    Last Post: August 12th, 02:17 PM
  3. ASP.NET MailMessage in XP fails
    By Frank in forum ASP.NET General
    Replies: 6
    Last Post: July 31st, 05:37 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139