Sorry guys. It has been a long day today. There is no issues when dealing with "#" in variables. I found out that when I was reading the file, there were additional blank spaces being appended to the value. <br>
<br>To correct the issue, I just had to dp <br> varName = msInfo[0].strip()<br> finName = varName.strip()<br><br><br><div><span class="gmail_quote">On 2/27/07, <b class="gmail_sendername">Sick Monkey</b> <<a href="mailto:sickcodemonkey@gmail.com">
sickcodemonkey@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have a quick question about handling values with special characters.
<br><br>Lets say I have a file which contains:<br>==================================<br> blah#blah<br>==================================<br>Here is what I have for my code:
<br> f6 = open(fileAttached)<br> msInfo = f6.readlines(); f6.close()<br> varName = msInfo[0]<br> ....<br> smtp.login(uname,varName)<br> ...<br>==================================<br>I am trying to connect to a mailserver, and it keeps failing. My guess is that the "#" sign messing up. Is there anyway to encode that character?
<br><br><br>
</blockquote></div><br>