<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Man Made Code - CDOSYS</title>
    <link>http://manmadecode.com/</link>
    <description>Hi All,

This is a pure Technology Blog. If you are a software developer or a technology dude, read this blog. We discuss here only the coding issues and technical issues faced by a software developer. The blog also focus to share software development tips and tricks with openness to ideation.  </description>
    <language>en-us</language>
    <copyright>ManMadeCode.com</copyright>
    <lastBuildDate>Sat, 13 Dec 2008 17:09:03 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>akash.heranjal@gmail.com</managingEditor>
    <webMaster>akash.heranjal@gmail.com</webMaster>
    <item>
      <trackback:ping>http://manmadecode.com/Trackback.aspx?guid=780605ae-be67-479f-909a-7e7f41cfcefa</trackback:ping>
      <pingback:server>http://manmadecode.com/pingback.aspx</pingback:server>
      <pingback:target>http://manmadecode.com/PermaLink,guid,780605ae-be67-479f-909a-7e7f41cfcefa.aspx</pingback:target>
      <dc:creator>Akash Heranjal</dc:creator>
      <wfw:comment>http://manmadecode.com/CommentView,guid,780605ae-be67-479f-909a-7e7f41cfcefa.aspx</wfw:comment>
      <wfw:commentRss>http://manmadecode.com/SyndicationService.asmx/GetEntryCommentsRss?guid=780605ae-be67-479f-909a-7e7f41cfcefa</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Arial">Author: Akash Heranjal<br /><br /></font>
        <i>
          <b>Problem:</b>
        </i>
        <br />
        <br />
The code is simple and straight. The code builds HTML email and uses CDOSYS object
to send the email to recipients. Logic is simple, build an HTML mailer string in a
VBScript variable myMailBody. Assign the variable myMailBody to the HTML Body of the
email using CDOSYS object and send the mailer to recipients. But the problem starts
here… <u><i>When the recipient views the mailer, S/He can see an ! symbol in-between
the mailer content</i></u>.<br /><br /><br /><i><b>Solution:</b></i><br /><br />
After a long research and trials found the solutions for this issue; it is bit weird
but solves the issue. <u><i>The HTML mailer string built in the VBScript variable
myMailBody should include <b>&amp;VBCRLF</b> (Line Break) on or before every 1024th
character in the string. If not done, the CDOSYS object adds ! symbol in the mailer
body at every 1024th character.</i></u><br /><br />
So, in case if you have the mailer body built using a variable (let us say it is in
a loop), add &amp;VBCRLF at the end of the string to insert line break. This should
solve the problem.<p></p><img width="0" height="0" src="http://manmadecode.com/aggbug.ashx?id=780605ae-be67-479f-909a-7e7f41cfcefa" /></body>
      <title>CDOSYS Weird Problem – The email body contains ! symbol in-between the content</title>
      <guid isPermaLink="false">http://manmadecode.com/PermaLink,guid,780605ae-be67-479f-909a-7e7f41cfcefa.aspx</guid>
      <link>http://manmadecode.com/2008/12/13/CDOSYSWeirdProblemTheEmailBodyContainsSymbolInbetweenTheContent.aspx</link>
      <pubDate>Sat, 13 Dec 2008 17:09:03 GMT</pubDate>
      <description>&lt;font face="Arial"&gt;Author: Akash Heranjal&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;i&gt;&lt;b&gt;Problem:&lt;/b&gt;&lt;/i&gt;
&lt;br&gt;
&lt;br&gt;
The code is simple and straight. The code builds HTML email and uses CDOSYS object
to send the email to recipients. Logic is simple, build an HTML mailer string in a
VBScript variable myMailBody. Assign the variable myMailBody to the HTML Body of the
email using CDOSYS object and send the mailer to recipients. But the problem starts
here… &lt;u&gt;&lt;i&gt;When the recipient views the mailer, S/He can see an ! symbol in-between
the mailer content&lt;/i&gt;&lt;/u&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;i&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/i&gt;
&lt;br&gt;
&lt;br&gt;
After a long research and trials found the solutions for this issue; it is bit weird
but solves the issue. &lt;u&gt;&lt;i&gt;The HTML mailer string built in the VBScript variable
myMailBody should include &lt;b&gt;&amp;amp;VBCRLF&lt;/b&gt; (Line Break) on or before every 1024th
character in the string. If not done, the CDOSYS object adds ! symbol in the mailer
body at every 1024th character.&lt;/i&gt;&lt;/u&gt;
&lt;br&gt;
&lt;br&gt;
So, in case if you have the mailer body built using a variable (let us say it is in
a loop), add &amp;amp;VBCRLF at the end of the string to insert line break. This should
solve the problem.&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://manmadecode.com/aggbug.ashx?id=780605ae-be67-479f-909a-7e7f41cfcefa" /&gt;</description>
      <comments>http://manmadecode.com/CommentView,guid,780605ae-be67-479f-909a-7e7f41cfcefa.aspx</comments>
      <category>CDOSYS</category>
      <category>IIS</category>
    </item>
  </channel>
</rss>