I am trying to build an HTML body text for an email using a docstring with variables inserted a certain points. It all works just fine, except that the first instance of the variable "pecn" in the HTML link does not get inserted into the text. The second instance of "pecn" gets inserted ok into that HTML link. What is the right way to do this or is there a better way in general?<br>
<br>This my code:<br><br>pecn = "5022543"<br>pecn_project = "F876540"<br>pdesc = "some sort of ECN for who knows what reason!"<br><br>newMail.HTMLBody = """<br><pre><br>ECN number """+pecn+""" on Project """+pecn_project+""" has been closed.<br>
Below is a link to the ECN on the intranet.<br><a href="<a href="http://web_server_at_work.com/cgi-bin/part-url.cgi?ecn=">http://web_server_at_work.com/cgi-bin/part-url.cgi?ecn=</a>" """+pecn+""" "">"""+pecn+"""</a><br>
ECN Description:<br>"""+pdesc+"""<br><br>ECN Effect of Change Comments:<br> (still need to work on this part)<br><br>R&D Information:<br> (still need to work on this part)<br></pre><br>
"""<br><br>