473,507 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Undesired text wrapping when sending email from VB

5 New Member
Last week, I found some code on-line that allows me to send email via SMTP from my VB 6.0 application. I had to add the Winsock control to the project and add the code that performs the SendData requests and waits for the appropriate replies. The sending of the email seems to be working fine. But I am getting weird text wrapping within my first paragraph. I'm not sure why.

For the text of the e-mail, I am using a String variable. I build it up dynamically, based on certain things that I want to insert into the e-mail, such as the name of a file and some simple identifier numbers from our app. I have a first paragaph, then I append a couple of control / line feed characters to the string, followed by the second paragraph. All of this is one String variable and then I send that as the text of the e-mail.

When the e-mail is sent, the text is wrapping in the first paragraph at places I do not expect, not naturally. The first paragraph has two sentences and around 250 characters. The second paragraph, which has two sentences and around 150 characters, wraps naturally, as you would expect. Any ideas what might be wrong or how I can trouble-shoot?
Jun 26 '07 #1
2 1369
Dököll
2,364 Recognized Expert Top Contributor
Last week, I found some code on-line that allows me to send email via SMTP from my VB 6.0 application. I had to add the Winsock control to the project and add the code that performs the SendData requests and waits for the appropriate replies. The sending of the email seems to be working fine. But I am getting weird text wrapping within my first paragraph. I'm not sure why.

Any ideas what might be wrong or how I can trouble-shoot?
Greetings and welcome, davidcm!

I hate to do this to you, but I was hoping you could add your code. Helps better get a handle on what you hope to achieve. How's that for a deal?

Dököll
Jun 27 '07 #2
Killer42
8,435 Recognized Expert Expert
I hate to do this to you, but I was hoping you could add your code...
Yeah, I'd have to agree.

Question, though - are you sure that the wrapping hasn't happened in the string, before sending it to e-mail?
Jun 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1425
by: Ian Ward | last post by:
I hope to add support for multi-byte encoded and bidirectional text to my curses-based UI library: http://excess.org/urwid/ I would like to support whatever encoding the user likes. Are there...
5
1769
by: Richard | last post by:
Working in asp.net I send out an email using the following Code: Dim cdoMsg As New System.Web.Mail.MailMessage Dim strEmailBCC As String = "" strEmailBCC =...
8
2843
by: Radek Budař | last post by:
Hi all, i have trouble with changing text value of textbox on runtime. I use this control to display process information about sending e-mail per smtp. I use external component >>Imports...
3
1984
by: Alex | last post by:
Hello. First, with AJAX I will get a remote web page into a string. Thus, a string will contain HTML tags and such. I will need to extract text from one <span> for which I know the ID the inner...
63
3887
by: John Salerno | last post by:
I know there's a request for a good IDE at least once a week on the ng, but hopefully this question is a little different. I'm looking for suggestions for a good cross-platform text editor (which...
6
1165
by: Markus Ernst | last post by:
Hi Searching for a possibility to display some text with preserved white space and line breaks, but with long lines being wrapped, I found this CSS declaration, which I found helpful: pre {...
0
1591
by: bp_jobemail | last post by:
I'm trying to use PHP to wrap the output of an HTML form before it goes into a precompiled C cgi script. Essentially, the company that I work for uses a purchased precompiled c program for their...
2
1075
by: supermarioandretti | last post by:
Hey guys, I have been working on a web page for my web desing class. Every thing is going well except for one thing. When ever I open fire fox, it shows undesired spaces in the text and tables. ...
2
2087
by: =?Utf-8?B?SlA=?= | last post by:
Hi all. I'm having a problem with a postback issue and I think it's cache related. Here's my setup: I have a web site that has a signup section. This has simple things like name, age, birth...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.