I'm trying to send individual mailmerge records as emails after each is merged within the merge process. I'm saving the wprichtext in html format and using that for main body of message. Problem is that it only works for the first message, all subsequent messages seem to have invalid unrenderable html.
The difference with first message seems to be that the wprichtext where text is merged to has two carriage returns in it at beginning. When first email is created the html is okay, but the wprichtext merge destination is cleared after that first time and subsequent html saves have some different formatting that screws things up.
I'd appreciate any tips on what might be going wrong. I am using the WPXMLFile to render the html, at least I think I am.
Regards,
Herbert Sitz
Here's illustration of the first html record saved and the second.
-------------------------------------------------------
This is from first record, which renders okay:
<html><head><meta name=3D"Generator" content=3D"WPTools V4.0 HTML/CSS Ex=
port"/>
<style type=3D"text/css"><!--
Default{display:block;font-size:11pt;}
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
--></style>
</head><BODY style=3D"margin:0px;padding:0px;"><p class=3D"Default">8/6/=
2004</p>
<p> </p>
<p><SPAN style=3D"font-size:11pt;">Bass</SPAN></p>
<p><SPAN style=3D"font-size:11pt;">Deirdre</SPAN></p>
<p><SPAN style=3D"font-size:11pt;">Friend<------->Friend</SPAN></p=
>
---------------------------------------
This is from second (and subsequent records are similar) and it has problems, results in blank page in Outlook Express, or garbled page when I click on 'Reply" to generate a response email:
<html><head><meta name=3D"Generator" content=3D"WPTools V4.0 HTML/CSS Ex=
port"/>
<style type=3D"text/css"><!--
Default{display:block;font-size:11pt;}
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
body{font-weight:normal;font-style:normal;font-family:"Arial";font-size:=
10pt;color:black;background-color:black;margin:0.00in;text-indent:0.00in=
;line-height:0.00in;text-align:left;background-color:white;list-style:no=
ne;}
--></style>
</head><BODY style=3D"margin:0px;padding:0px;"><p class=3D"Default">8/5/=
2004</p>
<p> </p>
<p><SPAN style=3D"font-size:11pt;">Bass</SPAN></p>
<p><SPAN style=3D"font-size:11pt;">Deirdre</SPAN></p>
<p><SPAN style=3D"font-size:11pt;">Friend<------->Friend</SPAN></p=
>
--------------------------------------
The only difference I can find is the inclusion of this block in the second and subsequent records, which doesn't occur within the first:
body{font-weight:normal;font-style:normal;font-family:"Arial";font-size:=
10pt;color:black;background-color:black;margin:0.00in;text-indent:0.00in=
;line-height:0.00in;text-align:left;background-color:white;list-style:no=
ne;}
----------------------------------