473,602 Members | 2,840 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONT and HTML email line wrap problem

I send HTML formatted emails with links and images in them generated by my
asp driven website. Occasionally the image will not appear and the link will
not work. By looking at the email at the receive end, (right
click/properties/details/message source, this is what I sent:

<p align="center" style="margin-top: 0; margin-bottom: 0"><a
href="http://www.mississippi printing.com/MPCHomeOld.asp" >
<img border="0"
src="http://www.mississippi printing.com/images/Mississippi-Printing-small-logo.gif"></a></p>
</body>
</html>

This is what outlook has:

<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=3Dcenter> <A=20
href=3D"http://www.mississippi printing.com/MPCHomeOld.asp" ><IMG=20
src=3D"http://www.mississippi printing.com/Mississippi-Printing-small-logo=
gif"=20
border=3D0 NOSEND=3D"1"></A></P></BODY></HTML>

The email has added "3D" before any double quotes and wrapped at either the
nearest space before 70 characters or the 70th character, which in this case
is the period in the ".gif" part of the image, so the net result is the
image won't show in the email. It indicates the wrap with an = character
with a 20 after it if it found a space to wrap after.

Other than having a shorter domain name and shorter image names, is there
any way in CDONT to define the wrap number of characters to something
greater than 70???

Reminds of old Fortran 77 which was based on punch cards, it too would need
to wrap after 70 characters. Don't tell me email is based on punch cards???

Jul 22 '05 #1
1 2213
Gazing into my crystal ball I observed "Simon Wigzell"
<si**********@s haw.ca> writing in news:SHCJd.1730 04$6l.136708@pd 7tw2no:
I send HTML formatted emails with links and images in them generated by
my asp driven website. Occasionally the image will not appear and the
link will not work. By looking at the email at the receive end, (right
click/properties/details/message source, this is what I sent:

<p align="center" style="margin-top: 0; margin-bottom: 0"><a
href="http://www.mississippi printing.com/MPCHomeOld.asp" > <img
border="0"
src="http://www.mississippi printing.com/images/Mississippi-Printing-smal
l -logo.gif"></a></p> </body> </html>

This is what outlook has:

<P style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=3Dcenter> <A=20
href=3D"http://www.mississippi printing.com/MPCHomeOld.asp" ><IMG=20
src=3D"http://www.mississippi printing.com/Mississippi-Printing-small-log
o
= gif"=20 border=3D0 NOSEND=3D"1"></A></P></BODY></HTML>

The email has added "3D" before any double quotes and wrapped at either
the nearest space before 70 characters or the 70th character, which in
this case is the period in the ".gif" part of the image, so the net
result is the image won't show in the email. It indicates the wrap with
an = character with a 20 after it if it found a space to wrap after.

Other than having a shorter domain name and shorter image names, is
there any way in CDONT to define the wrap number of characters to
something greater than 70???

Reminds of old Fortran 77 which was based on punch cards, it too would
need to wrap after 70 characters. Don't tell me email is based on punch
cards???


Actually, it's probably dependent on the email client. You may want to
think about using smaller image names. You should also think about taking
any presentational markup or presentational attributes out. Use the style
element in the head area, and put presentational stuff in there, eg:
<style type="text/css">
img {border:0}
p {text-align: center; margin-top:0; margin-bottom:0;}
</style>
</head>

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1701
by: Simon Wigzell | last post by:
I'm generating HTML formatted emails in my asp program using CDONT. Depending on hoow ling the link is it will sometimes wrap and ruin the link. The is Detail email properties listing : ------=_NextPart_000_0314_01C418C2.90C5F130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit At your request, we have created a webpage message for you: here...
2
1579
by: Rajiv | last post by:
hi all , i have to send the mail to all the employees of the company , e-mail address is stored in a table . i m using cdont component to send the mail , what are the basic requirement of cdont how to install cdont on server 2000 and is it necessary that smtp server
11
2987
by: Simon Wigzell | last post by:
My website sends automatic emails from many (25) different places. I want to send a second email by reading the parameters of the first one. I don't want to have to repeat and maintain the assignment of the second email From,To,Subject fields so I am just using an include at each point in the code where I send an email: Set MyCDONTSMail = CreateObject("CDONTS.NewMail") MyCDONTSMail.BodyFormat= 0 MyCDONTSMail.MailFormat= 1...
40
5571
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
0
2252
by: afaichun | last post by:
Hi folks, I encounter an problem when my asp page send an email with html body. I successfully receive the mail and most of the contents are correctly displayed except some html tag is broken and is displayed in the html page. I captured the html source of the email content and pasted it into notepad (without word wrap). I realized the tag is broken up into separate line (e.g. "<" is on the first line and "td>" is on the second line), which I...
7
3269
by: Xah Lee | last post by:
Summary: when encountering ex as a unit in css, FireFox (and iCab) did not take into account the font-family. Detail: http://xahlee.org/js/ff_pre_ex.html Xah xah@xahlee.org ∑ http://xahlee.org/
14
17957
by: ghostwalker | last post by:
Hi I have an HTML form with a textarea on it. When submitted (using 'get' not 'post') this forms action php file simply does this to retrieve the values: $message = $_GET; Now it all works fine but I get the string in one long string with no '\n' where the user pressed 'return key'
4
2918
cassbiz
by: cassbiz | last post by:
Could use some help here. This script is carrying over an image just fine but the text isn't coming over. can you see why it is not working???? from the form I want to carry over two lines of text and I can't find the error on why it isn't working. Any help is greatly appreciated. Here is the form
1
7731
by: praveenb000 | last post by:
Hi every one, I designed a web page, having horizontal menu using UL and LI tags; I need to be set rollover effect for a menu items. whenever user hover on a menu item, the entire item(including anchor tag text) has to change to another color, but since iam using anchor tag in LI tag, the text in the menu item is not changing color when i hover on the menu item(LI). (but changing color when i hover on the anchor tag Text). But i...
0
7993
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7921
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8404
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8270
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5870
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3901
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1511
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.