擅长:python、mysql、java
<p>邮件中的空白不正确。我相信你的信息是这样的:</p>
<pre><code>From: NO REPLY SMSGT<noreply@smsgt.com>
Subject:Liquidation record of assigned_person
Content-type: text/html
Subject: liquidation for John
<font color='#000000'>
John has sent you a request.
to view click on the link below.
</font>
</code></pre>
<p>但应该是这样的:</p>
<pre><code>From: NO REPLY SMSGT<noreply@smsgt.com>
Subject:Liquidation record of assigned_person
Content-type: text/html
Subject: liquidation for John
<font color='#000000'>
John has sent you a request.
to view click on the link below.
</font>
</code></pre>
<p>尝试将赋值替换为<code>msg</code>,如下所示:</p>
<pre><code>msg = \
"""Content-type: text/html
Subject: liquidation for """+ row[5] +"""
<font color='#000000'>
""" + row[5] + """ has sent you a request.
to view click on the link below.
</font>"""
</code></pre>