Emailing From .net page only sends partial info.

I have a .net page that is supposed to send a very long string as a message to an email address.  It works but when receiving the email only the last 1/4 of the string is there.  I checked the source of the email etc. and only 1/4 of the entire string is sent.  

I'm using
<%@ import Namespace="System.Web.Mail" %>

sub emaildata(ByVal sender As System.Object, ByVal e As System.EventArgs)

Dim MyMessage as New MailMessage
MyMessage.To = email.text
MyMessage.From = ""
MyMessage.Subject = "Monthly Sales"
MyMessage.BodyFormat = MailFormat.Html
MyMessage.Body = OUTPUT.text
SmtpMail.SmtpServer = ""

end sub

TIA for any help.
1/5/2005 10:06:03 AM 91979 articles. 3 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 23

How do you retrieve and/or compose that string? How long is is it actually? Try using the StringBuilder class (import the "System.Text" Namespace). This class has an "append" method which allows you to build your string very effectively, as it is optimised in speed for building Strings.

Dim MailBody As New StringBuilder
MessageMail.Body = MailBody.ToString()
1/5/2005 2:22:58 PM
The problem most likely lies in the way that you build the string for the e-mail body rather then the sending of the e-mail itself.  Can you post that code?

.NET Developer and MVC Advocate
1/5/2005 4:50:40 PM
I have a .net page with probably an equivalent of 10 pages worth of HTML code which is actually a report.  It is displayed in an <asp:label> control.  I know all the HTML code is making it to the page because the information is showing up in that label.  Now when I send the contents of that label to my email using the code I posted above on the first message only a part of it makes it to the email message.  Is there a way to attach a message to an email as an html document from an page?
1/7/2005 10:45:19 AM

Similar Artilces:

net send in .net
Hi,  I am trying to execute net send comman in my code. But I am getting "win32 exception unhandled error". Please help me. My code is:Dim psi As New ProcessStartInfo() psi.UseShellExecute = False psi.FileName = "Net send" '  - IP address of a system in my network psi.Arguments = " test" Process.Start(psi)  Thanks in advance! Shwetha Tryu changing   psi.FileName = "Net send" '  - IP address of a system in my network psi.Arguments = " test&quo...

Sending SMS using or using or
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

------_=_NextPart_001_01C6429F.D89AA417 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Net::LDAP Net::LDAPS Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, ....) password? I don't like to write the secret password to the perl file. Best regards Barbara Wilbert ------_=_NextPart_001_01C6429F.D89AA417-- Wilbert Barbara (CI/OSI) * wrote: > Hello, > > Net::LDAP > Net::LDAPS > > Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, > ......

Sending Email with Net.Mail (No Email, no error)
hi,i'm using the namespace to send an email from my application. when i send, the application does not fire any exception, neither does it send the email to my account.below is the code i'm using  Dim mmailMessage As New Net.Mail.MailMessage Dim mFrom As New Net.Mail.MailAddress(mailFrom) mmailMessage.From = mFrom Dim ll As String = "" mmailMessage.To.Add(ll) mmailMessage.Subject = "Talk Concerns" mmailMessage.Body = "Testing Concerns One Two" Dim ...

Starting an Application in .net
i am new to could any one give me simple ajax,net example so that i start building on my ajax skills please.........  I started with the todolist video on the main page, and its all you need to know to get started. Don't forget to click "Mark as Answer" on the post that helped you.This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.    ...

Paging in AP.NET/VB.NET
Hi All, Well... a simple problem perhaps regarding paging in an application using I have a datagrid named dgResult and being trying to implement paging on it.  Following is the code to capture the PageIndexChanged event. Sub dgResult_PageIndexChanged(ByVal sender As Object, ByVal e As DataGridPageChangedEventArgs) Handles dgResult.PageIndexChanged dgResult.CurrentPageIndex = e.NewPageIndex GetProperData() End Sub I have a break point at dgResult.Curre.... position.  The datagrid, just do not accept the method and I can not event trap the event using a break ...

sending email .net
 HiI am trying to send an email and I get the following errorI have coded as follows Imports System.Configuration.ConfigurationSettingsImports System.Web.MailPrivate Sub ChancellorFormEmail()        Dim Email As MailMessage        With Email            .From = AppSettings!FromAddress            .To = AppSettings!ToAddress            .Subject = AppSett...

sending emails in .net
Hi Everyone,     I am trying to send an email in This works fine, I am  trying to embed images in the body of the email. How can I do this. I am using .net framework 1.1.   Any help will be greatly appreciated. Set the email format t HTML and add an attachement, if you want to display it you may want to instead of embeding it to show as a <IMG tag in HTML and download it from the webCheersAlMy BlogMapStats.NETPlease click on 'Mark as Answer' if this post answered your question! This link explains your everything about sending emails in .NE...

.NET sending an email
I am a new user to .NET (C#) and am trying to get an email to be sent on page load. For some reason, on page load the email is not created. Can someone help? Thanks. <html> <body> <script runat="server"> protected void Page_Load() { string from = ""; string to = ""; string subject = "Subject here"; string body = "Body here"; SmtpMail.SmtpServer = "IP Here"; SmtpMail.Send(from, to, subject, body); } </script> </...

how to get start with .NET
the net help people installed  to my desktop 1-microsoft visual studio .NET enterprise developer 2003 2-microsoft .NET framework 1.1 what else do i need ...???  and how can i try with some simple code in VS.Net and run it to see wat happen...????? please help If you want to develope web applications, then you'll also need IIS on your PC.  That'll require XP-Professional or Windows 2000/2003, but XP-Home edition won't allow IIS installation. As for how to get started, you can search the web for some tutorials or buy a good book on VS.  The topic is way too vast to...

Getting Start With .net
hi i'm intersted to learn (vb or delphi) . i programming with delphi6 but i'd like to tp know something about programming in internet specially with .net . i hear about with delphi 7 that i can programming with delphi in .net .... is it right ? what 's our opinian about it ? and better to learn Vb.Net or continu with delphi(or thanks. Ali Darabian I think there is some support for Delphi in .Net. However, you will find much more support from the user community if you choose a more popular language such as VB.Net or C#. Since your al...

Sending email in .net
Here's my issue, I have a page for employees to fill out for vacation requests.  After they fill out the form they select their supervisors name from a drop-down list and when they click submit it sends an email to the selected supervisor to either grant/deny the request.  The problem is that when I try to set the = ddlsupervisor.selecteditem.value I get a message saying that the property To is read-only.  Is there any way around this issue?  Any suggestions are much appreciated, thanks. take a look at the referencef or dropdownlist.

How to get RS (From VB6) to .NET (VB.NET)
Hi Friends,         I have requirement, there is one function in VB6 it returns a RS, I need to call that function in  VB.NET, how to get those values into .NET, if can any body can help (pass me some code snippets), that will be greate, Thank you.Madhu... -Madhu hey guys i got this one just by using fill method.-Madhu...

convert page to
ok I have an entire page in and now I want to integrate some code from another page but it written in what is the easiest way to convert to I tried using but it only gave me errors here is what I am trying to convert let me know if you have any ideas With Alex Lowe's translator ' Messages Private NoFileMessage As String = "No file selected" Private UploadSuccessMessage As String = "Uploaded Sucess" Private NoImagesMessag...

Web resources about - Emailing From .net page only sends partial info. -

Facebook Begins Emailing Users Who Were Part Of Sponsored Stories Class Action
Unlike the message about a 14-year-old boy who was shot by his stepfather , messages from Facebook titled, “Legal Notice of Settlement of Class ...

7-in-1 app for seniors – easy skyping, facebooking, emailing and more in EasyFamily AppSuite® on the ...
Get 7-in-1 app for seniors – easy skyping, facebooking, emailing and more in EasyFamily AppSuite® on the App Store. See screenshots and ratings, ...

Blech! The boss is emailing me. I'm gonna tell him my cellphone didn't work down here in the subway ...
Note: this photo was published in a Nov 11, 2009 blog titled "Why Agencies are Starting to Take Notice of Mobile." It was also published in a ...

Emailing porn at work not automatically sackable, court finds
The federal court has upheld a ruling that found emailing pornography in the workplace is not automatically a sackable offence.

Google steps up bid to stop emailing snooping with End-to-End software tool
GOOGLE has stepped up its effort to make it tougher for spies or anyone else to snoop on email, unveiling Chrome browser software for scrambling ...

Emailing porn at work not automatically sackable, court finds
Australia's federal court has upheld a ruling that emailing pornography in the workplace is not automatically a sackable offence.

By emailing hacking victims, eBay opens users up to more risk
Trusting people to protect themselves is not a good form of cyber security.

She Became A Viral Sensation After Emailing CNN
What may have disturbed Penny Loker the most about a CNN story about disfigured Vietnamese children and stillborn babies was the caption above ...

Google emailing select devs with invite to buy Project Tango development kit
Project Tango popped up on the Play Store last month, but it has since sit there unavailable for purchase for anyone except those who registered ...

Apple emailing developers to get ready for Safari notifications in Mavericks
... even when Safari isn’t running. Check out 9to5Mac for more breaking coverage of AAPL Company . What do you think? Discuss "Apple emailing ...

Resources last updated: 12/22/2015 1:56:08 AM