파이썬에서 배경 이미지 삽입을 시도했습니다. 하지만 이미지없이 메일을받습니다 (텍스트 만). 왜 ?구글 앱 엔진 메일 API에 배경 이미지 설정
class MainHandler(webapp.RequestHandler):
def post(self):
message = mail.EmailMessage(sender="#### Team<[email protected]>",
subject="Your account has been approved")
message.to = "David<[email protected]>"
message.html = """ <html>
<head>
<style type="text/css">
#backTabl {
width:100%x;
height:100%;
background-repeat:no-repeat;
background-image:url(http://www.kerasote.com/files/background/tedkerasote_bkg_blue.jpg);
}
</style>
</head>
<body>
<table id="backTabl" border="0">
<tr> <td width="3%"></td>
<td valign="top"><br><font face="tahoma" size="2px" >Hi Nijin, <br><br>
Your ###### account has been approved. You can now visit ##### <br><br>
Thanks for Using #### <br>
</font></td> <td width="2%"></td>
</tr>
</table>
</body>
</html>
"""
message.send()
안녕하세요, Abdul, 나는 내 Gmail 계정으로 전자 메일을 보냅니다. Gmail에서 원본 Messege를 가져올 때 : ** Content-Type : text/plain; charset = ISO-8859-1; format = flowed; delsp = yes ** –
@ Nijin Narayanan, 나는 thunderbird 클라이언트에서 메일을 열었습니다. –
mail.send_mail (발신자 = ""= email_valid.email, 주제 = "= body_text는, 는 HTML = htmlbody_text 이메일", 몸을 확인하시기 바랍니다) –