By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,931 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

CDONT and HTML email line wrap problem

P: n/a
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.mississippiprinting.com/MPCHomeOld.asp">
<img border="0"
src="http://www.mississippiprinting.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.mississippiprinting.com/MPCHomeOld.asp"><IMG=20
src=3D"http://www.mississippiprinting.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
Share this Question
Share on Google+
1 Reply


P: n/a
Gazing into my crystal ball I observed "Simon Wigzell"
<si**********@shaw.ca> writing in news:SHCJd.173004$6l.136708@pd7tw2no:
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.mississippiprinting.com/MPCHomeOld.asp"> <img
border="0"
src="http://www.mississippiprinting.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.mississippiprinting.com/MPCHomeOld.asp"><IMG=20
src=3D"http://www.mississippiprinting.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 discussion thread is closed

Replies have been disabled for this discussion.